This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Is there a way to tell when an embedded video has stopped? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is there a way to tell when an embedded video has stopped?" Watch "Is there a way to tell when an embedded video has stopped?" New topic
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: 60740
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 60740
    
  65

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a way to tell when an embedded video has stopped?
 
Similar Threads
JavaTV
How's the Servlets in this joint?
Migrating from tag-lib to AJAX call
Video Player
Youtube embed