Is there a way to detect the end of a video?

Is there a way to detect the end of a video.. .mp4 or youtube? I want to be able to detect the end of a video and then have it do something...ie play on timeline or go to and play symbol.

For youtube the code would be something like this:
view-source:calkaweb.herobo.com/video.html
for HTML5 videos for youtube replace &version=3 with &html5=1 in the youtube URL
I have no idea how to impletent the youtube code into Edge tho other than an iframe but that wouldn't work I've tried :
http://forums.adobe.com/thread/1285212
You would need to place all of the youtube codes into edge in order for it to work but I duno how to do that and no1 answered the question in the thread I made about it.
as for MP4/HTML5 video you can use
var video = document.getElementsByTagName('video')[0];
    video.onended = function(e) {
      /*Do Something*/

Similar Messages

  • Is there a way to show the end dates of the previous month stand out?

    is there a way to show the end dates of the previous month in bold or make it stand out? so 30,31 and 1st of this month don't all look the same? For example the 30,31st get a regular text since they are a part of the the last month and this month gets bold dates? Its hard to read the dates anyways.

    Pics and more
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.
    5:05 PM Sunday; January 4, 2009

  • Is there a way to detect the event when device goes to sleep and the screen blackens?

    I want to detect the event when the iOS device goes to sleep and the screen blackens?
    Is there any way to do it?

    Hi,
    A small idea, please check whether it will work or not.
    You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for www.abcd.com to reverse proxy server IP address in your DNS.
    So it will resolve your reverse proxy IP address for requests.
    Configure appche to accept incoming request for www.abcd.com and points towards www.abcd.com/parameters.
    I think this will solve your problem.  Only one condition is that proxy server will communicate with www.abcd.com on behalf of client.
    Follow the link for configuration of reverse proxy server
    http://www.slashroot.in/how-configure-basic-apache-reverse-proxy
    HTH
    Naisam

  • Is there a way to allow the end user to change the font color in a text field?

    I didn't know LiveCycle existed yesterday so I have been using the Google a bunch.
    I am building a request form and was asked if there was a way to change the color of font within a text field. (EXAMPLE: Original content is black. Notes are red)
    I have 2 thoughts on this, one is to type it out and highlight then click a button to turn it red. The other way I am more partial to. Have a radial button that when off, types black. When on, types red. What is the best way to do this or is it even possible?

    Figured it out. Change "plain text" to "rich text" and have user press ctr+e. Seems odd to me but it works.

  • Is there a way to change the thumbnails for movies/videos?

    This may be more of a Leopard question, but I'm wondering if there's a way to change the thumbnail that OSX and Front Row display of movie files. I think this feature is awesome but would love to have more control over it so I can pick a frame from the video that relevant to me. Imagine Front Row's menu for movies with a bunch of thumbnails that are title screens or your favorite scenes from your movie collection (rather than a random thumbnail that may or may not even be identifiable to that movie).
    I've already included this request to Apple in a suggestion I sent along including a few other Front Row requests/suggestions I had including movie/video playlists, album art support over streaming/shared libraries, and music that doesn't stop playing when you return to the main menu.

    It appears that "saving" doesn't impact the quality, but wraps the file up in the .mov format (size and quality appear to stay the same). It worked ("saving" instead of using the save as a reference movie seems to fix the starting playback from the poster-frame issue). However, now a new issue has come up... I like to save the files to DVD as the original .avi so they will play on our Philips DVD players. However, being wrapped up in .mov means I have to have two versions of the file, and if my HDD ever dies or fills up I'll have to always correct the poster frame, and save another copy from the .avi original. Kind of frustrating... I wish Front Row/Quick Time would let you easily change the thumbnail and not have to change the format, etc.
    Thanks everyone for your help. Hopefully some of this feedback has helped others with similar questions.

  • Is there a way to see the date of a video clip?

    When importing video clips into iMovie, you can see the date in which the clip was shot. I don't see a way to view the original date in Final Cut Xpress 4. Let me know if I'm missing something or if it just isn't available in FCX 4.
    Thanks,
    Rob

    FCE does not have this feature.
    Al

  • Is there a way to adjust the orientation for camera videos

    How can I adjust the orientation from a video taken with the camera?

    It appears that "saving" doesn't impact the quality, but wraps the file up in the .mov format (size and quality appear to stay the same). It worked ("saving" instead of using the save as a reference movie seems to fix the starting playback from the poster-frame issue). However, now a new issue has come up... I like to save the files to DVD as the original .avi so they will play on our Philips DVD players. However, being wrapped up in .mov means I have to have two versions of the file, and if my HDD ever dies or fills up I'll have to always correct the poster frame, and save another copy from the .avi original. Kind of frustrating... I wish Front Row/Quick Time would let you easily change the thumbnail and not have to change the format, etc.
    Thanks everyone for your help. Hopefully some of this feedback has helped others with similar questions.

  • Is there any way to detect the iphone is rebooting currently?

    I am developing an app in which i want to call an API before device(iPhone) reboot.

    If you're a registered developer, you will find a faster and more accurate response in the NDA'd private forums at developer.apple.com. Else you might try the general developer forum here on the ASC, although the threads I've seen there are more oriented to OS X.

  • Is there a way to trigger the exhaust fan during video chat?

    The exhaust fan usually works during say...youtube videos or other activities that heat the laptop up, but it never comes on during skype video chats. This makes the laptop extremely hot. Is there a particular reason it doesn't turn on to prevent overheating?

    Install smcFanControl to manually adjust fan speeds.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Is there a way to detect two keys at the same time?

    Is there a way to detect the keys if the user is holding two keys down at the same time?

    yes, but you'll have to check outside of the event loop (i.e. don't check for it in the keyPressed method).
    just use an array of keys that keeps track of which keys are currently down and which are up. you could use a boolean array but I use an int array because... Im not sure I've just done it probably because of my C background. anyway, basic setup:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class MultiKey extends JFrame {
         int keys[];
         public MultiKey() {
              super();
              keys = new int[256];
              Arrays.fill(keys,0); // 0 = key is up
              enableEvents(AWTEvent.KEY_EVENT_MASK);
              show();
         public void processKeyEvent(KeyEvent e) {
              // the 0xff below binds the key code to below 256
              int key = (e.getKeyCode()&0xff);
              if (e.getID() == KeyEvent.KEY_PRESSED) {
                   keys[key] = 1; // 1 = key is down
              else if (e.getID() == KeyEvent.KEY_RELEASED) {
                   keys[key] = 0; // 0 = key is up
         protected boolean isKeyDown(int key) {
              return (keys[key] != 0);
         protected boolean isKeyUp(int key) {
              return (keys[key] == 0);
    }so now at any time in your code you can check key state by using the isKeyUp and isKeyDown methods. this is about as close as you get to input polling in java unless you use LWJGL or something similiar ;)
    you can try out a full executable example at my site here - just open up the jar and start holding keys down :)

  • Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? Thank you from France.

    Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? thanks from France

    Look in you main photo library. Are there doubles or triple photos there? If so delete the extras.
    All photos are stored in the photo library. When you move a photo into an album the photo is not duplicated. The album contains a pointer back to the original photos. These pointers or aliases take up very little space.

  • HT1206 my mom somehow ended up with totally different iTunes accounts, based on an old (dead) email address and a newer one as well. She's bought a lot of music on both accounts over time... is there some way to merge the old account into her newer one?

    my mom somehow ended up with two totally different iTunes accounts, based on an old (dead) email address and a newer one as well. She's bought a lot of music on both accounts over time... is there some way to merge the old account into her newer one?

    No. If one of those accounts is inaccessible, click here and request assistance.
    (82012)

  • Is there a way to detect motion and set markers automatically?

    My video includes walking around with the camera.  I walk, then stop and hold the camera in one area, then pan, then continue walking (and repeat). 
    While panning, there is some annoying flicker of vertical objects (beams, poles, whatever).  I can use a horizontal fast blur to fix this, but I only want the blur applied when there is panning (not when the camera is relatively still).  Doing it manually is cumbersome.
    Is there a way to detect when motion is going on (over a certain threshold)?  I would like PP to tell me when there is significant motion, and place markers in the points where it begins and ends (when motion goes over a threshold and then when it falls below the threshold).
    Thanks, experts!

    One thing you can try is to bring your footage into Prelude - it will lay out the entire clip so you can see thumbnail snapshots for the whole clip at once - that might give you a good start to see where there is a lot of motion.  Then, you can add markers very easily at all of those points - and when you send it over to Premiere, the markers will show up on your clip. 
    Not automated, but a good workflow to achieve what you are looking for.

  • Detecting the end of a session

    Hi,
    Is there any way of detecting when a session ends? I'm wanting to carry out an action when the browser gets closed.
    Thanks!

    You probably have some User object that you store in the session. What you can do is you can implement the HttpSessionBindingListener interface on this object. The valueUnbound() method of that interface will be called when the session is dropped.
    http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSessionBindingListener.html
    Note that a session does not end directly when the browser is closed, the session has to time out first on the server side.

  • How to detect the end of an external swf loaded into a container

    Hi,
    I'm having trouble finding a solution for this problem, can somebody help me?
    I have a main swf that will load external swfs into a container. I need to detect the end of the loaded external swf in order to start to load and play a new one into the same container.
    The problem is that i do not know what the length of the external swfs will be, and will have no control over the development of them, so i cannot place a variable at the end of their animation which would allow me to detect from the main movie its end.
    I also cannot rely on the _totalFrames property because the loaded swf might not have all the animation inside its main timeline.
    Is there any way to achieve this goal?
    Thx

    Ok... Its as i thought... unfortunatly...
    Gonna mark your latest post again as possible solution, just in case someone comes with any sort of out of the box thing...
    Thx for your help Kglad

Maybe you are looking for

  • Lost pdf viewing ability

    By accident I deleted my Applications folder . I reinstalled it from backup. Now when I use Safari and click on a site with a PDF, Safari won't open the PDF in the Safari window. I reinstalled Adobe and downloaded the Safari application, then reinsta

  • Why won't my book display properly?

    A book I downloaded on iBooks doesn't display properly.  I've reloaded it several times. What could be wrong?

  • How can you view flash video on ipad

    Is there an app that you can get that will let you watch flash video on your iPad? Since adobe flash is not supported on iPad

  • FW table disappears in IE

    I made a layout in FW. Initially, I placed the Fireworks table directly into the page, with default table alignment. This worked in Explorer, as well as Opera, Firefox and Safari. Then, I centered the table using table alignment. The page appeared no

  • Install Oracle 9iAS - Portal & infrastructure

    Hi, I installed Oracle 9iAS Infrastructure in c:\OraHome. When I try to install Oracle 9iAS - Portal and Wireless in the next step, it seems not possible to install this product in the same Oracle home (c:\OraHome). Will this cause problems later ? W