{"id":19695964,"url":"https://github.com/pysync/queuevideoplayback","last_synced_at":"2025-02-27T11:05:50.319Z","repository":{"id":148087947,"uuid":"138369769","full_name":"pysync/queuevideoplayback","owner":"pysync","description":" smart queue video loading and playback with LoaderMax","archived":false,"fork":false,"pushed_at":"2018-06-23T08:22:11.000Z","size":331642,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T09:39:23.979Z","etag":null,"topics":["actionscript3","audio-streaming","javascript","video-streaming"],"latest_commit_sha":null,"homepage":"https://dungntnew.github.io/queuevideoplayback/","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pysync.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-23T03:59:48.000Z","updated_at":"2022-11-10T19:02:07.000Z","dependencies_parsed_at":"2023-05-19T03:15:36.850Z","dependency_job_id":null,"html_url":"https://github.com/pysync/queuevideoplayback","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysync%2Fqueuevideoplayback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysync%2Fqueuevideoplayback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysync%2Fqueuevideoplayback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysync%2Fqueuevideoplayback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pysync","download_url":"https://codeload.github.com/pysync/queuevideoplayback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241006347,"owners_count":19892939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actionscript3","audio-streaming","javascript","video-streaming"],"created_at":"2024-11-11T19:32:34.546Z","updated_at":"2025-02-27T11:05:50.287Z","avatar_url":"https://github.com/pysync.png","language":"ActionScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt screenshot](./doc/screenshoots/screen1.png)\n\n[DEMO PAGE](https://dungntnew.github.io/queuevideoplayback/index.html)\n\n### Description\n\nThat video player engine is developed with ActionScript 3.0 and some libraries.\n(special thank for loadermax of greensock).\n\nThere a some main features of that video player is:\n\n1. play multi small parts of one or separted videos with Smooth Scene Transition.\n2. allow play BGM sound with seperated channel\n3. allow enqueue list of video urls and smart pre-buffer video \u0026 sound data.\n4. support all play-pause, mute-sound etc in UI.\n5. monitor loading info, current scene index etc.. with debug screen.\n6. friendly javascript API is exported for programming in your production.  \n\n\n### Guide to play sample pre-compiled video player in your PC\n\n```\n$ git clone repo-url\n$ git checkout master \u0026\u0026 git pull\n\n# install simple http server\n$ npm install -g http-server \n\n# start simple http server with document root -\u003e current folder\n# now you can see demo under url: http://127.0.0.1:8000\n$ http-server . \n\n```\n\n### Guide to include video player in your product\n\n```\n\u003c!-- step 1: include swfobject lib in html --\u003e\n\u003cscript type=\"text/javascript\" src=\"swfobject.js\"\u003e\u003c/script\u003e\n\n\u003c!-- step 2: setup flash vars, that var will passed into video player --\u003e\n\u003c!-- (ref API params \u0026 flash vars document for more info) --\u003e\n\u003cscript\u003e\n    var flashvars = {\n        __DEBUG__: false,            /* disable debug model */\n        allowScriptAccess: 'always', /* 念のため　*/\n        debugEnable: true,          /* in production, need remove this line or set value to fasle */\n        relativePath: false,        /* set value to false to flash-player know all urls we using as absolute */\n        \n        /* when we want to auto play, we need some params init flash player */\n        autoPlay: true,                            /* when we want to play immediate */\n        useSoundChanel: true,                      /* when we want to play immediate \n                                                      Notice(*): to avoid conflig with other sound (BGM)\n                                                      please set soundURL to empty other do not setting.\n                                                   */\n                                                   \n        soundUrl: \"\",                              /* \n                                                        setup initial start-up sound url [ use for autoPlay ] \n                                                        Notice(*): this options will override useSoundChanel setting! \n                                                    */\n        movieUrls:  JSON.stringify(fullMovieUrls)   /* setup initial start-up movie urls - must is json [ use for autoPlay ] */ \n    };\n    \n    \n    var params = {};\n    var attributes = {};\n    \u003c/script\u003e\n\n    \u003c!-- step 3: embed pre-compiled Video Player --\u003e\n    \u003cscript\u003e\n    swfobject.embedSWF(\"swf/Main.swf\",           /* path to we video player */\n                       \"preview\",                /* id of HTML tag we want embed video player */ \n                       \"100%\", \"100%\", \n                       \"9.0.0\", \n                       \"swf/expressInstall.swf\", /* path to expressInstall swf (swfobject) */\n                       flashvars, params, attributes);\n    \u003c/script\u003e\n\n\n    \u003c!-- step 4: write some function to call exported method of video-editor --\u003e\n    \u003cscript\u003e\n        $(\"#play-one-movie-btn-2\").click(function(){ \n            var player = document.getElementById(\"preview\");\n            player.playMovie(movieUrls[1], \"\"); \n        });\n        \n        $(\"#play-multi-movie-btn\").click(function(){\n            var player = document.getElementById(\"preview\");\n            player.playMultiMovies(movieUrls, soundUrls[0]);    \n        });\n        \n        $(\"#change-bgm-btn-1\").click(function(){ \n            var player = document.getElementById(\"preview\");\n            player.setBGM(soundUrls[0]);    \n        });\n    \u003c/script\u003e\n```\n\n### API \u0026 params\n\n#### flash vars\n\n| var | desc |\n|:---|---:|\n| debugEnable | use for show debug UI, in production, need remove this line or set value to fasle \n| autoPlay | when we want to play immediate \n| soundUrl | init bgm sound url, used when autoPlay = true\n| movieUrls | init queue movie urls, used when autoPlay = true\n| relativePath | set value to true to player know all urls we using as relative\n| prependURL | auto add prefix url, for example if full url is: http://example.com/todaymovie/assets/movie01.mp4 =\u003e prependURL will be: \"/todaymovie/assets/\" \n\n\n\n\n#### exported method\n\n| method | desc |\n|:---|---:|\n| playMovie(movieUrl, soundUrl) | play a movie by url\n| playMultiMovies(movieUrls, soundUrl) | play queued movies with input is array of url and sound url\n| setBGM (bgm url) | change background sound url \n\n\n### Feferences - Sample Code\n![alt editor](./doc/screenshoots/code0.png)\n\n![alt editor](./doc/screenshoots/code1.png)\n\n![alt editor](./doc/screenshoots/code2.png)\n\n### Feferences - Video Editor Engine Components\n![alt editor](./doc/spec/editor.png)\n\n![alt player inout ](./doc/spec/input-output.png)\n\n![alt timeline ](./doc/spec/timeline.png)\n\n![alt trimming ](./doc/spec/trimming.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysync%2Fqueuevideoplayback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpysync%2Fqueuevideoplayback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysync%2Fqueuevideoplayback/lists"}