VideoPlayerX or VideoPlayerPlus - auto close video window?

Just wondering if anyone has had any success trying to automatically close pop-up video windows (for embedded videos) at the end of the video with EventListener function?
I have a presentation to make where the videos need to be pop-up windows.  Ideally, I want a play button, and a loop button, obviously window would close automatically only if the play button was pressed.
There are a few posts floating round for reference.  And Dave Merchant mentions this exact feature with his VideoPlayerX in this post : http://forums.adobe.com/message/3569672#3569672, but I can't figure out what the JavaScript function would be.  All I know is my video is RM1!  and I'm currently trawling through the API reference in the event listener section!
If anyone's had any success so far, could you let me know?  (Also, I'm a little unsure of where the event listener should go, doc level?  or put it with the button that initiates 'play'?

It depends on how you're doing it.
If the close event originates from something being clicked in the SWF (such as a close button on the playbar) then you'll need to fire a timeout event from within ActionScript, and hence write your own widget - see Joel's blog for info.
If you're reacting to the end of playback and you're using VideoPlayerX, then you can do it all in JS as the widget has an event manager (which isn't present in the default VideoPlayer widget) - though with the current build it's rather fiddly to handle the idea of closing a popup, as you can't assign a handler until the annotation is activated - a doc-level script won't work out the box as the ActionScript engine doesn't exist until the floating window is visible, so you have to juggle about with invisible buttons to take over control of the "click to activate" feature of the RMA.
It's something which has been requested and I intend to make it easier in the next build of VideoPlayerX (due next week) by setting a default doc-level function to receive event messages. When it's released you'll be able to close the RMA by adding a doc-level function to the PDF, which says something like this (note this will NOT work with the current build or with the default player!):
function vpx_listener(_name,_page,_event,_data) {
  if (_event=="stop") this.getAnnotRichMedia(_page,_name).activated = false;
Note : The inbuilt Events objects and handlers in the JS API are not used by Rich Media Annotations - they're only used by legacy media (Screen and MediaPlayer objects) so you can ignore them completely. They were included because legacy media plays in an external application, so there was no other way for the PDF to tell what that application was doing, or if it broke. RMAs have no inbuild event handler system, hence the need to extend the ActionScript code in the widget.

Similar Messages

  • How to close video window without closing iTunes?

    I usually watch video podcasts on iTunes rather than on my iPod. But when the video finishes, how do I close that window without closing iTunes?

    Oops. I just discovered the little white circle with the x in it, that appears in the upper right corner of the video window when the cursor is moved inside the window.

  • How to auto close popup window of UWL?

    Hi everyone! I have developed a web dynpro abap application that is being launched by the UWL in a new window. How do I close the window after the web dynpro application is done processing? I cannot use exit-plugs as these don't work in the portal. If I use the portal navigation classes(absolute and relative) these ask for a target address but what I want is to close the window. Has anyone done this before? Thanks! Generous points will be awarded!

    If you are ready to open your webdynpro application inside the UWL itself (instead of opening as a pop up) you can try the following. In such a case you can set a re-direction page which points out to the URL of your UWL on the required action (say "Approve" or "Reject"). Hence when you perform the required action your UWL screen will be re-displayed once again.
    If you want only pop up from UWL then you may try posting it in Web Dynpro ABAP.
    Thanks,
    Prasath N

  • How to auto close finder window after drag and drop?

    In Tiger, I would file away items on my desktop my dragging them to the hard drive and then digging down to the appropriate folder. The finder window would then close automatically after dropping the file. Is there a setting in Snow Leopard that will enable similar functionality? Whenever I complete a drag and drop now the finder window just stays open, which isn't a huge issue, but I'd still like to change it. Thanks!

    Here is the test code:
         lo_nd_table_data_source = wd_context->get_child_node( name = wd_this->wdctx_table_data_source ).
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = lt_table_data_source ).
          "Read Dummy Table
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = it_table_data_source ).
        CONCATENATE ls_airline_info-carrid ls_airline_info-connid ls_airline_info-fldate INTO ls_table_data_source-row_key.
          ls_table_data_source-parent_row_key = ls_airline_info-carrid.
          ls_table_data_source-is_leaf   = abap_false.
          ls_table_data_source-expanded  = abap_true.
            SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_table_data_source.
         LOOP AT it_table_data_source INTO wa_table_data_source WHERE carrid = ls_airline_info-carrid
                                                                and   connid = ls_airline_info-connid
                                                                and   fldate = ls_airline_info-fldate.
          ls_table_data_source-connid    = ls_airline_info-connid.
          ls_table_data_source-fldate    = ls_airline_info-fldate.
          ls_table_data_source-PRICE     = wa_table_data_source-PRICE.
          ls_table_data_source-CURRENCY  = wa_table_data_source-CURRENCY.
          "Select all data to the new dummy table structure.
          "Move one row of the table to ls_table_data_cource correspondingle.
          APPEND ls_table_data_source TO lt_table_data_source.
          DELETE ADJACENT DUPLICATES FROM lt_table_data_source.
       ENDLOOP.
          lo_nd_table_data_source->invalidate( ). "Clear the table data
          lo_nd_table_data_source->bind_table( lt_table_data_source ). "Refresh new data
    Thanks,
    Kiran

  • How do I auto-close download window

    I googled the subject and saw some old discussion thread in which people complained about the same thing and the "solution" was to get some add-on for it. Surely such a basic capability is now built into Safari, right? I mean, common, who wants to keep closing that download window every time?? That's been in Firefox since 1.0 - even Netscape browser before then had that feature.
    I just tried to move to Safari because it does have one feature (just as basic) that Firefox was lacking: ability to specify a web page for new tabs (and of course, there's an add-on in Firefox for that - which is just as ******** - and those don't even work in my current 4.0b6 release
    thanks for any info,
    tom

    Hi Carolyn,
    Thanks for pointing me to SafariStand - I take it that since you, too, are pointing me to a plugin, that Safari doesn't have this built-in No biggie, I guess - but disappointing nonetheless.
    I knew about the tab url setting - as I said, that was the reason i went to Safari from firefox in the first place.
    Safari's HTML rendering doesn't seem to be as good (I won't say as "standard-compliant" because I don't know that) as Firefox: in our company we use a a Wiki (TikiWiki) that has an HTML-based WYSIWYG page editor...but Safari doesn't like it or it doesn't like Safari - editing with it is not doable
    Other than these little inconveniences, I like Safari: its suport of touchpad gestures seems to be smoother (e.g. two-finger scrolling is much more ballistic than in firefox). So I will probably stick with it for now and startup firefox when I come across problematic pages.

  • Auto Close window  when finished

    Does anyone know how to auto close the window when the last
    frame is finished.

    Hi krisTM
    Try clicking Edit > Preferences... > Project node >
    Start and End node. Look at the Action configured in the Project
    end options area. If you click the drop-down, you should see an
    option labeled "Close project". Try configuring that and
    re-publishing.
    Cheers... Rick

  • Auto Close Window Script

    I need an AppleScript that closes the video window when a video chat ends. This would be selected in the iChat alert events under preferences where you can select an AppleScript. Anyone???

    Hi,
    I have this which changes the Status Message
    using terms from application "iChat"
    on av chat ended
    set status to available
    set status message to "I was Busy but Now I am Not"
    end av chat ended
    end using terms from
    I don't know enough about AppleScript to find out the window Name and close it.
    10:05 PM Thursday; May 28, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • FM9: Any way to auto-close the insert-variable window?

    Is there any way to have the FM9 variable window automatically close after one selects a variable using the Enter key? I'm finding it cumbersome after calling it up via key commands to have to pick up the mouse and click somewhere just to close the window, or "fly" back into the side panel.

    after youve called the contact and it opens with their name again just tap cancel on top right of screen and it puts you back to the first person in your contacts list.
    its the only way ive found out how to close the cotacts name.

  • W/zoteroinstalledwedo a window,open() followed by a window.close() in tha window. Zotero remains and the window is still open. How do I close the window with zotero present in FF w/o disabling zotero?

    the js function to window.open() is in pageAA on a tab.
    We click the form or link to open the popup to run a video.
    We have a close button on the popup window.
    When that is clicked the window.close() js is executed on that page leaving Zotero present and the popup still open.
    We've tried using close() window.close() name.window.close() and
    all fail the same way.
    Short of disabling Zotero is there a way to close the popup in FF and any other addons with one shot?

    Thank's but still no fix.
    In safe mode everything works.
    Without Zotero - everything works.
    When the popup is loaded with Zotero, the tab shows a constant "Loading" with the circular in process icon.
    The Zotero icon shows to the left of the tab.
    If I right click on Zotero and close it, the close() js works properly
    Is there a way to do a window.open() with:
    A. no tabs -or-
    B. block all add on's -or-
    C. to kill an add on
    before doing the close()?

  • Second popup applet auto-close the first popup applet

    I have a configuration which works in the following way
    1) There's a button on Applet 1, which will pop-up Applet 2 using the ShowPopup method.
    2) In Applet 2, there's a field which has MVG applet.
    I observed the following behaviour:
    1) Click buttons on Applet 1 which pops-up Applet 2.
    2) In Applet 2, click the MVG pick which pops-up the MVG applet.
    3) Close the MVG applet by clicking the X button on the browser window.
    4) When the MVG applet closes, it also auto-close Applet 2. Focus return to Applet 1.
    The expected behaviour is MVG applet close, and focus should return to Applet 2, not auto-close Applet 2.
    Any thoughts?

    Okay, I figured out how to launch an applet from another applet [A]. It was a matter of using a URLClassLoader to load applet [B]. The problem now is that there are some security issues. Even if I sign the applet [B], a security warning is not presented when applet[B] is initilialized. As a result, reading from a file on the local machine can not be done (Security exceptions).
    Any ideas? Thanks in advance.

  • Adobe Reader no longer Auto-Closes after printing

    My company uses software that allows for users to reprint invoices they have previously made.  The way the procedure is supposed to work is: the driver clicks a re-print button, Adobe Reader opens up with the document, prints it, then closes.  Within the past couple of weeks however, everything is fine however Adobe Reader will not close out.  The PDF document itself closes, but the user is then brought to the main menu where they can open up another PDF.  The problem this is causing is that they cannot reprint other invoices until manually closing out of Adobe reader every time.  There have not been any updates made to the software they are using, or to Adobe Reader.  We have users on both Windows XP and 7, and have the issue with both Reader v10 and 11.
    Any suggestions on how I might be able to get Adobe Reader to auto-close again?  I am also checking with the software vendor for their insight.

    Might be difficult to fix.
    You don't know what changes to your system/registry have been made by the virus infection you told of.
    Maybe this article has some useful hints for you.
    http://blogs.adobe.com/dmcmahon/2009/04/12/acrobatreader-acrobat-fail-to-load-its-core-dll -error-after-installation/

  • Quicktime Will Not Close Open Windows

    After I record a video Quicktime refuses to close any windows from those recordings.  When the red X is clicked quicktime will lag out for a few seconds at the end of which the window has not been closed.  The only way to get the window to close is to quit Quicktime with the "Close windows when quitting an application" preference enabled in the System Preferences > General.  If this preference is not enabled, Quicktime will refuse to quit and the program must be Force Quit.
    I've gone and done the usual troubleshooting steps like rebooting, deleting preferences, etc...  This does not solve this issue leading me to believe it's either a poorly thought out "feature" or a bug.  Unless there is some new paradigm of closing windows that I am not familiar with of closing window, thanks to Apple;s new paradigm of changing tried and true methodologies for new "simpler", "let us do that for you" ones, this is extremely annoying for someone who want to itterate through multiple video takes quickly without unnecessarily tieing up system resources.  If I make a video that I don't want I want to just trash it and be done with it.
    Anyway, does anyone know if there is any way to fix this so that I don't have dozens of videos active?

    Lets do a few things.
    1. Update QuickTime. http://www.apple.com/quicktime/download/
    2. Open up QuickTime player.
    3. Click on Edit> QuickTime Preferences>Advanced.
    4. In the center of this section there is a "Video" section select Safe Mode.
    5. Click on Ok and go ahead and close out of QuickTime.
    I have also noted that there are SEVERAL bugs with QuickTime and Nvidia Chips.
    A few things I suggest you do is to update all of your drivers, and install any pending Windows Updates.
    Please post if this worked for you.
    JMG- Not associated with Apple.

  • Closing video window brings up last minimized window..any way to stop this?

    When I have multiple videos open and I minimize a few of them when ever i close the current one I'm watching it brings up the last minimized video window. Is there any way to stop this? It didn't do it before. I don't like the minimized videos to pop up on their own whenever I close one of the videos I'm watching. I minimize them so I can bring them back on my own **** terms. Anybody else having this problem?

    Open Accounts preferences, click on the Login Items tab. If you see the Terminal listed then select it and click on the Delete [-] button.

  • SQL Server Error 9001 and auto close on Property

    Hello,
      While talking to one of my application developers, he encountered Fatal Error 9001 while connecting to the database from .NET Application. In the past , he had similar issues and he mentioned that taking the database offline and bringing it back online
    fixed the problem. So we did the same this and the problem got fixed.
    I asked the question why are we having this problem in first place?.I used the SQL Credentials our .NET App uses and I was able to connect to the SQL Server using those credentials and execute the stored procedure. 
    Doing some online searching, sometimes, turning on Auto close property causes this problem. This particular database had that property turned on and I turned it off. I am not sure how it got turned on in the first place. By default it should be off.
    My question is Whats causing this behavior ?. How can I avoid getting 9001 Errors?.
    I am tying to figure out the root cause and better undestand whats going on with the server?.
    I understand the pros/cons of the auto close property but it shouldn't cause 9001 error.
    Your help would be much appreciated.
    My SQL Server Version:
    select @@version
    Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64) 
    Sep 21 2011 22:45:45 
    Copyright (c) 1988-2008 Microsoft Corporation
    Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)
    Thanks,
    I90Runner

    Hi,
    If you refer to
    Microsoft definition of error 9001 it means Log for database is not available. Hope you are using English language
    select text
    from sys.messages
    where message_id = 9001
    and language_id=1033
    Now why would SQL server say log for database is not available, it would say such thing when it wont be able to communicate with log file or wont be able to communicate with disk on which log file resides. I would say this might be disk issue. Not only SAN,
    disk controllers, HBA and other connections which are involved between database and storage should be checked. Please immediately consult your vendor. At first it might seem all is fine but remember I said through check. I faced this issue in cluster and it
    boiled down to Storage issue SQL server was just victim.
    Reg AUTOCLOSE AFAIK by default it is true for express edition not fot other editions
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Auto shape properties window doesn´t refresh values

    hi,
    after installing creative suite 4 on my new pc i have a big problem. the auto shape properties window in fireworks doesn´t refresh the values of my shape. if i select the shape i have to close the panel and open it again to get the right values. if i select on shape and then another one, i have to do the same. this is really annoying.
    here a little demonstration: http://gate8.de/jeeeee/2013-03-13_1810.swf
    i uninstalled fireworks, deleted preferences folder, updated graphic driver and finally called the support but they "coundn´t" help because the product is too old
    i hope you can help.
    thx a lot!
    Jens

    Hopefully, you realize you can edit the Auto Shapes directly on the canvas. Hovering over a "yellow diamond" will reveal a tooltip telling what property it adjusts.
    It sounds like there's a communication problem between the panel and the canvas/application. The Auto Shape Properties panel is a SWF panel that resides in the application's Configuration/Command Panels folder. Other SWF panels include Align, Path, Symbol Properties, Image Editing, Special Characters, and Color Palette. I wonder if any of these other panels are affected?
    It seems like there's been a lot of problems with Flash-based panels conflicting with other apps or plug-ins. Try quitting and restarting the application with no other applications running in the background. Also check out something like this: http://forums.adobe.com/message/3931126

Maybe you are looking for

  • Printing from my Mac to a Windows Vista printer

    Hi, I'm trying to print from my mac to an Epson Stylus SX200 installed on my Vista PC. I have a wired network and printer sharing on etc but am getting in a right mess trying to get it all working. ] Can someone please go step by step on how to set t

  • WebUtil 1.0.6 - GetClientInfo bean not found.

    I'm using Developer 10g Version 10.1.2.0.2 and the latest available Webutil-package 1.0.6. I installed all components and followed all the steps. When I execute the form test of webutil: WU_TEST_106 open a window with: oracle.forms.webutil.clientinfo

  • [Solved] Greek accented characters and Qt Applications

    Hello. This is my first day with Arch linux. My problem has to do with greek accented characters like ά, ή, ό etc. I can type these characters on my browsers, rox file manager and other applications but not on Qt based applications like Skype and TeX

  • I am traveling to Italy. Do I need an adaptor to use the 220 volt power?

    I am traveling to Italy. Do I need an adaptor to use the 220 volt power?

  • View Query

    Hi All, We have a requirement in which a view contains fields from 3 tables. Table-A, Table-B and Table-C Table A contains the maximum number of rows. Table-B and C will always contain lesser number of rows. JOIN QUERY IN A VIEW....... --- select A.c