Windows media player 9 labview 7

I'm having problems with this, just as some other people have. After looking through the MSDN library, it seems all you need to do is place the Windows Media Player object in a front panel ActiveX control. Then on the block diagram, wire the object to a property node. Finally, wire the path to the URL property. This should load the file and automatically play it. Well, I've tried this with several different files. With all files, the video plays for the correct amount of time, but no picture shows up in the control on the front panel!
What's interesting is that if I place an older version of the control (6.4) on the front panel (which I could only do by copy-paste from an example someone posted here - it's not available i
n the Select Active X object box) and wire the path to the FileName property, it works perfectly.
I've attached an example showing this. Place the path to a video (I'm using .avi files) in the path control and run the vi.
Any ideas?
Dave.
==============================================
David Kaufman
LabVIEW Certified Developer
==============================================
Attachments:
WMP_test.vi ‏37 KB

I have version 9 also and here is a VI that works for me. I cannot remember if I got it from this forum or from LAVA but anyway this might work for you.
Joe.
"NOTHING IS EVER EASY"
Attachments:
show_video.vi ‏88 KB

Similar Messages

  • How do I open Windows Media Player 11 in a new window via labview 8.5 using ActiveX

    Hello,
    Although familiar with Labview, I am new to the ActiveX Controls. I have managed to open and play movie files in Labview with ActiveX controls but the player is embedded in Labview's front panel. How can I control what file is played and when it starts in Labview but have Windows media player 11 open in a separate window.
    Additionally, where can I find a description of the ActiveX properties.
    Thank you

    I'm trying to accomplish this same thing and am having a hell of a time finding the right Class, right Methods, and/or right Properties for a solution.  Some classes seem to return obscure errors when I try to create them use the invoke node "launchURL" (the WMPLib.ICore for example).  If I use the Player base class (which MSDS says is the root class and the class that is used when you create an embedded player) I don't get anything.
    What I would like is to progmatically launch Windows Media Player to play a particular video clip in full screen on the secondary monitor.  It seems like this should work:
    But doesn't... any ideas for this?  The C# examples are difficult to understand for me.  Also, the WMP class library is a MESS! (IMHO).  Thanks for your input.

  • Controlling windows media player in labview

    Hi,
    I am having difficulties controlling a WMP in LabVIEW using it's ActiveX controls... What i need to do is to have a control to to go from frame to frame. I made something but when i slide the crontroller, it suddenly hangs?
    Also: when i play the video in mij windows media player, it opens normally, but when i open it in the labview activex control, the screen stays balck? I have an AVI file that is H.264 compressed and i've installed the latest k-lite codec pack.
    I use a property Node (activeX) to adjust the controls "IWMPPlayer4" => "controls" -> IWMPControls => "current position".
    Does anyone has experience with this?
    Best regards,
    Thijs Boeree
    Solved!
    Go to Solution.

    Hello Thijs,
    With the first VI I was not able to reproduce the issue.
    With this one I am able to reproduce the hanging.
    I have slightly adapted your code to show you were it goes wrong. (see attachment)
    You see that if you click on a certain point/position in the slider you only get one execution of the "slider value change" event case.
    If you start sliding back and forth, then you have (very easily) several hundreds of executions of this event case.
    This is what is causing your "hanging".
    You also see that if you wait long enough, then you'll normally end up at the right position in the video.
    So this is where you would have to change your design.
    How do you actually want your design to follow the slider in LabVIEW?
    Do you want it to detect all small changes to the slider?
    Do you only want it to change after a significant change in slider value?
    Do you want it to only change when you've stopped sliding?
    Or do you want a combination of the things mentioned above?
    The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at:
    http://ni.com/samplecodelicense
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.
    Attachments:
    WMP_paul_adapted.vi ‏20 KB

  • Using windows media player in labview

    Need to learn how to use Windows Media Player 9 in Labview 6.1 and 7.

    Try this. It loads the media player. hit play movie then select which movie you want to play. this loads the movie into memory and starts playing then when you hit stop vi it stops the vi and the movie.I do not have any movie files to try this with but I tried this with other media and it worked fine
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    WMA.vi ‏39 KB

  • Error with Windows Media Player ActiveX control

    When I try to drop in a Windows Media Player control I get an error:
    "Error loading type library/DLL"
    Any ideas?

    If upgrading is out of question. Like a budget stopping it. You could try to this http://www.microsoft.com/download/en/details.aspx?id=8002 That will allow you to run XP inside windows 7. It is also other media players like VLC and Apple quick time that have ActiveX controllers. I have tested the Quicktime version and it is quite good.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Windows Media Player ActiveX not playing image, but WMP stand alone application does. Why?

    I use my Windows Media Player v11 with additional codec to play mp4 files (mp4 are not supported by default with WMP 11, so I had to install a codec). It works fine in the stand alone application, but when I use the ActiveX control in NI, it does not use the codec and I get only the sound... no image. I thought the ActiveX was simply an interface to the same core application used by NI and the stand alone media player. And if it is the same core, it should use the same codec. What am I missing?
    Solved!
    Go to Solution.

    I have a tip for you. If you download Quicktime 7(QT), you may select the QT activex player(see picture). It plays mp4 and looks better. And QT is free so it should not any problem. Try and see if it do you any good
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.PNG ‏114 KB

  • Windows media player question

    In LabVIEW, how do I edit WindowsMediaPlayer in order to remove the whole bottom section that includes Play, FF, stop , volume control, etc...
    Thanks

    hi dphan128,
     You can use decorations to cover up the control panel of windows media player as shown in the attachment.
    thanks and regards,
    srikrishnaNF

  • Windows Media Player no sound while playing a avi file in server and client connection using TCP/IP connection

    Hello there
    I have a problem with my windows media player while using server and client connection by using TCP/IP connection. So when I play a video using Windows Media Player in LabVIew there isn't any sound come out but when I'm playing a video by a Windows Media Player only the sound will come out. Can you help me solve this problem?
    I also upload the vi as the reference.
    The username for the client is ihsanhaikalz and the password is ganteng
    Thanks
    Attachments:
    Client Remote.vi ‏746 KB
    Server Remote.vi ‏1433 KB

    Hi ican,
    I was looking at your VI's but I cannot seem to pinpoint exactly where you are using Windows Media Player.  In order to more quickly assist you, could you please recreate this issue more concisely in a smaller set of VIs.  Also, were you able to get sound when you did not use the TCP/IP connection and simply played the files in LabVIEW?
    I noticed in a few places that you were using the Play Sound File.VI from the Graphics and Sounds palette.  Is that what you are refering to?  I noticed there that the file path that you have designated for the song is simply the song title.  Instead, this should be a path to where the song is located on your computer.
    Also, if you are planning on using Windows Media Player, have you considered using the ActiveX commands for Windows Media Player?  Here are a few examples if you are unfamiliar with this functionality.
    Example 1 and Example 2.
    I hope this helps!
    Kim W.
    Applications Engineer
    National Instruments

  • Problem in stretching video using windows media player control

    Hello
    I am using windows media player 9 and set the stretchtofit property to true.But when I play a video of size 256X192 on a window media control player whose width and height is set to 640 and 384 respectively I find black areas on left and right side of video.My system has windows 2000 and is set to 1280X720 resolution.I am using labview 7.0.
    If anybody encountered the same problem or any suggestion please help to solve the problem.
    Veena

    Are you sure that this property means that the image is "stretched"? It might mean that if the video size is X and the control's size is 2X, the picture will be stretched to fit the control without losing the aspect ratio. I know that the regular WMP does not stretch images. You can easily test this by playing a file smaller than the control and setting the property to F. You can also search google\Microsoft for the WMP SDK.
    Try to take over the world!

  • 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

  • Windows Media Player Fullscreen ActiveX

    Is it possible to run Windows Media Player in Fullscreen mode with
    ActiveX in LabView?  If not, is there a different player I could
    use?  I am trying to play video only (no sound) and the files are
    mosly avis.

    Under your controls pallette, do you an pallete that is .Net & ActiveX?? (I have my pallete set up as Icons and Text and that makes the .Net & ActiveX pallete visible)  In there, there should be a Button that says Windows Media player.  that atuomatically puts a Windows Media player in a container on your front panel.  You can then just try to create a property node and see if one of the properties availible is Full screen.
    I am using LV 8.0 too by the way.
    Kenny

  • How to control the speed of video file in Window media player

    Hello
        I had worked on LabView for a week & i am new to LabView.i am working on Labview 8.5 and i want to control the speed of video file in windows media player on front panel.
    Is it possible?and if yes send me some examples for this & steps to do this.
    Thank You.

    few minutes back only i posted a reply to similar question here

  • Windows Media Player 9 wants to become my primary media player.  I want to play DVDs (movies).  Does WMP9 interfer with iTunes?

    I just had to reformat my computer.  I want to play a movie (DVD) on my computer.  Windows Media Player 9 wants to become my primary media player.  Will doing this conflict with my iTunes database?  Thanks

    Ron,
    Unfortunately, you are not the first to run into this issue.  It is a known issue that WMP 9 will not work properly with LabVIEW 8.0.1 and the only workaround that I have found to work is to upgrade to WMP 10.  Since WMP 10 will not work on Windows 2000, then your other option would be to install WMP 7.1 onto the system.  You can get the download here:
    http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx?displang=en&qstechnology=
    And yes, I was referring to reinserting the ActiveX object into the container, though I have not tried to do this on my machine since I have WMP 10, I have heard that it worked for others.
    Brian Coalson
    Software Engineer
    National Instruments

  • Windows Media Player size

    Hi, I am new to Labview software
    and I am currently using it for my project, and I try to embed Windows Media Player on it. However, the size always changes depend on the video size that it plays. My question is: How can I size the WMP, so that eventhough I play the 800x600 pixels it will just stay in in original size?
    Thanks
    Solved!
    Go to Solution.

    Just create a property node, and set it to all write, put in values and your control will be limited to what size you have put in.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    containerbounds.PNG ‏18 KB

  • Blu-ray DVD no longer recognized by HP MediaSmart or Windows Media Player

    I have the HP Pavilion Elite HPE 250-f desktop computer. This computer includes a CD/DVD/Blu-ray drive. I bought this computer in 2010, and all these years I have successfully played CDs and DVDs on the computer. Until now, I have not attempted to play a Blu-ray DVD.
    A few days ago, I rented the "Divergent" Blu-ray DVD from my public library. The "Divergent" regular DVD was included in the package.
    I put the Blu-ray into the CD/DVD/Blu-ray drive. The HP MediaSmart software recognized the Blu-ray, but the software got into an endless "update" loop and did not play the Blu-ray. Microsoft's Windows Media Player also recognized the Blu-ray, but did not play the Blu-ray.
    One solution I heard about was to plug an HDMI patch cord into the back of my computer box, with the other end of the HDMI patch cord not plugged into anything. Supposedly, the HP MediaSmart software would play a Blu-ray if the software sensed an HDMI cord. Unfortunately, that did not work.
    I then downloaded the Media Player Codec Pack, http://download.cnet.com/Media-Player-Codec-Pack/3000-13632_4-10749065.html    Supposedly, this Codec Pack would allow the Windows Media Player to play the Blu-ray. The Codec Pack included the Classic Media Player.
    I tried to play the Blu-ray on the current Windows Media Player and the Classic version, with the new codecs installed. But nothing worked. I then used System Restore to get rid of the  Media Player Codec Pack. I found out that, in addition to the codecs, I was supposed to use the Slysoft AnyDVD HD software. However, I did not make any more attempts to use the codecs, and I did not download the Slysoft software.
    Now, here's where things get weird. Now, the HP MediaSmart software and the current Windows Media Player do not even *recognize* the Blu-ray DVD. They play the regular "Divergent" DVD very well. But they do not even *see* the Blu-ray DVD.
    I uninstalled the BDDVDRW CH20L driver, version 6.1.7600.16385 (win7_rtm.090713-1255). I restarted the computer, and a new driver was installed. The new driver's version is 6.1.7601.17514. But the Blu-ray DVD is *still* not being recognized.
    Now, I'm hearing that a Blu-ray lens cleaner may be required.
    So, what's going on here? Did the codecs in the Codec Pack damage the Blu-ray lens? Please advise.
    Thank you for any help you can give me.

    Hi, BH. Thanks for your response.
    sp60287.exe seems to be for Windows 8. I have Windows 7.
    But even if I got a PowerDVD version for Windows 7, I still have the issue of the Blu-ray disc not even being detected. The Blu-ray disc is in the drive, but the software (HP MediaSmart, Windows Media Player) says that there is no disc in the drive. This "no detection" issue began after I installed the codecs in the Codec Pack and tried to make Windows Media Player work with the codecs. Is there an issue with the Blu-ray lens? Or is there an issue with the Blu-ray disc itself? 
    I notice that the regular "Divergent" DVD has no fingerprints on it, even after I touch it. But the Blu-ray DVD has lots of fingerprints. Does the Blu-ray have some kind of weird surface? Is there some problem with the Blu-ray's surface that is causing the Blu-ray to not even be detected?
    Thanks.

Maybe you are looking for

  • Cancellation & JV of Excise invoice generated through J1IS

    Dear Friends, We have a requirement to cancel the outgoing excise invoice created through the transaction J1IS towards purchase return. I believe through J1IS, cancellation of the excise invoice is made possible but no accounting document get posted.

  • Create a Checkbox in a Word Document (OLE2)

    Hi @all, I want to create a WORD Document with ABAP. I created an OLE2 Object and now I want to generate a Checkbox in the WORD Document. My Syntax is the following: DATA: o_word TYPE ole2_object.   CREATE OBJECT o_word 'Word.Basic'.   CALL METHOD OF

  • I cant update my iPhoto from app store is aking me to sign in to a acount that I recently change the password and I dont use it a lot. what can I do?

    I cant update my iPhoto from app store is aking me to sign in to a acount that I recently change the password and I dont use it a lot. what can I do?

  • AMD Catalyst breaks TTY

    Hi, I have installed AMD Catalyst. When I boot, virtual console appears as usual (since I don't use a display manager), I am able to login, and I can run Xorg. But once Xorg has been launched, if I try to switch back to TTY, only a black screen appea

  • Project-wise cash Flow

    Respected Guru's,                              There is a requirement of project wise Cost flow here. So, Please suggest what are the attributes needed to get on the same? And, what are the reports needed to analyze upon? Any documentary will be of g