How to use Active Script Plugins to grant access to a playli
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
How to use Active Script Plugins to grant access to a playli

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





Posted: Mon Oct 17, 2005 4:30 pm    Post subject: How to use Active Script Plugins to grant access to a playli Reply with quote

Hi,
I discovered Active Scripts within Windows Media Server process and i've
found a page to log interesting stuffs (like user IP, file path to the
playlistn, etc...).
I'd like to use these informations to manage access to the playlists.

A regular scripts should look like tthis :
Function OnWMSEAuthorizeOpen (UserCtx, PresCtx, CmdCtx)
tempStr = "OnWMSEAuthorizeOpen " & Now
PrintContextInformation tempStr, UserCtx, PresCtx, CmdCtx
TraceInformation( tempStr )

OnWMSEAuthorizeOpen = &H00000000
end function

(this is a sample from the Microsoft website).
It's good for logging users requests... Anyway, my question is : are there
any return values that lead Media Server to stop the user request. I guess
&H00000000 is the NO ERROR return value...

I tried different values but my Media Server didn't stop my requests :-(
Does anybody knows a bit more about these scripts ?

Back to top
Ravi Raman
Guest





Posted: Thu Oct 27, 2005 8:30 am    Post subject: RE: How to use Active Script Plugins to grant access to a pl Reply with quote

Access denied (which is &H80070005) should cause WMS to reject the user
request.

Ravi
"Guillaume" wrote:

Quote:
Hi,
I discovered Active Scripts within Windows Media Server process and i've
found a page to log interesting stuffs (like user IP, file path to the
playlistn, etc...).
I'd like to use these informations to manage access to the playlists.

A regular scripts should look like tthis :
Function OnWMSEAuthorizeOpen (UserCtx, PresCtx, CmdCtx)
tempStr = "OnWMSEAuthorizeOpen " & Now
PrintContextInformation tempStr, UserCtx, PresCtx, CmdCtx
TraceInformation( tempStr )

OnWMSEAuthorizeOpen = &H00000000
end function

(this is a sample from the Microsoft website).
It's good for logging users requests... Anyway, my question is : are there
any return values that lead Media Server to stop the user request. I guess
&H00000000 is the NO ERROR return value...

I tried different values but my Media Server didn't stop my requests :-(
Does anybody knows a bit more about these scripts ?
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