Re: Buffering a media content, while playing the other one in WMP
- From: "Vladimir Polischuk" <vlad_at_voynex.com>
- Date: Mon, 29 Dec 2008 16:16:15 +0200
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@xxxxxxxxxxxxxxxxxx> wrote in message
news:%23Qrezx9ZJHA.1352@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Buffering a media content, while playing the other one in WMP
- From: fantom
- Re: Buffering a media content, while playing the other one in WMP
- From: Alessandro Angeli
- Buffering a media content, while playing the other one in WMP
- Prev by Date: Re: Buffering a media content, while playing the other one in WMP
- Previous by thread: Re: Buffering a media content, while playing the other one in WMP
- Index(es):