{"id":16846893,"url":"https://github.com/othree/robust-video","last_synced_at":"2025-07-23T21:37:39.380Z","repository":{"id":8930704,"uuid":"10661431","full_name":"othree/robust-video","owner":"othree","description":"HTML5 video have various implement in different platform. With different behaviors. This library trying to sync it.","archived":false,"fork":false,"pushed_at":"2013-09-26T04:08:03.000Z","size":244,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T13:05:50.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/othree.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}},"created_at":"2013-06-13T07:53:32.000Z","updated_at":"2014-01-09T01:18:43.000Z","dependencies_parsed_at":"2022-08-27T23:11:26.837Z","dependency_job_id":null,"html_url":"https://github.com/othree/robust-video","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/othree/robust-video","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Frobust-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Frobust-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Frobust-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Frobust-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othree","download_url":"https://codeload.github.com/othree/robust-video/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Frobust-video/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266753932,"owners_count":23979144,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-13T13:05:44.857Z","updated_at":"2025-07-23T21:37:39.339Z","avatar_url":"https://github.com/othree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"robust-video\n============\n\nHTML5 video have different behaviors in different browsers. Including major desktop browsers and mobile browsers.\nThis library is trying to make all platform supports video have very common behavior. And follow standards as much as possible.\n\nIssues Try to Solve\n-------------------\n\n* √ Loop not support on some platform\n* √ 'play' event will trigger twice when buffer ready.\n* √ Won't stop play when buffer ready even if pause() were called.\n* √ 'play', 'pause' event is able to trigger twice on some browsers.\n* √ 'playing' event not always trigger when video start plays.\n* √ Video duration is incorrect at first.\n* iPhone, iPod close player while video is loading will not able to play video again.\n\nHow to Use\n----------\n\nThrow your video DOM node to robustVideo function:\n\n    video = document.getElementById('#my_video');\n    robustVideo(video);\n\n    // or\n\n    new RobustVideo(video);\n\n    // If you want loop play on all platform.\n    video.loop = true;\n\nThese function will return the same dom node. Then you can listen to robust custom events:\n\n* $play\n* $pause\n* $playing\n* $ended\n* $durationchange\n\nAll have the same definition as the [standard][1], but more robust.\n\nAnd if you assign loop attribute to true, on some platform don't support loop play.\nRobustVideo will auto loop play. RobustVideo didn't change the default behavior so you must assign it by your self.\nRobustVideo will not do it automatically.\n\n[1]:http://www.w3.org/TR/html5/embedded-content-0.html#mediaevents\n\nOptions\n-------\n\n### native\n\n    video = document.getElementById('#my_video');\n    robustVideo(video, {native: true});\n\nWith native option on, RobustVideo will try robust native events:\n\n* play\n* pause\n* playing\n* ended\n* durationchange\n\nBy using event.stopImmediatePropagation to prevent native event listener keep trigger functions when don't necessary.\nYou should robust video before assign any event handler if use native option.\n\n\nStatus\n------\n\n[![Build Status](https://travis-ci.org/othree/robust-video.png?branch=master)](https://travis-ci.org/othree/robust-video)\n\nLicense\n-------\n\nCopyright (C) 2013 Wei-Ko Kao\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Frobust-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothree%2Frobust-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Frobust-video/lists"}