playing a wmv or avi file?
I looked at some examples (none of which compiled properly :mad: ) and tried reading some stuff online but nothing seems to really be able to tell me how to play an avi or wmv, assuming it doesn't use some ridiculous codec that nobody has :ehh: so if any of your could tell me how, that'd be great :)
Re: playing a wmv or avi file?
You can do it through the Windows Media SDK.
http://msdn.microsoft.com/library/de...layer10sdk.asp
The samples that you tried may not have worked (assuming they were Windows Media Examples) if you didn't have the proper version of the media player sdk.
Re: playing a wmv or avi file?
well one of em, it looked like he forgot a whole module! But uhhhh how's it supposed to run on a non-programmer's computer when I'm done with it? Kinda useless if I'm the only one that can use it.
Re: playing a wmv or avi file?
When you register specific dlls for the media player. You need the SDK to develop them. The end user needs media player to use it.
Re: playing a wmv or avi file?
Quote:
Originally Posted by Desolator144
I looked at some examples (none of which compiled properly :mad: ) and tried reading some stuff online but nothing seems to really be able to tell me how to play an avi or wmv, assuming it doesn't use some ridiculous codec that nobody has :ehh: so if any of your could tell me how, that'd be great :)
Hi,
I found some more explanation how to play AVI files.
See this links:
http://apldn.apl2000.com/apllibrary/...2ftrackbar.htm
sparrow1
Re: playing a wmv or avi file?
ooh wow, for once an SDK makes sense and teaches me something :p but I forgot to mention that the point of this was to make an exe that plays a movie without any extra files at all. Is there a way to embed a video file into the exe like a picturebox or imagelist makes the picture it holds embedded into the exe? (and would it turn it into uncompressed video like it seems to uncompresses the image?)
and um sparrow, I think that's the wrong link :p I know how trackbars work, lol
Re: playing a wmv or avi file?
I really don't know but you could try it and make it embedded like we do for images and other things.
sparrow1
Re: playing a wmv or avi file?
Well since most computers have WMP.dll (windows media player dll), you can just reference the dll in your project, and exclude it in your setup project. Code to play the video using the dll. If theres an error, simply tell them to update windows media player...