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: Urgent Help - Renderer plugin developed on XP does not work on Vista and WMP 11 combination.

HTVi
TV Discussion Newsgroups

Urgent Help - Renderer plugin developed on XP does not work on Vista and WMP 11 combination.
hriday.musale[ at ]gmail.com 10/17/2008 6:53:20 AM
Hi,

I have a WMP Renderer plug-in developed in VS 2003 on XP. It reads the
information from ASF file and then it draws that information on
videos. I have WMP 11 on my box, with Windows XP Professional and the
plus-in works perfectly fine.
When I register the same plugin on Vista and WMP 11, the plugin is
able to read the asf file fine and the information is decoded
perfectly.
The drawing code does not work. The drawing information is displayed
only for fraction of seconds,

Anybody has faced this before?
Re: Urgent Help - Renderer plugin developed on XP does not work on Vista and WMP 11 combination.
"Chris P." <msdn[ at ]chrisnet.net> 10/17/2008 4:41:56 PM
On Thu, 16 Oct 2008 23:53:20 -0700 (PDT), hriday.musale[ at ]gmail.com wrote:

[Quoted Text]
> I have a WMP Renderer plug-in developed in VS 2003 on XP. It reads the
> information from ASF file and then it draws that information on
> videos. I have WMP 11 on my box, with Windows XP Professional and the
> plus-in works perfectly fine.
> When I register the same plugin on Vista and WMP 11, the plugin is
> able to read the asf file fine and the information is decoded
> perfectly.
> The drawing code does not work. The drawing information is displayed
> only for fraction of seconds,

Then you might want to elaborate on how the drawing code works.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
RE: Urgent Help - Renderer plugin developed on XP does not work on Vis
optxman 10/17/2008 6:56:01 PM
I think you probably had explain how you are doing it. We have a rendering
plugin and it does work on wmp11....

Brian
screenwatch.com

"hriday.musale[ at ]gmail.com" wrote:

[Quoted Text]
> Hi,
>
> I have a WMP Renderer plug-in developed in VS 2003 on XP. It reads the
> information from ASF file and then it draws that information on
> videos. I have WMP 11 on my box, with Windows XP Professional and the
> plus-in works perfectly fine.
> When I register the same plugin on Vista and WMP 11, the plugin is
> able to read the asf file fine and the information is decoded
> perfectly.
> The drawing code does not work. The drawing information is displayed
> only for fraction of seconds,
>
> Anybody has faced this before?
>
Re: Urgent Help - Renderer plugin developed on XP does not work on Vis
hriday.musale[ at ]gmail.com 10/18/2008 1:21:52 AM
On Oct 17, 11:56 am, optxman <optx...[ at ]discussions.microsoft.com>
wrote:
[Quoted Text]
> I think you probably had explain how you are doing it.  We have a rendering
> plugin and it does work on wmp11....
>
> Brian
> screenwatch.com
>
>
>
> "hriday.mus...[ at ]gmail.com" wrote:
> > Hi,
>
> > I have a WMP Renderer plug-in developed in VS 2003 on XP. It reads the
> > information from ASF file and then it draws that information on
> > videos. I have WMP 11 on my box, with Windows XP Professional and the
> > plus-in works perfectly fine.
> > When I register the same plugin on Vista and WMP 11, the plugin is
> > able to read the asf file fine and the information is decoded
> > perfectly.
> > The drawing code does not work. The drawing information is displayed
> > only for fraction of seconds,
>
> > Anybody has faced this before?- Hide quoted text -
>
> - Show quoted text -

I am getting the binary stream from ASF file in ProcessInput call and
then I launch a thread procedure to process that data and draw the
information on VIdeo.
Below is the pseudo code for that.

void __cdecl TestDraw( void * data )
{
Get Window handle from the Renderer plug-in
Draw on Window
}

ProcessInput call:

STDMETHODIMP CMyRenderer::ProcessInput(
{
....... other code goes here
m_spInputBuffer = pBuffer; //The m_spInputBuffer buffer us used
by TestDraw to process the input stream
HANDLE tid = (HANDLE) _beginthread( TestDraw, 0, &myStartup );

}

I am finding the drawing WIndow handle by enumerating the available
windows and looking for WMPVideoWindow (on XP) and EVRVideoHandler on
Vista

Do you see any issue the way I am processing the information.

Re: Urgent Help - Renderer plugin developed on XP does not work on Vis
"Chris P." <msdn[ at ]chrisnet.net> 10/20/2008 3:20:42 PM
On Fri, 17 Oct 2008 18:21:52 -0700 (PDT), hriday.musale[ at ]gmail.com wrote:

[Quoted Text]
> I am finding the drawing WIndow handle by enumerating the available
> windows and looking for WMPVideoWindow (on XP) and EVRVideoHandler on
> Vista
>
> Do you see any issue the way I am processing the information.

You are a Renderer plug-in or just a general WMP plug-in? If WMP is
already rendering you can't just draw over the top of that with GDI. It
might work by chance on XP if you use the overlay, but disable the overlay
in WMP and it will probably fail there as well.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]

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