"Limit bandwidth per stream per player" problem

From: Ravi Raman (ravira_at_Online.microsoft.com)
Date: 05/17/04


Date: Mon, 17 May 2004 11:46:01 -0700

Would you happen to have a WIndows Media Enterprise server
edition? If so, you can combine the URL modifier solution
that you suggested last with a custom plug-in (or a simple
Active Script plug-in) which will deny access if the
selected bitrate was > 40K and the request was coming from
an internet IP. So, anyone who tries to overcome the bw
limitation by omitting parameters will be denied access
because they are accessing with internet IP.

For example, I have given an active script plug-in that
can be enabled on a publishing point that will deny Play
access if someone requests from "155.155.155.155" and the
content bitrate selected was > 40K. Hopefully, you can
modify to make this work for you:

function OnWmseAuthorizePlay(u, p, c)

ipaddr = u("WMS_USER_IP_ADDRESS_STRING").Value
bw = CLng(p("WMS_PRESENT_WMSSINK_SELECTED_BITRATE").Value)

if (ipaddr = "155.155.155.155" AND bw > 40000) then
   OnWMSEAuthorizePlay = &H80070005
else
   OnWMSEAuthorizePlay = &H0
end if

end function

Obviously,I haven't tested the above script rigorously -
the script above is just a sample. Please modify it to fit
your needs. Hope this helps.

Thx,
Ravi

--
This posting is provided "AS IS" with no warranties, and 
confers no rights. Use of included script samples are 
subject to the terms specified at 
http://www.microsoft.com/info/cpyright.htm"
>-----Original Message-----
>Hi,
>
>We have a WMS9 serving clients both for our intranet and 
Internet users. The
>Windows Media Encoder  produces a live MBR stream 
composed of three CBR
>streams (48,24, and 19 Kbps). What we are trying to 
achieve is a scenario
>where Internet users have access only to 24 and 19 Kbps 
streams, while our
>intranet users be able to receive the 48 Kbps stream too. 
According to the
>documentation and mined information there are two 
different solutions, one
>based on the WMS and one on the WME. The first solution 
is to use two
>different WME, one streaming at 48 Kbps and the other at 
24 and 19 Kbps,
>then create appropriate publishing points and finally 
enable an IP address
>authorization rule on the 48 Kbps publishing point. This 
solution is
>rejected in our environment, since it requires two 
machines for live
>streaming, which we can afford.
>
>The second and more elegant solution is to create two 
publishing points on
>the WMS9 and enable "Limit bandwidth per stream per 
player" for the
>publising point exposed to the Internet (we enable IP 
address authorization
>on the other publising point). Both publishing points 
pull the same content
>from the same encoder but the exposed one does not allow 
clients to receive
>more than 30 Kbps per player. This is the desirable 
behavior but
>unfortunately, when the limit is enabled clients receive 
a "Server busy"
>error message and cannot view the content. Is this a kind 
of bug?
>
>It appears that you cannot limit the bandwidth per stream 
in less than the
>maximum CBR stream on the MBR. If this is the case, it 
practically cancels
>out the option of controlling client bandwidth and my 
question is how it
>would be possible to achieve to control the client 
bandwidth independently
>of the encoding bandwidth.
>
>As an alternative, it has been suggested in this 
newsgroup to use and
>extended URL that passes along maximum client bandwidth. 
This is not enough,
>since everyone can create an alternative URL that ommits 
the extra
>parameters and saturate the available bandwidth.
>
>How could this problem be solved?
>
>Regards,
>Artemios.
>
>
>.
>


Relevant Pages

  • Re: Bandwidth limited publishing point & MBR
    ... 568 Kbps. ... My company has several publishing points set up to control distribution ... My MBR file listed above works. ... The 568 Kbps stream is played. ...
    (microsoft.public.windowsmedia.server)
  • Re: Bandwidth limited publishing point & MBR
    ... My company has several publishing points set up to control distribution via ... Each publishing point has different bandwidth limits based upon the ... Publishing point A is limited to 5 players, but has no Kbps limit per ... The 568 Kbps stream is played. ...
    (microsoft.public.windowsmedia.server)
  • "Limit bandwidth per stream per player" problem
    ... We have a WMS9 serving clients both for our intranet and Internet users. ... Windows Media Encoder produces a live MBR stream composed of three CBR ... streams (48,24, and 19 Kbps). ... It appears that you cannot limit the bandwidth per stream in less than the ...
    (microsoft.public.windowsmedia.server)
  • Live URL re-direct?
    ... We had been hosting a live publishing point for several years. ... we decided to stream out of a CDN so we wouldn't ... take a bandwidth hit. ... so we are continuing to stream out of both locations. ...
    (microsoft.public.windowsmedia.server)
  • Restricting bandwith on a publishing point...
    ... Is it possible to restrict the bandwidth on a publishing point? ... but these seem to be restricting the bandwisth of a stream eg max stream ...
    (microsoft.public.windowsmedia.sdk)