Solved

play multiple videos hdml 5

Posted on 2015-02-10
2
94 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now