Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Playing stream by windows media player com object

Playing stream by windows media player com object

Scheduled Pinned Locked Moved Visual Basic
helpcomquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Areff
    wrote on last edited by
    #1

    Hi evrybody, I want to create a program to play a sound or video stream by windows media player com object (= wmp) . I have a wmp in my windows form. I have a stream from that file(sound or video) not a path(file address on HD) . I wery tried to find out some thing about this problem in internet. ---------------------------- hope to your help. ?

    --------------------- Areff Bahrami(KAVEH) Areff.HB@Gmail.com ---------------------

    D 1 Reply Last reply
    0
    • A Areff

      Hi evrybody, I want to create a program to play a sound or video stream by windows media player com object (= wmp) . I have a wmp in my windows form. I have a stream from that file(sound or video) not a path(file address on HD) . I wery tried to find out some thing about this problem in internet. ---------------------------- hope to your help. ?

      --------------------- Areff Bahrami(KAVEH) Areff.HB@Gmail.com ---------------------

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You cannot use the WMP to play from a stream in memory. It has to play from a file.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You cannot use the WMP to play from a stream in memory. It has to play from a file.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        A Offline
        A Offline
        Areff
        wrote on last edited by
        #3

        my problem in my programm is that i have a stream containig video or sound and i want to play it in my windows app via windows media player control . this code can tell windows media player (=wmp) to play a file in internet AxWindowsMediaPlayer1.Url = "some address"; this code meaning that wmp can play a video or sound streamly . and my question is how can i play my stream when it is in memory ? i find something about creating protocols to do something like the url passing to wmp hope to your help.

        --------------------- Areff Bahrami(KAVEH) Areff.HB@Gmail.com ---------------------

        D 1 Reply Last reply
        0
        • A Areff

          my problem in my programm is that i have a stream containig video or sound and i want to play it in my windows app via windows media player control . this code can tell windows media player (=wmp) to play a file in internet AxWindowsMediaPlayer1.Url = "some address"; this code meaning that wmp can play a video or sound streamly . and my question is how can i play my stream when it is in memory ? i find something about creating protocols to do something like the url passing to wmp hope to your help.

          --------------------- Areff Bahrami(KAVEH) Areff.HB@Gmail.com ---------------------

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          For the second time, you can't. WMP will NOT play from a MemoryStream in your code. You MUST use a different control to do this, but I don't know of any.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          T 1 Reply Last reply
          0
          • D Dave Kreskowiak

            For the second time, you can't. WMP will NOT play from a MemoryStream in your code. You MUST use a different control to do this, but I don't know of any.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            T Offline
            T Offline
            The_Badman
            wrote on last edited by
            #5

            i may be misreading what i have found via search, but i think that it is possible see following form: http://forums.techarena.in/showthread.php?t=72041[^]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups