is it possible to read a video with the HTML5 Video tag returned by a PHP Service Chunked Response?
What i am trying to achieve is to return a response created from 3 different video files in a single response.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One option is to use the video element’s “ended” event to load the second video. Something like this should work. You may need to use an XMLHttpRequest to get the url of the new video, etc.
If you need the playback to begin immediately you could queue it up ahead of time on another invisible video element to get it cached. This will use more bandwidth while two videos are loading at the same time.
Setting
preload = "auto"does not guarantee that the browser will preload the video, but leaves it up to the browser to decide.