LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WMPControls PlayItem method

In WMP with Playlist.vi, I create a playlist and play back video files. I am getting an error returned from the IWMPControls method playItem. It is "Unknown System Error" -1072885626. If you know what error this error code is referring to, this would be a great help.
 
Read all comments in the block diagram of WMP with Playlist.vi for proper set up. I am using .avi files for the video files, but it shouldn't matter. The comments in the block diagram also further describe my efforts to solve this problem. I wrote the currentMedia property of IWMPPlayer4 to solve the problem, but this fix does not work in my main project. Since I do not know how this fixed the problem, I cannot tell why this fix does not work in my project. If you have any ideas on this, I would also appreciate it.
 
If anyone out there is familar with this problem (or the listed error code), I would appreciate any help you can offer.
 
Thanks,
Barbara
 
(WMP with Playlist.vi uses Get Current Info.vi and Total Time to Item Time.vi as subVIs.)
0 Kudos
Message 1 of 3
(2,944 Views)
Hi Barbara,

I have not been able to reproduce the error. When I run the code, everything seems to work fine whether I activate the portion of code within the diagram disable or when I keep it disabled. Should I be seeing this error in these files or has the fix you mentioned been implemented for this? Also, does this happen for every file you try? Please let me know.

Best regards,

Steven
0 Kudos
Message 2 of 3
(2,927 Views)
Steven,
 
Thank you for looking at my VIs. It's interesting that they worked on your computers, because the version I uploaded should have returned that error after playItem, at least until you Enabled currentMedia. I have had problems getting ActiveX to behave in a predictable manner, though, so I can't say I'm very surprised.
 
I have since replaced currentMedia and playItem with Item and play and everything seems to work now, both in the VIs I created for troubleshooting (the ones I uploaded) and in my actual project. I still don't know why, but I'm at least glad it works. I have attached a new version of the main VI so you can see what I changed if you like. If you have an explaination for me, I'm interested to hear it, but since the old VI worked on your computer I'm just as baffled as ever.
 
Again, thanks for your time.
 
Barbara
0 Kudos
Message 3 of 3
(2,919 Views)