Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

play multiple videos hdml 5

Posted on 2015-02-10
2
Medium Priority
?
124 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to count occurrences of each item in an array.

721 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