Solved

play multiple videos hdml 5

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to dynamically set the form action using jQuery.
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.

807 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