Playing stream by windows media player com object
-
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 ---------------------
-
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 ---------------------
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 -
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, 2007my 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 ---------------------
-
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 ---------------------
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 -
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, 2007i 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[^]