MCQs > IT & Programming > HTML 5 > In using a playlist with video or audio, which code snippets will load next clip in the onend event?

HTML 5 MCQs

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

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it