In using a playlist with video or audio, which of following code snippets will load next clip in the onend event?
Answer
Correct Answer: script type="text/javascript"> var nextVideo = "path/of/next/video.mp4"; var videoPlayer = document.getElementById('videoPlayer'); videoPlayer.onended = function(){ videoPlayer.src = nextVideo; } </script> <video id="videoPlayer" src="path/of/current/video.mp4" autoplay autobuffer controls />
Explanation:
Note: This Question is unanswered, help us to find answer for this one