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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -