Trigger video ended actions

Hi,
I need some help here.
I have this video on stage : it is ok.
var vid = sym.getSymbol("video_content").$("video_holder");
vid.html('<video id="videosalle0" style="display:block;position: absolute;bottom: 0px; left: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; overflow: hidden;" webkit-playsinline=""  autoplay="autoplay" controls="controls" poster="images/poster_salle3a.jpg" ><source src="videos/salle3a.mp4" type="video/mp4"><source src="videos/salle3a.webm" type="video/webm"><source src="videos/salle3a.ogv" type="video/ogg"></video>');
And I have this button alson on stage I want to give different actions, if the video ended or not.
I do this and it not works ;
if (($("#videosalle0")[0].ended)== true){
sym.$("video_content").animate({"top":"0%"},1000);
sym.$("vitrine_content").animate({"top":"-100%"},1000);
alert("est true");
} else {
sym.$("video_content").animate({"top":"0%"},1000);
sym.$("vitrine_content").animate({"top":"-100%"},1000, function(){$("#videosalle0")[0].play();});
alert("est false");
Please, help if you can ! thanks
s.

OK I found out.
The answer is on the fact that "video ended"  means that an audio/video has ended when the playback position IS at the end of the audio/video.
Somewhere before in my code I was sending the video back at the 0 position after it reached the end therefore the action on my button above could never work...
I can sleep now
s.

Similar Messages

  • Video end action - load new page

    How can I create/add an end action to load a new page once an HTML5 video has played?  Basically trying to have a menu, play videos full screen and have browser return to home page/main menu at the end of the video.  Need to do this in a browser for a kiosk, not use DVD player software so that I can eliminate on-screen controls.
    Rick

    The FLVPlayback class comes with a "complete" event that fires off once the video ends.
    Give your FLVPlayback an instance name and simply apply this code in a frame script on the same frame (30, 60, etc). For example if you gave it the instance name myFLVPlayback, then:
    // import event
    import fl.video.VideoEvent;
    // attach event to instance name 'myFLVPlayback', run onCompleteF when at end
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, onCompleteF);
    // function that fires
    function onCompleteF(e:VideoEvent):void
         // do what you want here, for example,
         // go back to frame 1
         gotoAndStop(1);
    If the user pauses the video, do note that this event won't fire. The video must play through to completion for this event to fire.
    Also note some not-so-perfectly formed videos can cause the FLVPlayback component to fail to detect the end of the video or fire off this event. This has happened a lot less lately but it has been known to happen. Give it a try!

  • Adobe Encore CS4: End action will not execute because of end action on the final chapter point

    Error screen:
    Error I’m getting for section titled Notes (PP 45 second video): “End action will not execute because of end action on the final chapter point.”
    The icon that shows error is in top line second from end.  I’m trying to 'end action' that portion of the video by going back to 'menu default'; also tried end action w/ ‘Stop’ and neither work.
    I saw a post about checking timeline.  Not sure what I’m looking for there.  I have nothing in Orphanage area.  I also tried building despite Check Project error and it will not build project.  Any suggestions on how to fix: “End action will not execute because of end action on the final chapter point.”?

    Select chapter one on that timelne. Look in the properties panel. Does it have an end action? You do not want an end action on the chapter; just on the timeline itself.
    That will not generally prevent a build, however. So you may have other issues.

  • Redirecting URL after flash video ends , help?

    Hi,
    I created this flash video SWF here:
    www.funduefoods.com (click
    "Watch Our Chocolate Fountain Video!"). When the video ends my
    client wants the page to be redirected to the Fountain page. Is
    there a simple action script code for this? I know one way is to
    embed the video into the timeline, then add a getURL code in the
    last keyframe, but I would rather have the video be a progressive
    download. Help???
    Thanks

    You could also add an event cuepoint to the end of the flv
    and use a listener for that cuepoint and trigger the getURL that
    way.
    It's easy to do and examples are in the Flash Help. Search
    'cuepoints'.
    Note: Cuepoints inserted with something like After Effects
    (the way I usually do it) have a greater accuracy than those added
    with Actionscript alone. Info about that is also in the help
    docs.

  • End action doesn't work

    Okay, it doesn't matter what I do end action doesn't work. Here's the situation. I have three timelines. The Title for starting, the main video, and the credits rolling at thend. When the Title timeline is done playing at the end, it should go to the main video and the main video timeline is done, it should go to the credits but it's not working. In each of the End action of three timelines, I did specify where it should go next. But this doesn't work. So I try to specify where it should go next on the End Action of the last chapter for three timeline but that doens't work either. So I tried specify in the last chapter and also the timeline end action and nothing changes during preview. Please help.

    Stupid question:- what exactly does the override do? Override the remote control action, or the end action or both?
    Linking each chapter to the next, and the next timeline, allows for the whole project to play continuously, but the end action on the final chapter is always messing things up.

  • Making the "next" button inactive until video ends

    I am new to Captive and have downloaded the trial version to test out to set up an e-learning module.  I have managed to create my first quiz and was able to get it to work fine.  I used one of the pre made templates and I inserted a flv video.  The user needs to watch the video prior to taking an exam, but the way it is set up the next button is visable and active the entire time of the video.  I discovered where you could modify the time before a button appears, but the user can get around that by hitting the pause button and waiting for the elapsed time to expire.
         How do I set up the program so that the user has to watch the video in its entirety and only after the video is complete, they can proceed with the quiz.  Thanks.

    OK, after searching and googling, I think I may have found the answer.  I found a hiding and showing action function, I  will see if I can hide the next button until the video ends, at which point it will appear.  I'll give it a shot and see if it works.

  • End Action

    I'm working in the Adobe CS4 Suite.
    I've created an Encore project as simple as possible. There is a main menu with ONE play button, the actual video/audio timeline, and then back to the main menu. That's it. Nothing fancy. You can't make them any more simple.
    I've made the dvd and when you put it into a dvd player the main menu comes up and plays this very cool music. Looks great. You hit the play movie button and the video plays just fine w/audio. At the end of the movie, however, it just stops. It does not return to the main menu as I've asked it to.
    I used the curly cues and thought I linked it correctly. I have now changed it to every possible configuration, but it still just stops.
    What am I doing wrong????? It's driving me crazy. Can anyone help me on this?

    I used the curly cues and thought I linked it correctly.
    That little "coil" is the Pickwhip. It works very well, so long as one hits the right target - usually pretty easy to do.
    For your Timeline, you will want the End Action to be either Return to Last Menu, or to the exact Menu. With one Button, you will not have that many choices from the drop-down list. If you had multiple Buttons, you would have options to choose to Return and have any of those Buttons ready to go. Nice touch.
    Now, do you have ANY Overrides set anywhere? If your End Action is per the above, then you most likely do. You do NOT want any Overrides. Be very careful, when you go looking for an Override, as they can be almost anywhere. Do NOT use any Overrides, and as you find them, make sure that each and every one is set to Not Set.
    Good luck,
    Hunt

  • Chapter end action triggers General Error - Help please!

    Hi, I am working on a project and have come to a big problem in the last hurdle, classic! Really need your help, experts!
    I have 2 Timelines, each one with 6 audio tracks and 2 subtitle tracks
    One of the timelines is longer than the other one because it has two different films in it.
    Everything was working fine until I realised I had forgotten to set the end action to the last chapter of the first video in the timeline, I need it to either stop or return to main menu or last menu, otherwise it will go on to play the second film and i don't want this to happen.
    When I set the end action to the chapter 10, it looks fine, I check and no problems.
    But when it starts transcoding... after a bit, when it has transcoded all the languages it goes to prepare to build and I get GENERAL ERROR and it freezes.
    Please please please if somebody can help me it would be very much appreciated.
    Mariana
    ps I have no overrides or anything like that in the whole project

    Please list the Assets on each of the two Timelines with full detail. A screen-cap of each would probably be very useful and save you some typing.
    Some things to also think about is are there any spots where your Audio is longer (even very slightly) than the accompanying Video? Are there any gaps on any of the Timelines? When you added that "End Action," exactly how/where did you add it? Also, if you have any Chapter Playlists, or Playlists, please give details on those.
    Note: to attach the screen-caps, us the little "camera" icon on the editing screen:
    Good luck,
    Hunt

  • Error message encore cs5 end action can't execute on the final chapter point

    Dvd plays great. Exported it as a mpeg 2-dvd,  video only. Audio separate as a .wav. imported video as a timeline, audio as an asset. Video is not transcoded.
    But I have a sub menu, with 6 chapter markers. I check the project and I get this: "error message encore cs5 end action can't execute on the final chapter point"
    Do I need to make a chapter playlist? Because that gave me a "orphaned playlist" error message.
    I selected the last chapter masker and had the end action go to the sub menu.
    Thanks!

    Saw a previous thread where bill hunt said it ignore it and try to burn a copy.

  • End action will not execute because of end action on the final chapter point

    I will be referring to this video:
    http://tv.adobe.com/watch/learn-encore-cs4/creating-an-event-dvd/
    I followed this exactly, except for the slide show (and I made a DVD instead of flash), but when I checked the project, I get the error message "End action will not execute because of end action on the final chapter point".
    I don't understand.  I did not change any end points except for the one specified in this tutorial.  (About the Max footage for the very beginning, before the menu).  If anything was added, it was Adobe's doing.
    I do notice that in 00:04 in the tutorial, there's a downward arrow on the very end of the timeline.  My timeline does not have this.  How was this done?
    In the Encore software, after the timeline is loaded, there is no arrow at the very end.  Mine doesn't have that either.
    I'm finding Adobe/Encore's way of making menus rather difficult.  With Pinnacle Studios (at least through 8-12), making menus was easy, and it set up the chapters for you.  Why can't there be an automated menu feature in Encore?
    Anyway, here's my project:
    Main time line has 9 chapters. When clicking on their chapter points, all say End Action: not set.
    When I click on the white bar above the lite purple footage of the time line, where the chapter point's bottom rest, it says, End Action: Not Set AND Menu Remote: Return to Last Menu.
    All 9 chapter points are white.
    In the flowcart, there is the DVD icon --> my few seconds opening credits --> menu that has a Play All and Scene Selection button
    Play All goes to first chapter of video
    Scene Selection (submenu #1) goes to 6 scenes, a next, previous, main menu.  All seem to be linked properly.
    Scene Selection for scenes 7-9 are in the #2 submenu.  Has a previous button and a main menu button.   All seem to be linked properly.
    Can anyone offer any advice?  Help?  I need to make this DVD and two others by the end of the week!
    If you need more information, please let me know that too.

    If I make a change in the timeline in Premiere, will that new change be reflected in the timeline of Encore?
    If you used Adobe Dynamic Link, then yes, the Timeline will be updated. If you did not, then you will need to Export again, then Import into Encore. Watch out if you have already Transcoded, etc., and I'd name the new Timeline Export differently, Import that, use Replace Asset. When a Project is very new, and nothing much has been done, it will not be so picky. After a couple of links, etc., it gets VERY picky, and Replace Asset will help.
    Is there a way to reload the project without having to redo all the menus and links?
    If you did a Save_As, or still have your original Project, i.e. you started a completely new Project with a unique name, you can go back to the original.
    Hope that helps,
    Hunt

  • End Actions in DVD SP3

    I'm currently authoring a DVD-9 in DVDSP 3.0.2 and are having problems with end actions with respect to stories.
    I have a movie as a single track with chapters, and I also have a number of stories, each one consisting of a single chapter with both the menu jump and end jump linked to the MainMenu_Loop and the button highlight of the chapter. The end jump of the single track is the MainMenu_Intro, button 1.
    "Play All" links to the single track and the individual chapters link to the relevant stories.
    "Next Chapter", "Fast Forward" and even normal play cause the disc to jump to the MainMenu_Intro at the end of each story. This happens on Panasonic, Sony and Pioneer DVD Players.
    Being rather new to DVDSP, I was wondering if this was a known issue, or am I missing something very simple?
    Matt

    Can you describe "MainMenu_Loop" and "MainMenu_Intro" in more detail? Are they menus, or are they tracks with buttons over video?
    Does it work properly in Simulator? If you play back the VIDEO_TS build with DVD Player, does it work or not work?

  • No button highlight after end action

    After a video is played via button...the end action goes back to the video list, but no buttons are highlighted. In fact, even if I press the arrow buttons, I can't see anything but can still access videos just by guessing what is selected.
    Button highlights are all on and there are no errors with the project (check project).
    Thanks in advance
    Kenny

    Great news, and glad that you got the Timelines set up.
    As for the WMV's, while Encore can Import them, they are not the ideal Assets, and can cause problems. If your Project is working fine for you, then just tuck that into the back of my memory, should you encounter issues with WMV Assets in the future.
    The two ideal formats/CODEC's for DVD Projects are: DV-AVI Type II files w/ 48KHz 16-bit PCM/WAV (or DD AC3) Audio, or DVD-compliant MPEG-2's. I like using separate Audio and Video files, and then just add the Audio Asset to the appropriate Timeline.
    Good luck,
    Hunt

  • Why does timeline play twice before going to end action?

    I have created a sub menu of motion graphics videos.  Each is on a separate timeline with the end action going to another timeline.  (Timeline1 jumps to Timeline 2, etc.)  The final timeline jumps back to the sub menu.  I have checked all links and everything is okay but when I burned the disk and watch it, each timeline plays twice before jumping to the end action. 
    Any ideas?  Would it be better to put them all on one timeline and jump to different chapters?
    Thanks.

    Out of curiosity, were there other Overrides? They can be applied to so many places, that going back to locate them all can be a daunting task.
    Good luck,
    Hunt
    PS - I think that Adobe needs to have a pop-up message, whenever one applies an Override, "Are you sure that you want to do this? Are you REALLY sure? Maybe call Jeff Bellune first, as you will likely be sorry... "

  • Testing - No matter how the End Action is programed, I get an Error

    The project:
    1 master avi video 28 minute.
    19 button in several sub-menues.
    19 timelines, the master is cut on the timelines.
    All chapter 1 at 00:00:00 of each timeline linked to the buttons.
    Each timeline has only on chapter point, that is chapter 1.
    All timeline End Action are programed to go back to the button.
    The chapterpoint End Action are programed to go back to the button.
    Error: "Endaktion kann wegen der Endaktion auf letzter Kapitelmarke nicht ausgeführt werden"
    (English circa: "Endaction can't be executed because of the last chapter point"), this for all timelines. However, in preview the end action is executed.
    Correction: I correct the full list of timeline End Action errors.
    Error: now I get the error "End-Aktion nicht festgelegt"
    (English circa: No Endaction"), this for all timelines.Clicking any button no timeline is played.
    WHAT'S GOING ON HERE?
    THANKS!

    Thanks!
    Okay, the error message doesn't appear when the end action of chapter point #1 is removed, and the end action from the timeline works.
    So when a timeline has multiple chapter points, the end action on chapter points #1, #2, #3 etc. are only for linking to the next chapter. But for the last chapter point in a timeline there should be no end action programed, this would create the error, in other words the end action for the timeline is doing that...
    ... is that right?

  • Previewing Chapter Playlist End Actions

    I'm finding that chapter playlist end actions to return to a menu don't work the same if the end action is triggered from the 'end action' button rather than playing right through to the end point.
    The end actions return OK to the menu, but the active menu item is mostly not correct if the return is triggered by the 'end action' button when previewing.
    All works as expected if the preview is allowed to play through to the end.
    Is this finger trouble, a glitch here, or a general issue?
    CS3 under WinXP

    Hello,
    Everything is working.  I switched to another menu and everything works in preview and DVD.  I must have been missing something that I couldn't see because I am pretty sure it wouldn't be the menu's vault
    I have another question if you don't mind.  Poster Frame for a video preview on button.  I will try to make clear:
    I have play.all list.  First timeline in list is say team.photos.  I set the poster frame for that.
    On the same menu screen I have a button just for team.photos as well.  the poster frame is the same as the one for the play all button.
    Can encore have two distinct poster frames for the same timeline reference?
    One work around is to import the same timeline and it will be team.photos 2.  You can then set the poster frame differently.  Is that the best way?
    Also, since I am writing.  What is the easy fix when you have two columns of buttons ie
    button 1       button 3
    button 2       button 4
    When I click down on my remote to go from button 2 to button 3; can't seem to figure that one out.  Sort of just getting into all the features.  Is that in the type: normal/next/ect.  area.  Currently my menu down button goes from button 1 to button 2 and stays in the same column.  I want to jump to column 2 by pressing the down button on the remote
    Any thougths would be great.
    Craig

Maybe you are looking for