Guillaume
Guest
|
Posted:
Mon Oct 17, 2005 4:30 pm Post subject:
How to use Active Script Plugins to grant access to a playli |
|
|
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 ?
|
|
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 |
|
|
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 ? |
|
|