{"id":14385101,"url":"https://github.com/rjcorwin/HTML5VideoInAndroidWebViewExample","last_synced_at":"2025-08-23T18:31:30.096Z","repository":{"id":7179509,"uuid":"8481603","full_name":"rjcorwin/HTML5VideoInAndroidWebViewExample","owner":"rjcorwin","description":"An example of using the \u003cvideo\u003e tag in an Android WebView.  ","archived":false,"fork":false,"pushed_at":"2013-03-01T08:44:38.000Z","size":10312,"stargazers_count":7,"open_issues_count":0,"forks_count":9,"subscribers_count":6,"default_branch":"loadRemoteFileFromHTTP","last_synced_at":"2024-08-29T18:37:34.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rjcorwin.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-02-28T15:13:54.000Z","updated_at":"2019-07-14T12:40:25.000Z","dependencies_parsed_at":"2022-09-17T23:01:26.859Z","dependency_job_id":null,"html_url":"https://github.com/rjcorwin/HTML5VideoInAndroidWebViewExample","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/rjcorwin%2FHTML5VideoInAndroidWebViewExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjcorwin%2FHTML5VideoInAndroidWebViewExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjcorwin%2FHTML5VideoInAndroidWebViewExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjcorwin%2FHTML5VideoInAndroidWebViewExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjcorwin","download_url":"https://codeload.github.com/rjcorwin/HTML5VideoInAndroidWebViewExample/tar.gz/refs/heads/loadRemoteFileFromHTTP","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230720983,"owners_count":18270485,"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":[],"created_at":"2024-08-28T18:01:57.241Z","updated_at":"2024-12-21T13:30:34.333Z","avatar_url":"https://github.com/rjcorwin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"HTML5VideoInAndroidWebViewExample\n=================================\n\nHere's an example app that, on the loadRemoteFileFromHTTP branch, successfully loads a video file in a webview from a remote location. On the loadLocalFileUsingFileReader branch, the test.m4v file exists on the SD Card of he the device by being referenced as file:///mnt/sdcard/external_sd/test.m4v. The gotcha is when you trying to include the video file in your App. There's no way to use the file:/// protocol to reference something in your App and you cannot use relative URLs for referencing videos in a WebView. In other words, if you have your video file in your assets/www directory and you set src to \"nameOfVideo.mp4\", it plain won't work :(. See the loadLocalFileUsingRelativeURL branch for an example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjcorwin%2FHTML5VideoInAndroidWebViewExample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjcorwin%2FHTML5VideoInAndroidWebViewExample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjcorwin%2FHTML5VideoInAndroidWebViewExample/lists"}