07-08-2012 10:50 PM
I am using Windows Media Player version 12 - trying to use activex to play mpeg files. Everything works great when I call player and play first movie, but when I try and play another only audio plays. Video screen is black, status bar works ok as audio plays. I am using Labview 8.5.1. Any suggestions?
07-09-2012 01:42 AM
If possible share your VI to understand the Issue.
I think the problem is in proper close, Whenever your first video end and you want to open new one close all reference and open again.
07-09-2012 07:41 PM
I believe you are correct with not closing properly - tried a few variations of below but same result. any suggestions would be appreciated.
07-09-2012 09:28 PM
You need to put in a close function to correlate with the green wire related to the original open of the IWMPPlayer4 object. Make sure that happens after closing the IWMPControls object. (Always close in reverse order of how they were opened.)
Be sure to wire up the error wires through the functions. And the error wire can help be sure that all the functions execute in the correct order.
07-10-2012 09:13 PM
thought it was issue with closing, but can't seem to find right combination. no errors when running or opening/closing. latest vi below.
07-10-2012 09:27 PM
That looks good to me.
It must be something else causing the problem then.
07-12-2012 12:08 PM
Hi pjs8323,
I tried to replicate your issue using your same code and I was not able to. I agree with Ravens Fan that the problem seems to be something else.
Some questions:
1. When you say that you try to play another, are you referring to a different video or the same one? If it is a different one, then does the same happen with the same video?
2. Could this be a codec related issue? What happens when you play the first movie in media player independent of LabVIEW and then try playing the second?
Regards,
Bogdan Buricea
07-12-2012 09:37 PM
1. I am referring to a different video. I have another vi that user can select the video - it passes the path to the movie player vi. the first movie selected plays ok, but when I go back to selection vi and pick another movie it only plays the audio. I know its not the movie itself because I can play all the movies ok as long as they are first selected.
2. As long as I stop the movie player vi and restart it will always play movies ok - it's only when I go back to selection vi and then back to movie player that I have an issue.
FYI, I am using Windows 7 and Labview 8.5.1, there was some suggestion that that may be an issue?
07-13-2012 10:48 AM
Hi pjs8323,
Is it possible to zip your code and post it? I'd like to take a look at your calling vi and try to run it on my machine.
My searching has not revealed any known issues with Windows 7 and LabVIEW 8.5.1.
I suspect that it's either a weird media player codec issue or an issue with your calling VI, but i'm not sure.
Regards,
Bogdan Buricea
07-15-2012 11:15 AM
Bogdan,
attached are two vi's - test movie player is used to select a movie (I am using MPEG), then calls the movie player. Thanks for the help.