<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#000000 size=2>Thank you for your reply! 
</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2>I've tried your advice, that 
defines the macros ACCESS_CONTROL. Wonderful, the windows media player promoted 
me to enter the username and the password. (BTW, the windows media player didn't 
give a realm to the live555 server, as a result, the authorization 
failed).&nbsp;Unfortunately, the realplayer and VLC didn't promte anything to 
me. </FONT></DIV>
<DIV><FONT face=Verdana size=2>In fact, what I need is to build a stream server 
and the authorization is completed&nbsp;through a web server. I don't 
know&nbsp;how the rtsp server can get the authorization information that only 
the web server can get easily. Maybe either of them is running on a seperated 
machine.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>I got a idea that: when a user wish to access a 
video file, he must login on a web server. Then, the web server will generate a 
page&nbsp;in which there's a rtsp link, eg: 
rtsp://test.livenetworks.com/test.mpg?<STRONG>card=1234567890</STRONG>. Well, 
the client player will use this link to access the video file and the rtsp 
server MUST authorize the card. Though any player can be authorized in this way, 
I think, it sounds&nbsp;weirdly.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Will you please give me a tip? What's the best 
way to solve this prblem?</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>David.Pan</FONT></DIV>
<DIV><FONT face=Verdana size=2>2007-08-21</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> 
live-devel-request@ns.live555.com</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG> 
2007-08-21&nbsp;03:52:31</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> 
live-devel@ns.live555.com</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> live-devel Digest, Vol 
46, Issue 10</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Send&nbsp;live-devel&nbsp;mailing&nbsp;list&nbsp;submissions&nbsp;to</DIV>
<DIV>live-devel@lists.live555.com</DIV>
<DIV>&nbsp;</DIV>
<DIV>To&nbsp;subscribe&nbsp;or&nbsp;unsubscribe&nbsp;via&nbsp;the&nbsp;World&nbsp;Wide&nbsp;Web,&nbsp;visit</DIV>
<DIV><A 
href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</A></DIV>
<DIV>or,&nbsp;via&nbsp;email,&nbsp;send&nbsp;a&nbsp;message&nbsp;with&nbsp;subject&nbsp;or&nbsp;body&nbsp;'help'&nbsp;to</DIV>
<DIV>live-devel-request@lists.live555.com</DIV>
<DIV>&nbsp;</DIV>
<DIV>You&nbsp;can&nbsp;reach&nbsp;the&nbsp;person&nbsp;managing&nbsp;the&nbsp;list&nbsp;at</DIV>
<DIV>live-devel-owner@lists.live555.com</DIV>
<DIV>&nbsp;</DIV>
<DIV>When&nbsp;replying,&nbsp;please&nbsp;edit&nbsp;your&nbsp;Subject&nbsp;line&nbsp;so&nbsp;it&nbsp;is&nbsp;more&nbsp;specific</DIV>
<DIV>than&nbsp;"Re:&nbsp;Contents&nbsp;of&nbsp;live-devel&nbsp;digest..."</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Today's&nbsp;Topics:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;1.&nbsp;How&nbsp;can&nbsp;I&nbsp;do&nbsp;use-based&nbsp;authentication?&nbsp;(pan_xiaolei)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;2.&nbsp;Re:&nbsp;How&nbsp;can&nbsp;I&nbsp;do&nbsp;use-based&nbsp;authentication?&nbsp;(Ross&nbsp;Finlayson)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;3.&nbsp;use&nbsp;of&nbsp;streamId&nbsp;(rajesh)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;4.&nbsp;Re:&nbsp;use&nbsp;of&nbsp;streamId&nbsp;(Ross&nbsp;Finlayson)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;5.&nbsp;Re:&nbsp;Live555&nbsp;:&nbsp;Queries&nbsp;(Brian&nbsp;D'Souza)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;6.&nbsp;Difference&nbsp;between&nbsp;H264VideoRTPSink&nbsp;an 
H264VideoFileSink?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Benjamin&nbsp;Meier)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;7.&nbsp;Open&nbsp;Questions&nbsp;Regarding&nbsp;Directory&nbsp;Setup&nbsp;(Li,&nbsp;Chen)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;8.&nbsp;Re:&nbsp;Difference&nbsp;between&nbsp;H264VideoRTPSink&nbsp;an&nbsp;H264VideoFileSink?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Ross&nbsp;Finlayson)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message:&nbsp;1</DIV>
<DIV>Date:&nbsp;Fri,&nbsp;17&nbsp;Aug&nbsp;2007&nbsp;11:02:29&nbsp;+0800</DIV>
<DIV>From:&nbsp;"pan_xiaolei"&nbsp; &lt;pan_xiaolei@sina.com &gt;</DIV>
<DIV>Subject:&nbsp;[Live-devel]&nbsp;How&nbsp;can&nbsp;I&nbsp;do&nbsp;use-based&nbsp;authentication?</DIV>
<DIV>To:&nbsp;"live-devel"&nbsp; &lt;live-devel@ns.live555.com &gt;</DIV>
<DIV>Message-ID:&nbsp; &lt;200708171102285260514@sina.com &gt;</DIV>
<DIV>Content-Type:&nbsp;text/plain;&nbsp;charset="gb2312"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I&nbsp;want&nbsp;to&nbsp;construct&nbsp;a&nbsp;video&nbsp;site.&nbsp;when&nbsp;some&nbsp;one&nbsp;needs&nbsp;to&nbsp;watch&nbsp;a&nbsp;video,&nbsp;he(she)&nbsp;must&nbsp;login&nbsp;through&nbsp;a&nbsp;web&nbsp;site,&nbsp;after&nbsp;that,&nbsp;he&nbsp;will&nbsp;get&nbsp;a&nbsp;list&nbsp;that&nbsp;each&nbsp;item&nbsp;links&nbsp;to&nbsp;a&nbsp;rtsp&nbsp;server,&nbsp;eg&nbsp;rtsp://123.45.67.89/test.mp3.</DIV>
<DIV>&nbsp;</DIV>
<DIV>My&nbsp;question:</DIV>
<DIV>how&nbsp;can&nbsp;I&nbsp;deny&nbsp;a&nbsp;user&nbsp;who&nbsp;has&nbsp;not&nbsp;login&nbsp;yet&nbsp;to&nbsp;access&nbsp;this&nbsp;file?&nbsp;How&nbsp;does&nbsp;the&nbsp;rtsp&nbsp;server&nbsp;knows&nbsp;the&nbsp;client&nbsp;has&nbsp;login,&nbsp;maybe&nbsp;it&nbsp;runs&nbsp;on&nbsp;another&nbsp;machine&nbsp;rather&nbsp;on&nbsp;the&nbsp;web&nbsp;server?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks!!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>David.Pan</DIV>
<DIV>2007-08-17</DIV>
<DIV>--------------&nbsp;next&nbsp;part&nbsp;--------------</DIV>
<DIV>An&nbsp;HTML&nbsp;attachment&nbsp;was&nbsp;scrubbed...</DIV>
<DIV>URL:&nbsp;<A 
href="http://lists.live555.com/pipermail/live-devel/attachments/20070816/c9bd000b/attachment-0001.html&nbsp;">http://lists.live555.com/pipermail/live-devel/attachments/20070816/c9bd000b/attachment-0001.html&nbsp;</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message:&nbsp;2</DIV>
<DIV>Date:&nbsp;Thu,&nbsp;16&nbsp;Aug&nbsp;2007&nbsp;22:01:49&nbsp;-0700</DIV>
<DIV>From:&nbsp;Ross&nbsp;Finlayson&nbsp; &lt;finlayson@live555.com &gt;</DIV>
<DIV>Subject:&nbsp;Re:&nbsp;[Live-devel]&nbsp;How&nbsp;can&nbsp;I&nbsp;do&nbsp;use-based&nbsp;authentication?</DIV>
<DIV>To:&nbsp;LIVE555&nbsp;Streaming&nbsp;Media&nbsp;-&nbsp;development&nbsp;&amp;&nbsp;use</DIV>
<DIV>&lt;live-devel@ns.live555.com &gt;</DIV>
<DIV>Message-ID:&nbsp; &lt;f06240802c2eadafd1705@[66.80.62.44] &gt;</DIV>
<DIV>Content-Type:&nbsp;text/plain;&nbsp;charset="us-ascii"</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;I&nbsp;want&nbsp;to&nbsp;construct&nbsp;a&nbsp;video&nbsp;site.&nbsp;when&nbsp;some&nbsp;one&nbsp;needs&nbsp;to&nbsp;watch&nbsp;a&nbsp;</DIV>
<DIV>&gt;video,&nbsp;he(she)&nbsp;must&nbsp;login&nbsp;through&nbsp;a&nbsp;web&nbsp;site,&nbsp;after&nbsp;that,&nbsp;he&nbsp;will&nbsp;</DIV>
<DIV>&gt;get&nbsp;a&nbsp;list&nbsp;that&nbsp;each&nbsp;item&nbsp;links&nbsp;to&nbsp;a&nbsp;rtsp&nbsp;server,&nbsp;eg&nbsp;</DIV>
<DIV>&gt;rtsp://123.45.67.89/test.mp3.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;My&nbsp;question:</DIV>
<DIV>&gt;how&nbsp;can&nbsp;I&nbsp;deny&nbsp;a&nbsp;user&nbsp;who&nbsp;has&nbsp;not&nbsp;login&nbsp;yet&nbsp;to&nbsp;access&nbsp;this&nbsp;file?&nbsp;How&nbsp;</DIV>
<DIV>&gt;does&nbsp;the&nbsp;rtsp&nbsp;server&nbsp;knows&nbsp;the&nbsp;client&nbsp;has&nbsp;login,&nbsp;maybe&nbsp;it&nbsp;runs&nbsp;on&nbsp;</DIV>
<DIV>&gt;another&nbsp;machine&nbsp;rather&nbsp;on&nbsp;the&nbsp;web&nbsp;server?</DIV>
<DIV>&nbsp;</DIV>
<DIV>For&nbsp;an&nbsp;illustration&nbsp;of&nbsp;how&nbsp;to&nbsp;add&nbsp;username,password&nbsp;authentication&nbsp;to&nbsp;</DIV>
<DIV>a&nbsp;RTSP&nbsp;server,&nbsp;see&nbsp;the&nbsp;code&nbsp;bracketed</DIV>
<DIV>#ifdef&nbsp;ACCESS_CONTROL</DIV>
<DIV>#endif</DIV>
<DIV>in&nbsp;"mediaServer/live555MediaServer.cpp"&nbsp;or&nbsp;</DIV>
<DIV>"testProgs/testOnDemandRTSPServer.cpp".</DIV>
<DIV>&nbsp;</DIV>
<DIV>The&nbsp;RTSP&nbsp;client&nbsp;will&nbsp;then&nbsp;prompt&nbsp;each&nbsp;user&nbsp;for&nbsp;a&nbsp;username&nbsp;and&nbsp;</DIV>
<DIV>password,&nbsp;before&nbsp;the&nbsp;stream&nbsp;can&nbsp;be&nbsp;played.</DIV>
<DIV>--&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ross&nbsp;Finlayson</DIV>
<DIV>Live&nbsp;Networks,&nbsp;Inc.</DIV>
<DIV><A href="http://www.live555.com/">http://www.live555.com/</A></DIV>
<DIV>--------------&nbsp;next&nbsp;part&nbsp;--------------</DIV></FONT></DIV></BODY></HTML>