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: Using EncoderSDK to control encoder, no interface is shown... how?

HTVi
TV Discussion Newsgroups

Using EncoderSDK to control encoder, no interface is shown... how?
dl0haus 6/23/2007 3:53:00 PM
I've got an Encoder watchdog that works quite well written in C#. The
encoder is 100% programmatically controlled. This means that I have a simple
interface to start/stop and setup the profile to use for encoding.

I'm getting a request that when I start the encoder, that the encoder pops
up like normal, its just programmatically controlled but *can* be manipulated
through the interface if we wanted.

Is it possible to spawn an encoder doing a push distribution to a media
server to its controlled through the SDK *and* can be manipulated through its
own interface by spawning it in such a way as to have the full interface
available?

Thanks,
D
Re: Using EncoderSDK to control encoder, no interface is shown... how?
Vegethalia <vegethalia[ at ]gmail.com> 6/26/2007 6:50:06 AM

dl0haus ha escrit:
[Quoted Text]
> I've got an Encoder watchdog that works quite well written in C#. The
> encoder is 100% programmatically controlled. This means that I have a simple
> interface to start/stop and setup the profile to use for encoding.
>
> I'm getting a request that when I start the encoder, that the encoder pops
> up like normal, its just programmatically controlled but *can* be manipulated
> through the interface if we wanted.
>
> Is it possible to spawn an encoder doing a push distribution to a media
> server to its controlled through the SDK *and* can be manipulated through its
> own interface by spawning it in such a way as to have the full interface
> available?
>
> Thanks,
> D

Just show the default GUI:


hr=CoCreateInstance(CLSID_WMEncoderApp,
NULL,
CLSCTX_LOCAL_SERVER,
IID_IWMEncoderApp,
(void**) &m_pEncoderApp);

//Acquire an IWMEncoder intmerface.
hr=m_pEncoderApp->get_Encoder(&pEnc);
hr=pEnc->QueryInterface(IID_IWMEncoder2, (void**)&m_pEncoder);
//And show the interface.
hr=m_pEncoderApp->put_Visible(VARIANT_TRUE);


Thats all.. :)

Vegethalia
----------------------------------------
http://eqsearchpro.pleyhades.com

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