Login Register






[Broken] HTML5 Video - MP4 Player filter_list
Author
Message
RE: [Broken] HTML5 Video - MP4 Player #3
Check out decodeURIComponent() and take a look at MIME types.
Use type="video/mp4" for mp4 videos and the URL gets encoded so it isn't put in the source tag properly.

[Image: 5ZZOPJa.png]
(The %3A  is supposed to be a : )

Change line 32 to the following and it will work:
Code:
document.write('<video width="320" height="200" controls><source src="' + decodeURIComponent(video_id) + '" type="video/mp4">Your browser does not support the video tag.</video><br><br><br>');

[Image: G81Gh0s.png]

Btw the code is very bad actually so you should think about improving it  Wink

Reply





Messages In This Thread
[Broken] HTML5 Video - MP4 Player - by hacxx - 10-29-2018, 10:34 PM
RE: [Broken] HTML5 Video - MP4 Player - by chunky - 11-06-2018, 06:33 PM
RE: [Broken] HTML5 Video - MP4 Player - by hacxx - 11-09-2018, 01:42 PM