Results 1 to 8 of 8

Thread: playing a wmv or avi file?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    257

    playing a wmv or avi file?

    I looked at some examples (none of which compiled properly ) 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 so if any of your could tell me how, that'd be great

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    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.
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    257

    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.

  4. #4
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    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.
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  5. #5
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: playing a wmv or avi file?

    Quote Originally Posted by Desolator144
    I looked at some examples (none of which compiled properly ) 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 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
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    257

    Re: playing a wmv or avi file?

    ooh wow, for once an SDK makes sense and teaches me something 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 I know how trackbars work, lol
    Last edited by Desolator144; Mar 9th, 2006 at 06:18 PM.

  7. #7
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    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
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  8. #8
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width