How to close a video after it plays

Hey people,
Say you have a video intro that you would like to have dissapear after it plays. Use this code. (place in trigger event)
var vid = sym.$("bird_holder");
vid.html('<video width="1022" height="575" id="bird" src="video/Intro_Animation.mp4" controls="controls" type="video/mp4" </video>');
$(document).ready(function(){  
       $("#bird").bind('ended', function(){
       sym.getComposition().getStage().getSymbol("intro_animation").deleteSymbol();
A couple things to address:
1) My video is housed in a symbol called "intro_animation" which contains the holder for the video. (called "bird_holder" in my example)
2) If your video is on the main stage, just use sym.getSymbol("holder_name").deleteSymbol(); at the end of your function.
3) be sure to include id="" in your video tag. and make sure your ready function is referencing that id.
Hope this helps someone.
-Dylan

Hi Marco Antonio,
I have similar scenario and would like to apply the first option provided by you.
May I know where is the setting to decrease the PO qty to the total GR qty received?
I have tried but system give me an error message no. 06230.
Please help. thanks
Regards,
Julia

Similar Messages

  • How do i rename video after I burned it?

    how do i rename video after I burned it?

    Hi
    And there are three places to keep name right when making a DVD
    • When starting a new iDVD project - Set name right here
    • In iDVD under Project Menu (at top) - down to Project info - Set Name right here too
    • In iDVD Menu Layout (theme) window - Here too You can name the title (button) to the Movie name or Play Movie or Start or what ever You find suitably.
    Yours Bengt W

  • HT201401 how to rotate a video after recording on my iphone

    how to rotate a video after recording on my iphone?

    Import the video with your computer as with any other digital camera and you can use a video viewing/editing app on your computer to rotate the video.
    For what purpose?

  • [IPhone SDK] How to close all pages after safari exit

    Apps close when you hit the home screen, however i find that Safari seems to keep multiple pages open even you close it , which no doubt uses memory. so does anyone know how to close these pages after safari exit ? Thanks very much.

    Does anyone know it , please give me some advises , thanks very much.

  • How to make youtube video gallery auto play (&autoplay=1) work properly?

    Does anybody know how to make youtube videos play when clicked on the thumbnails in the video gallery? I have added the auto play function in the iframe code
    (<iframe width="600" height="335" src="http://www.youtube.com/embed/lwnhB8PEuDY? rel=0&autohide=1&showinfo=0&autoplay=1&theme=dark&color=white&modestbranding=1" frameborder="0" allowfullscreen></iframe>)
    for both videos but both videos play at the same time. The videos stop playing at the same time when once clicked on one of the thumbnails.
    Here is html test file and Muse project file to see what I mean.
    Help would be much appriaciated.
    Silvis.

    Hi Vinayak,
    Thank you for you response.
    Here silvis.co.uk/muse_test.zip is a valid link.

  • How to close the object after generation Excel file

    I have generated excel file. I save that file using "Save" button on dialog-box. After i go to menu navigation at that time i got javascript error.
    please give me the solution how to close objects after generating excel file.

    Hi,
    Pls don't forget to reward points and close the question if you find the answers useful.
    Eddy

  • How to close an app after a given time

    I would like to kill an app like after pandora or music player or an streaming audio or video after a Given  time period.
    Anyone knows an app doing this?

    No, not with the native Music app (except through the alarm, which only plays one song,  as you have noted). You might check the app store for something.

  • How to close browser window after user log out

    Hi,
    Does anyone know how I can close browser window after user logs out. The scenario is when user clicks a log out button I will invalidate user session and close the browser right away in the backing bean.
    Your help would be appreciated.

    Try run this and you'll see that it runs fine with no exceptions:
    <%
         String someText = "bla bla bla";
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (Exception e) {
              out.println("ERROR: " + e);
    %>It looks like that after I've closed the outputStream I can't do any more processing in the JSP. Even if I remove the setContentType and setHeader methods it still behaves this way.
    I'm starting to think that there's no way around this...??

  • How do you keep videos from completely playing in a slideshow (like the photos)?

    In iPhoto, you can make slideshows to show photos for only 5 or however long of a duration you'd like... but when a video shows up in the show, all the pictures (depending on if you choose certain themes) will stick around on the screen as the video plays (or if the video is the only element in the current slide, also the video will completely play).
    My question is.. is there any way to have the videos play for the same duration you set for the photos?  Like.. to have everything.. videos AND photos.. to only play for like 5 seconds etc.
    I ask this because I want to show a really big album I have at a party with a slideshow, but because of all the video I take, when some videos are a bit longer (say like 2 to 3 mintues), it kinds disrupts the flow of the slideshow (as compared to just showing a short 5 second clip of the video like with the photos only being for 5 seconds as well.
    Is this possible, or does anyone know a workaround solution?  I'd really like the videos to be in the slideshow too, but just not the whole videos.
    We are talking thousands of photos and maybe hundreds of videos, here.  Nothing I'd want to edit individually.  iPhoto seems perfect for this if it would just only play portions of my video library instead of the whole videos.

    No.  The videos will play for their entire length.  Try trimming the video in iPhoto by playing it and use the gear icon to bring up the Trip feature:
    You'll get this window where you can select the portion of the video to use:
    When you're done you can "revert to original" like this:
    That may give you what you need for the slideshow.
    OT

  • How to close browser window after flushing a file to the browser?

    I have this simple JSP, which flushes a String to the browser as a file (message.txt). The JSP gets opened in a new window when the user clicks a link.
    The problem is that after the JSP has run, the browser window won't close automatically. I've tried adding a small javascript to achieve this, but i doesn't seem to even get run.
    How can I close the browser window after the JSP has run?
    <%
         String someText = "bla bla bla";
         // Flush to browser
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (IOException e) {
              return;
         } catch (Exception e) {
              return;
    %>
    <script type="text/javascript">
         window.close();
    </script>After the JSP has run, an empty html page with the following source can be seen:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    <BODY></BODY></HTML>

    Try run this and you'll see that it runs fine with no exceptions:
    <%
         String someText = "bla bla bla";
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (Exception e) {
              out.println("ERROR: " + e);
    %>It looks like that after I've closed the outputStream I can't do any more processing in the JSP. Even if I remove the setContentType and setHeader methods it still behaves this way.
    I'm starting to think that there's no way around this...??

  • How to close ORMI connections after EJB lookup?

    I am using an InitialContext to look up my EJBs, like this:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23891/current-workspace-app");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    ic = new InitialContext(env);
    beanHome = (EJBHome)ic.lookup(beanHomeName);
    ic.close();I have been testing this on JDeveloper 10.1.3 and the embedded OC4J.
    This code gave me the problem that the user's credentials were only retireved once while the OC4J instance was alive. So if a user's permissions were changed, they would not be updated for EJB access.
    I then found this document: Excessive ORMI Connections Created, which gave me a clue to use env.put("oracle.j2ee.rmi.loadBalance", "context");
    However, I am concerned with the other part of that release note which states:
    "Closing the context does not cause the connection to be closed. Doing this repeatedly will result in performance degredation."
    Does anyone know how to forcibly close the ORMI connection that is created, or whether it will be released automatically?

    the sample shows how to clear RAS and Enterprise resources after viewing report.
    1. If you use unmanaged RAS - as I can see you using setReportAppServer, then remove the enterprise related stuff : instantiating and cleaning code.
    The sample code is meant to give you an idea on how you can release the resources after done with viewing report. In your case all you need to do for cleaning is call close() on ReportDocumentObject. The sample will need to be modified for your requirements.

  • How to Close InfoPath Form After Submission When Two Buttons Exist?

    I have an browser-enabled InfoPath 2010 form that has two views and a submit button on each view. The form would correctly submit and close the form using one button on the form until the second button was added. After adding the submit button on a second
    view, the second button submitted/closed but the behavior on the first view changed so that the form no longer closes after submission. I’ve researched this and have not yet found a solution to allow closing the form after submission for one of the buttons.
    Things I’ve tried:
     - I’ve attempted creating multiple submit data connections for the different buttons
     - Specifying different Submit Options
     - Try closing the form with the code
     - Add another button to the non-closing view
     - Add duplicate Rule actions to "Close this form: No Prompt"
    Settings:
    Button rules:
     - Submit using data connection: SharePoint Library Submit
     - Close this form: No Prompt
    Button Properties:
     - Action > Rules and Custom Code
    The form Submit Options:
     - Send form to a single destination (a form library)
     - Choose a data connection for submit (SharePoint library submit)
     - Advanced > After Submit: Close the form
    Advanced form options:
     - Filler Features: all items unchecked (not allowing Save, etc.)
     - E-Mail Attachments: uncheck Enable InfoPath e-mail form functionality for this form template
    Resources:
    When considering programmatically submitting and closing the form, I understand from this article that the Rules run before code and I can’t close the InfoPath form programmatically by writing code behind a button that has a rule set on it:
    http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/
    Discussion of creating a custom Save and Submit buttons for InfoPath browser forms:
    http://markhaverty.com/sharepoint/custom-save-and-submit-buttons-for-infopath-browser-forms/

    what if you need to switch views? 
    I have the same problem in a similar situation.  I created a test button to narrow down the cause.  the button submits data & closes the form fine.  however when I add a rule to switch views before the submit & close rule, it
    breaks.  Submit still works but it no longer closes the form.  If I disable the switch-view rule, then it closes fine. 
    I tried added another rule to switch back to the main view but that didn't help. 
    switching views is an integral part of the workflow b/c I want to email the alternate view upon approval & then close the form.  So removing that rule is not a good answer unfortunately. 

  • ITunes always stutters/buffers videos after pushing play

    ARG! Ok, so my iTunes used to do this before I installed Leopard. It stopped after the installation, but returned about a week or two after the installation. On EVERY video I try to watch in iTunes, the video always plays for about 3 or 4 seconds, then iTunes pinwheels for about 3 or 4 seconds, then resumes playing, but not where it paused, because it didn't pause. It continues playing as it pinwheels and I miss those seconds and have to rewind. It happens every time I pause/play it after that, too. Any ideas? Thanks!

    1) Do you think even though the sound issue is not isolated to just iTunes -- but affects everything on my computer -- that it is just a matter of re-installing it?
    Sorry , didn't notice you said no sound at all. Did you try a pair of headphones to see if the audio out works?
    iTunes must not be working, though, because even if I mute my sound, the pointer does move in the iTunes window. The reinstall will not affect anything else. The data for those items is stored elsewhere on your computer. For example, your song files in your iTunes Music folder, your playlists in iTunes Music Library.xml & iTunes Library. See What are the iTunes library files?.

  • How do I get video clips to play on my iMac account? My wife doesn't have this problem on her iMac account.

    When I try to download and play a video clip at a web site or from an attachment to an email, I get either a blank space or a message telling me to download and install Abobr Flash Player. I already have the latest Flash Player. And when I try the same video clip on my wife's iMac account, the video clip plays perfectly.

    I found the solution to my problem, so now I can play video clips at web sites & attachments to email. The solution was:  "Safari → Preference → Security → check box "Enable plug-in". I got a hint from Troubleshooting on the Yahoo.com web site. Thanks everyone.

  • How do I get video (.f4v) to play and sync side by side powerpoint slides

    I have a talking head video (converted to .f4v) that I would like to position on the left side of the screen and sync with a powerpoint deck on the right side of the screen. Does anyone know how to accomplish this in Adobe Captivate?

    You can add a talking head video to the TOC area.  Place your TOC on the right instead of the left side.

Maybe you are looking for