Best object to play a .wmv file
At the moment I'm using Direct Show to play a Windows Media Video file, this is fine and works ok but I want to be able to manipulate the video, a bit like windows media player. What object is there that could play .wmv files and have player like controls?
Re: Best object to play a .wmv file
I`m assuming that you`re attempting to make an mp3 player like device on your computer. The point of the object you are currently useing is to make your own custom controls.
Re: Best object to play a .wmv file
Quote:
Originally Posted by Iwantmyrpg
I`m assuming that you`re attempting to make an mp3 player like device on your computer.
Well, I would expect it's not exactly an mp3 player if he is looking to play video files. The only other thing I can think of to play videos with is the ActiveX object. And even if it doesn't have the controls built-in, you can always make controls yourself with a few events and a few actives.
Re: Best object to play a .wmv file
Thanks for the replies guys. It was a video file I needed to play. I've made a video demo reel of stuff I've done (which is being sent to a games company) and I needed someway to be able to move through the video (so they can get to the good bits :). I needed it for today (1 July) but no worries, they'll just have to sit through the whole thing. :)
Thanks again.
Re: Best object to play a .wmv file
Ok, I've now been given 2 weeks to make a better player so I'm using the ActiveX object 'Windows Media Play', but how do you load and play a video? I've tried the following:
launchURL(bstrURL="videos\2dgames.wmv")
newMedia (bstrURL="videos\2dgames.wmv")
newPlaylist (bstrURL="videos\2dgames.wmv")
Setenable (enabled=1)
But I can't get anything to play. Anyone any advice?
Re: Best object to play a .wmv file
Doh, I've just done it (with SetURL) right after I posted, sorry!
Re: Best object to play a .wmv file
Can you not convert the video to a format more supported by MMF?
Re: Best object to play a .wmv file
Why use windows media play active X when direct show uses that and will work with different PCs that use different active X versions, if a PC you put the EXE on doesn't have the same version active X your program will not work
Re: Best object to play a .wmv file
I wanted something with WMP like controls. Using DirectX will mean I'll need to create my own controls, which it may seem like second nature to most of you guys, I'm still at the very basic level and wouldn't have a clue on how to create custom controls.
Re: Best object to play a .wmv file
Isn't there an example on the 2nd cd ?