| Author |
Is there a way to tell when an embedded video has stopped?
|
Robert Stone
Greenhorn
Joined: Jan 06, 2011
Posts: 25
|
|
|
I have a windows media video embedded in a jsp page, I am retrieving the video from the server, dynamically loading it, playing it, and then when it stops I want to load the next video in the array of videos. Is there any way to tell when an embedded video stops? I can't seem to find any useful information about doing this online. I mean really, is there no one that has wanted to dynamically load embedded videos before me? I can't believe this is the case.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56180
|
|
How are you embedding the video? TellTheDetails.
For example, if you are using the HTML5 video element, I'm pretty sure that there are events that you can capture.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Robert Stone
Greenhorn
Joined: Jan 06, 2011
Posts: 25
|
|
Sorry, I am a bit frustrated now and didn't mean to leave the details out. I am using the html 5 video element just like this
I am learning html 5 after developing for a long time with html 4 so it is tough getting used to the new standard. What events are you speaking of please share the details.
Thanks,
Robert
[Edit: added code tags]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56180
|
|
I don't know -- I've never used them. I'm just pretty sure that they exist.
A good resource for HTML5 programming is Head First HTML5 Programming
I recall that it has an entire chapter devoted to the video tag and programming for it.
|
 |
Robert Stone
Greenhorn
Joined: Jan 06, 2011
Posts: 25
|
|
Thanks a lot! That actually answered my question. I Googled html video tag events and found a tutorial that showed me what I needed here:
video events
Now I know what to do
|
 |
 |
|
|
subject: Is there a way to tell when an embedded video has stopped?
|
|
|