Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a way to tell when an embedded video has stopped?

 
Robert Stone
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Robert Stone
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic