How to play videos in android from raw folder and htm file -


how can play videos raw folder in .htm file on android?

neither of these code snippets work me:

<video id="video" controls>     <source src="android.resource://tutorials.bodybuilding/raw/smit.mp4" type="video/mp4"> </video> 

or

<video id="video" controls>     <source src="url('android.resource://tutorials.bodybuilding/raw/smit.mp4')" type="video/mp4"> </video> 

according reading file in assets or raw folder in android guess addresses wrong. should consider uri.parse("android.resource://tutorials.bodybuilding/" + r.raw.csgsmit); returns every of videos , place html or @ runtime load html string , replace every address using such method , load modified html using webview.loaddata() or webview.loaddatawithbaseurl() passing modified html (a resluting string).


Comments

Popular posts from this blog

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -

How to run C# code using mono without Xamarin in Android? -