Remove All Ads from XDA

[Q] HTML5 video tag behaves strangely in Cordova app

2 posts
Thanks Meter: 0
By yaapelsinko, Junior Member on 25th December 2014, 12:19 AM
Post Reply Email Thread
I'm trying to create a cross-platform video player with Apache Cordova using pure html5 video tag or the same with video.js plugin.

I'm testing it on an Android 4.2.2 device based on Tegra 3. Video is playing, actually, but it is not visible at first. If background is black, I see a black screen, if white - white screen, so, player element (its video surface) is disappearing, although I can hear sound. If controls are enabled, I can switch it to fullscreen (or do it programmatically with JS) and back several times. Video element behaves like it isn't playing anything (still picture appears, play button instead of pause), but sound still there. Eventually I'm in fullscreen mode with play button available, so I can start it again and this time video is working.

My code is nothing more than a blank Cordova app with video tag consuming remote Apple HLS playlist. Which way I can debug it, at least?
25th December 2014, 05:12 AM |#2  
OP Junior Member
Thanks Meter: 0
An update: it appears to be related to Apple HLS format. When I pass a link to a file on my video server, it plays normally. When I pass a stream link to a playlist.m4u8, it behaves like I've already described. I can't google it out, what is wrong, do I need to set some mime-type other than video/mp4, or something else?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes