Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rjcorwin/HTML5VideoInAndroidWebViewExample
An example of using the <video> tag in an Android WebView.
https://github.com/rjcorwin/HTML5VideoInAndroidWebViewExample
Last synced: 4 months ago
JSON representation
An example of using the <video> tag in an Android WebView.
- Host: GitHub
- URL: https://github.com/rjcorwin/HTML5VideoInAndroidWebViewExample
- Owner: rjcorwin
- Created: 2013-02-28T15:13:54.000Z (almost 12 years ago)
- Default Branch: loadRemoteFileFromHTTP
- Last Pushed: 2013-03-01T08:44:38.000Z (almost 12 years ago)
- Last Synced: 2024-06-22T20:22:43.607Z (6 months ago)
- Language: JavaScript
- Size: 9.83 MB
- Stars: 7
- Watchers: 6
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTML5VideoInAndroidWebViewExample
=================================Here'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.