Solved

play multiple videos hdml 5

Posted on 2015-02-10
2
97 Views
Last Modified: 2015-02-24
Hi I have a video playing from a folder using following source code.

Q1.  can I play multiple videos in the one video box. e.g. movie1, movie2 & movie3 all from local drive
Q2. I am also wondering is if say movie3 is missing can the code skip it and just play movei1& move2 in a loop


thanks for any help
win7 XAMPP server

<video width="320" height="240" autoplay>
   <source src="movie1.mp4" type="video/mp4">
   <source src="movie1.ogg" type="video/ogg">
 Your browser does not support the video tag.
</video>

Open in new window

0
Comment
Question by:paddy086
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40601267
There are methods in the pipeline that may support that but no browser supports the new methods yet.  You will need a script to "watch" the video and detect the end of the current selection by testing the "ended" property and then change the "currentSrc" property to a new selection.  I think you might have to start the new selection with the play() method.

The list of audio/video properties and methods is available at http://www.w3schools.com/tags/ref_av_dom.asp

Make sure you look at the list of supporting browsers for anything you use, because the support for some properties and methods is still a little thin.

Cd&
0
 

Author Closing Comment

by:paddy086
ID: 40629507
Thanks sorry about the delay in closing
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question