Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Buffering a media content, while playing the other one in WMP

HTVi
TV Discussion Newsgroups

Buffering a media content, while playing the other one in WMP
fantom 12/27/2008 1:57:01 AM
Hi all,

I am developing an application in C# that has a form with Windows Media
Player embedded inside. There are several links to some online content in my
app. and I want user to change the content from one to another with a button
click. Since WMP spent some time while buffering for the next content, I want
to continue playing the current content. There is an event called "Buffering"
in AXWindowsMediaPlayer class that signals when media player finishes
buffering the content. But I could not achieve this with a single
AXWindowsMediaPlayer object. Whatever I did, I could not continue to play the
first content while buffering the second.

Any ideas?

Thanks in advance.
Re: Buffering a media content, while playing the other one in WMP
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 12/27/2008 4:34:35 AM
From: "fantom"

[Quoted Text]
> I am developing an application in C# that has a form with
> Windows Media Player embedded inside. There are several
> links to some online content in my app. and I want user
> to change the content from one to another with a button
> click. Since WMP spent some time while buffering for the
> next content, I want to continue playing the current
> content. There is an event called "Buffering" in
> AXWindowsMediaPlayer class that signals when media player
> finishes buffering the content. But I could not achieve
> this with a single AXWindowsMediaPlayer object. Whatever
> I did, I could not continue to play the first content
> while buffering the second.

WMP can only open 1 media at a time so you need to use 2
players and swap them. Seamless source switching is
generically complicated and requires a lower level approach
than WMP. Even using DirectShow (which is what WMP uses
internally), you would still need multiple graphs, which is
complex to begin with, even more so in C#, since DS is
designed to be used in C++.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: Buffering a media content, while playing the other one in WMP
"Vladimir Polischuk" <vlad_at_voynex.com> 12/29/2008 2:16:15 PM
Definitely, using one more WMP instance working in the background is a best
solution. You can quite easily hide/show windows using Framework classes.
Regards,

Vladimir V. Polischuk
IT Manager
www.voynex.com - custom software development, solutions for Windows Media
(pay-per-minute billing, streaming content protection, access control)


"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> wrote in message
news:%23Qrezx9ZJHA.1352[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> From: "fantom"
>
>> I am developing an application in C# that has a form with
>> Windows Media Player embedded inside. There are several
>> links to some online content in my app. and I want user
>> to change the content from one to another with a button
>> click. Since WMP spent some time while buffering for the
>> next content, I want to continue playing the current
>> content. There is an event called "Buffering" in
>> AXWindowsMediaPlayer class that signals when media player
>> finishes buffering the content. But I could not achieve
>> this with a single AXWindowsMediaPlayer object. Whatever
>> I did, I could not continue to play the first content
>> while buffering the second.
>
> WMP can only open 1 media at a time so you need to use 2 players and swap
> them. Seamless source switching is generically complicated and requires a
> lower level approach than WMP. Even using DirectShow (which is what WMP
> uses internally), you would still need multiple graphs, which is complex
> to begin with, even more so in C#, since DS is designed to be used in C++.
>
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> // http://www.riseoftheants.com/mmx/faq.htm
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen