Dear WMS Team. About Custom Plugin
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Dear WMS Team. About Custom Plugin

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server
Author Message
SpongeSong
Guest





Posted: Sun Jul 18, 2004 6:20 pm    Post subject: Dear WMS Team. About Custom Plugin Reply with quote

Hello.

My name is Mr. Kim from Korea.

Please don’t check my grammar. I’m not good at English. :)

Ok. Here are some questions about WMS Architecture.

I’m working on ATL and W2k3 EA.

This Code is some of My Custom Authorization Plug-in.

It illustrates how to retrieve referrer URL for the client of User Contexts.

STDMETHODIMP CAuth::AuthorizeEvent(…)
{
LPWSTR m_UserReferer = NULL;
switch( pEvent->Type )
{

case WMS_EVENT_OPEN:
hr = pUserCtx->GetStringValue(WMS_USER_REFERER,
26, &m_UserReferer,
0);
}
}

In this code, I can retrieve User referrer URL whose client program is WMP 9.

But I can’t retrieve value whose program is Ver.7 or Ver.8.

And also, I can’t retrieve value on other event before WMS_EVENT_OPEN happens.

I want to do that.

But default WMS logging plug-in can retrieve that referrer URL
with any version of WMP of client.

Sometimes I can retrieve that value on WMS_EVENT_LOG event.
But this is not guaranteed.

And I want to retrieve this value on any condition.
(For example, WMS_EVENT_CONNECT or
WMS_EVENT_PHYSICAL_URL_TRANSFORM event).

OK. That’s my first question.

And here is another question.

There are NS_E_REDIRECT return keyword which works only in
WMS_EVENT_PHYSICAL_URL_TRANSFORM and
WMS_EVENT_LOGICAL_URL_TRANSFORM event.

This is not fare.
I want to use this keyword in any event.

Maybe, this is not possible in this version of WMS.

Can it be possible next version of WMS? I expecting it.

Thanks for reading my report.

I want to hear good news for this question.

Back to top
Ravi Raman
Guest





Posted: Wed Jul 21, 2004 11:18 am    Post subject: Dear WMS Team. About Custom Plugin Reply with quote

I am guessing that the older players before WMP9 did not
send the User referer information that the server could
get in the regular events, so the feature was added in
WMP9 player.

I don't think there is anyway to get this information
before the Open event for the WMP9 player. But I believe
that the older players and WMP9 sent this information on
the Log event, so I am not quite sure why you think it is
not guaranteed that it is there in the Log Event.

As for the Physical and Logical URL transform design, the
reason behind allowing it only on the two events is that
this is where the server finds out what the actual request
coming from client/resolved path on server is and is
therefore appropriate to redirect the client accordingly.
Are you trying to use this in a different scenario?

Thanks,
Ravi
--
This posting is provided "AS IS" with no warranties, and
confers no rights.




Quote:
-----Original Message-----
Hello.

My name is Mr. Kim from Korea.

Please don?Tt check my grammar. I?Tm not good at
English. S:)

Ok. Here are some questions about WMS Architecture.

I?Tm working on ATL and W2k3 EA.

This Code is some of My Custom Authorization Plug-in.

It illustrates how to retrieve referrer URL for the
client of User Contexts.

STDMETHODIMP CAuth::AuthorizeEvent(?)
{
LPWSTR m_UserReferer = NULL;
switch( pEvent->Type )
{

case WMS_EVENT_OPEN:
hr = pUserCtx->GetStringValue
(WMS_USER_REFERER,
26,
&m_UserReferer,
0);
}
}

In this code, I can retrieve User referrer URL whose
client program is WMP 9.

But I can?Tt retrieve value whose program is Ver.7 or
Ver.8.

And also, I can?Tt retrieve value on other event before
WMS_EVENT_OPEN happens.

I want to do that.

But default WMS logging plug-in can retrieve that
referrer URL
with any version of WMP of client.

Sometimes I can retrieve that value on WMS_EVENT_LOG
event.
But this is not guaranteed.

And I want to retrieve this value on any condition.
(For example, WMS_EVENT_CONNECT or
WMS_EVENT_PHYSICAL_URL_TRANSFORM event).

OK. That?Ts my first question.

And here is another question.

There are NS_E_REDIRECT return keyword which works only
in
WMS_EVENT_PHYSICAL_URL_TRANSFORM and
WMS_EVENT_LOGICAL_URL_TRANSFORM event.

This is not fare.
I want to use this keyword in any event.

Maybe, this is not possible in this version of WMS.

Can it be possible next version of WMS? I expecting it.

Thanks for reading my report.

I want to hear good news for this question.
.
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB