Skip to content Skip to sidebar Skip to footer

Does Hmtl5 Video Autoplay Work On Samsung Smart Tv?

I'm trying to get an HTML5 video element to autoplay on a Samsung Smart TV (in the regular browser, not specifically as a TV app, if that makes any difference). Perhaps the autopl

Solution 1:

This should work:

<video id="video" src="movie.mp4" autoplay="autoplay" width="320" height="240">
Your browser does not support the video tag.
</video> 

At least the documentation says that: http://www.samsungdforum.com/upload_files/files/guide/data/html/html_2/reference/HTML%20Specification.html#HTML5%20and%20Samsung%20Smart%20TV%20SDK

If the autoplay attribute won't work, still you can start it using JavaScript. Just try to call the play() method:

var myVideo = document.getElementById("video");
myVideo.load();
myVideo.play();

Post a Comment for "Does Hmtl5 Video Autoplay Work On Samsung Smart Tv?"