|
|
|
date: Mon, 9 Jun 2008 20:54:01 -0700,
group: microsoft.public.windowsmedia.sdk
back
Re: Encoder SDK:About IWMEncStatistics2
On Mon, 9 Jun 2008 20:54:01 -0700, Michael
wrote:
>Hi;
>
>I am trying to use IWMEncStatistics2 interface to get the number of players
>currently connected to the publishing point.but it always return error code
>0xC00D1B7D no matter how long I have been waited, the error code means "No
>statistics are available at this time" ,Could anyone give me some suggestion?
>
>My program:
>
>hr=pEncoder->get_Statistics(&pStatistics);
>hr=pStatistics->QueryInterface(IID_IWMEncStatistics2,(void **)&pStatistics2);
>hr=pStatistics2->get_PushDistributionStats((IDispatch **)&pDispath);
>hr=pDispath->QueryInterface(IID_IWMEncPushDistributionStats,(void
>**)&pPushInterface);
>hr=pPushInterface->get_Property((CComBSTR"PubPointCurrentConnectedPlayers"),&out);
>if(SUCCEEDED(hr)) <==== return Error 0xC00D1B7D.
It's a curious result, what version of Windows Media Services and
windows server have you connected to in your Push Distribution Point ?
Those values will (or, should) be available when you're using a
Push://* publishing point, and not pulling from the encoder.
If you're Pulling, by specifying a Port number in your output profile,
you may not have access to those values. I've not tested what happens
if you both push and pull PP's.
You should be able to at least test the overall Stats interface (to
eliminate WME issues) by querying for
IWMEncNetConnectionStats.ClientCount
Then try connecting several windows media player instances to the
encoders IP:Port address to test the encoder reports at least that.
HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
date: Fri, 13 Jun 2008 18:12:00 GMT
author: Neil Smith [MVP Digital Media]
Re: Encoder SDK:About IWMEncStatistics2
Hi Neil,thanks for you help.
I have been "resolved" the problem.
My media server is windows server 2003, the media services is 9.0, the
encoding computer is running XP.
I create an account such as "ABC"(administrator) on both the media server
and the encoding computer, and I login the encoding computer as "ABC", then
my program works well, I can get the number of players currently connected to
the push publishing point and so on.
But if the account is not belonging to administrators group on the media
server, or if I login the encoding computer as another account(administrator)
which is not existed in the media server, the problem recurring.
I don't know why,and I can't find any clue in the "Windows Media Encoder
SDK" document.
Thanks again.
"Neil Smith [MVP Digital Media]" wrote:
> On Mon, 9 Jun 2008 20:54:01 -0700, Michael
> wrote:
>
> >Hi;
> >
> >I am trying to use IWMEncStatistics2 interface to get the number of players
> >currently connected to the publishing point.but it always return error code
> >0xC00D1B7D no matter how long I have been waited, the error code means "No
> >statistics are available at this time" ,Could anyone give me some suggestion?
> >
> >My program:
> >
> >hr=pEncoder->get_Statistics(&pStatistics);
> >hr=pStatistics->QueryInterface(IID_IWMEncStatistics2,(void **)&pStatistics2);
> >hr=pStatistics2->get_PushDistributionStats((IDispatch **)&pDispath);
> >hr=pDispath->QueryInterface(IID_IWMEncPushDistributionStats,(void
> >**)&pPushInterface);
> >hr=pPushInterface->get_Property((CComBSTR"PubPointCurrentConnectedPlayers"),&out);
> >if(SUCCEEDED(hr)) <==== return Error 0xC00D1B7D.
>
>
>
> It's a curious result, what version of Windows Media Services and
> windows server have you connected to in your Push Distribution Point ?
>
> Those values will (or, should) be available when you're using a
> Push://* publishing point, and not pulling from the encoder.
>
> If you're Pulling, by specifying a Port number in your output profile,
> you may not have access to those values. I've not tested what happens
> if you both push and pull PP's.
>
> You should be able to at least test the overall Stats interface (to
> eliminate WME issues) by querying for
>
> IWMEncNetConnectionStats.ClientCount
>
> Then try connecting several windows media player instances to the
> encoders IP:Port address to test the encoder reports at least that.
>
> HTH
> Cheers - Neil
> ------------------------------------------------
> Digital Media MVP : 2004-2008
> http://mvp.support.microsoft.com/mvpfaqs
>
date: Sat, 14 Jun 2008 20:08:00 -0700
author: Michael
|
|