ActiveX: Opening a separate Windows Media Player 9 window and controlling playback

Hey all,
I am trying to open a video in WMP4 automatically in Labview and control it. There is an existing ActiveX container but it remains on the front panel. I can control its playback, but cannot pause and resume.
I can also open the video on a WMP9 window outside of LabView through Labview, but I have not been able to control it. Merely start it, and then watch it till it finishes. This is the preferred operation I need to figure out.
LabView Version: 8.6
ActiveX application: Windows Media Player 4
OS: Windows XP
My questions are:
a) How do you pause and resume a video file if using the ActiveX container for which LabView provides
b) How could I access the playback controls of an externally opened WMP instance through LabView (because I want to automate the playback based on acquired signals)
Note that the ActiveX refnum is WMP4  whereas the installed version on XP is WMP9.
Thanks in advance for your help,
 Hasan
Solved!
Go to Solution.

Hi,
Thanks for your reply.
I do not have the
Vision Development Module in LabView. I think it would have been under
`Vision and Motion', however that menu is empty.
I have
managed to do what I want in the ActiveX container that shows the video
as a part of the front panel. I start the video, I pause it and the
screen goes blank (I want this feature. I could also get it to show the
frame at pause, but that does not suit my needs). When I resume the
play, it seeks to the point at which I paused the video.
To
do this, I use the invoke property -> controls -> 
methodforcontrols-> play / stop functions and the currentposition
property as both read and write. I do not have the windows media
software development kit.
I have attached the VI which
describes what I have managed to do. Changing the first property node
to an invoke method -> openplayer node will open an external player,
but still do the required control of video playback on the wmp
container on the front panel, without affecting the video being run on
the external window. It seems like I should be able to tweak it and get
it to do the same thing on the external instance of WMP, yet I have not
been able to figure it out.
Thanks for looking at this,
Hasan
P.S. - I couldn't upload the video that I was using, hst_1.mpg because it is not a valid extension. Please substitute it with another file before running. Sorry for the inconvenience
Attachments:
playpausevid.vi ‏14 KB

Similar Messages

  • When I open a separate window and start private browsing my main window closes and I lose all of my app tabs

    whenever I open a new window and do private browsing it closes my main window and I loose all of my app tabs. If this is functioning as designed then it is a flaw in the design.

    It is designed that way. When you stop private browsing, all of your other tabs will come back.

  • I can't play movie downloads.  I've tried opening them with Windows Media Player, i-tunes, and Quick time but they don't work.

    I can't play i-tunes downloaded movies.  I've tried opening them with Windows Media Player, i-tunes, and quick time.  Nothing works.

    If after you download the movie, you navigate away and do something else with your Apple TV the content you have downloaded will be overwritten and you'll need to download it again. It's a pain in the neck for many who have slow downloads but it's something that comes with using volatile memory rather than a hard drive for storage.
    Perhaps you're not doing this, but I thought it worth mentioning.

  • Welcome tab present each time I start Firefox, my homepage is opened in separate window. How do I make it stop?

    Welcome page opens each time I start Firefox, my homepage opens in separate window. I uninstalled Firefox and reinstalled and it continues to happen. Homepage is set to google and is present when I go to the general tab.

    See: [https://support.mozilla.com/en-US/kb/Firefox%20has%20just%20updated%20tab%20shows%20each%20time%20you%20start%20Firefox Firefox has just updated tab shows each time you start Firefox]
    Also see:
    *[http://kb.mozillazine.org/Preferences_not_saved Preferences not saved (Mozillazine article)]
    *[https://support.mozilla.com/en-US/kb/Preferences%20are%20not%20saved Preferences are not saved]
    *[https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page How to set the home page]
    **Firefox supports multiple home pages separated by '|' keyboard symbol(s)
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5.9.615
    *Adobe PDF Plug-In For Firefox and Netscape "9.4.4"
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.

  • I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    The pdf is loading as html code. If you save it, it will download as :
    605124.pdf.html
    Change the extension to .pdf
    And it opens and works perfectly, I just tested it:
    Use this link to download it automatically:
    http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4

  • How do I get firefox 4.0.1 to open in separate windows instead of tabbed browsing? Thanks!

    How do I get firefox 4.0.1 to open in separate windows instead of tabbed browsing? Thanks!

    (If you have the orange Firefox button, tap the Alt key or press F10 to display the classic menu bar.)
    Tools > Options > Tabs
    Uncheck the first checkbox.
    Hopefully that's all you need, but if it doesn't work, let us know.

  • After bios update, my window media player got hang and headphone clarity is not proper

    HP Pavilion g6  after bios update, my window media player  got hang and headphone clarity is not proper

    Hello mathewstays,
    Which model of g6 do you have? Which operating system? I'll be able to better assist when I know this information.
    Thanks,
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • I have a number of tabs opened in a window and i have grouped them.Is there any add-on or extension so that i can hide it or secure it or lock that tab group ?

    My laptop is being shared by others...so when others open the firefox page they can see all the tabs opened in a window or a tabgroup.i want o hide the tabgroup or secure tha tabs in a window by creating a passoword so that the others dont get the chance to view the tabs that i was browsing and so they have to open a new window and thus all the information in my tabs is safe and still are open even if they close their new window after their browsing.

    hello, when you're using a shared computer a better option would be to create separate (password-protected) windows accounts for each user - then each one would have her/his own firefox profile...
    http://windows.microsoft.com/en-US/windows7/User-accounts-frequently-asked-questions

  • When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....

    When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....
    Could some one give help and let me know where I can probably find the settings option that allows me to change and switch to previous situation where it was possible to decide time to time how to proceed either opening the file or saving it ??
    Thanks in advance
    David

    What is your operating system?
    Open a PDF from where?  If online, in what browser?

  • When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. How can I resolve this?

    Question
    When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Error message after update "Safari cannot open a browser window and may be

    My daughter just did an update and got the following error message: "Safari cannot open a browser window and may be missing important resources. Try installing Safari again.
    Any thoughts or tips as to what happened?

    Just a few pieces of clarifying information... This is Safari on OS X you're talking about, right? Also, what update did your daughter install? Have you tried reinstalling Safari (you can download it from Apple's site)?

  • Open a command window and send some keystroke to the opened command window

    Hi All,
    I am trying to open command prompt and send some key stroke to that command prompt. Here I am using Robot to send keystroke. But the problem is, the keystrokes are not sent to the prompt. I guess I need to activate progamitically the command prompt to accept the keystrokes . Please find the code below ( as I did).
    try
    String command = "cmd.exe /c start";
    Process child = Runtime.getRuntime().exec(command);
    Robot robot = new Robot();
    Thread.sleep(5000);
    String lol = "indranil";
    for(int i=0;i<lol.length();i++)
    robot.keyPress(lol.charAt(i));
    int g = lol.length() - 1;
    robot.keyRelease(lol.charAt(g));
    catch (Exception e) {}
    I guess I am doing some mistake here while sending the keystroke/openning the command prompt. Can anyone please help me how can I open a command window and send some keystroke to the opened command window. I am in fix.
    Thanks,
    Indranil

    The first thing to do is read the API and examples for the Robot class.
    Also check out this thread with a similar discussion: [http://forums.sun.com/thread.jspa?threadID=5385677]
    The short spoonfed answer - keyPress() and keyReleaseI() do not take chars. Read up on KeyEvent

  • Disabling opening of multiple windows and tabs

    Hi experts,
    do we have any option to disable opening of multiple windows and tabs. Like making end user to use single window browser to do all operations.
    Regards
    Govardan Raj S

    HI Rajendra ,
    Actually if end user access the portal in a browser window , and if he opens another window i.e file->new window --- same portal applications will open in the new window with the same credentials and hence here i should either restrict him or log off the user in both windows.
    Regards
    Govardan Raj

  • If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    How are you closing the window?
    Are you using the File menu or the close X on the title bar?
    Use Alt + F to open the File menu with the Close Tab entry visible (doesn't work with the mouse).

  • I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

Maybe you are looking for