<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] How can I do use-based
authentication?</title></head><body>
<blockquote type="cite" cite><font face="Verdana" size="-1">I want to
construct a video site. when some one needs to watch a video, he(she)
must login through a web site, after that, he will get a list that
each item links to a rtsp server, eg
rtsp://123.45.67.89/test.mp3.</font></blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite><font face="Verdana" size="-1">My
question:</font></blockquote>
<blockquote type="cite" cite><font face="Verdana" size="-1">how can I
deny a user who has not login yet to access this file? How does the
rtsp server knows the client has login, maybe it runs on another
machine rather on the web server?</font></blockquote>
<div><br></div>
<div>For an illustration of how to add username,password
authentication to a RTSP server, see the code bracketed</div>
<div><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>#ifdef
ACCESS_CONTROL</div>
<div><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>#endif</div>
<div>in &quot;mediaServer/live555MediaServer.cpp&quot; or
&quot;testProgs/testOnDemandRTSPServer.cpp&quot;.</div>
<div><br></div>
<div>The RTSP client will then prompt each user for a username and
password, before the stream can be played.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>