Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Can't play local video in HTML5 webview on Android

$
0
0

Hello,

I'm trying to play local mp4 h264 videos on android. It works like a charm when video is hosted online but as soon as I try to play it from local it doesn't work. It also works well on ipad.

The video is contained in the same folder as the HTML file.

Here is the html i use :

<video controls width="720" height="576"> <source src="./video01.mp4" type="video/mp4" /> </video>

I tried without the ./ also app://Resources/HTML/myfolder/video01.mp4

the only error I get is [ERROR] : MediaPlayer: Error (1,-2147483648)

I also tried removing the type.

Any1 can help ?


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>