Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML video returns MEDIA_ERR_SRC_NOT_SUPPORTED error after playing for a while

I am trying to play a video streamed by a third party using the HTML5 video player in Chrome Mobile, the problem I am facing is that the video can play for some time while it's minimized and after a while it decides to quit and return a MEDIA_ERR_SRC_NOT_SUPPORTED - audio/video not supported error; the problem happens much faster when I switch from minimised to maximised then back to minimised over and over again. It also seems to happen faster if I continuously tap on the video itself, I have also hidden the default controls and use my own custom ones.

What could be causing this issue ? I try the same thing in Safari with the QuickTime player and the video feed does no die

EDIT: Did some more digging around and found this: Android HLS video mime type

I receive a playlist m3u8 file but my request link does not have m3u8 in it whatsoever but should the video even be playing if the m3u8 keyword isn't there ? I am also testing this on an android 4.4.4

like image 333
Question Mcquestioner Avatar asked Apr 23 '15 11:04

Question Mcquestioner


2 Answers

Specifying the correct MIME type is worth a try. However, there's one other thing that caught me out (with iOS anyway): check that the server hosting the video supports 206 Partial Content requests correctly. I posted about debugging this issue here.

like image 71
Dunc Avatar answered Nov 14 '22 23:11

Dunc


If your using FireFox and getting the SRC not supported, I went threw the codes on some of the players at sites I like to view, I found that the Adobe Flash Player will solve the Problem, FF uses the VLC plugins, but with the current updates on FF with the VLC on HTLM5 players you might get a SRC error code, you need the Adobe Flash Player.

like image 43
GOLOC Avatar answered Nov 14 '22 23:11

GOLOC