From: Alexis Smirnov <[EMAIL PROTECTED]>
Subject: Recording the stream

Hello,

I'm trying to record the presentation using IRMAPacketHook interface.
I've extended testplay sample to implement IRMAPacketHook interface as well
as exwnrndr plugin to implement IRMAPacketHookHelper interface. I've also
added "Recordable" to the stream's header.

The following code was added in main.cpp of testplay:

IRMAPacketHookManager* pPacketHookManager;
pPlayer->QueryInterface( IID_IRMAPacketHookManager, (void**)
&pPacketHookManager);
HRESULT hr;
if(pPacketHookManager)
{
        IRMAPacketHook* pPacketHook;
        exContext->QueryInterface( IID_IRMAPacketHook, (void**)
&pPacketHook);
        if(pPacketHook)
        {
                hr = pPacketHookManager->InitHook(pPacketHook); // returns
S_OK
                hr = pPacketHookManager->StartHook(); // returns E_FAIL
        }
}

What would be the reason that StartHook is returning E_FAIL?
Thanks!


*AS


*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.  Archives of RealForum can
be found at http://realforum.real.com

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to