<!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). 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 through a web server. I don't
know 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> </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 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 weirdly.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </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> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT> </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 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> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Send live-devel mailing list submissions to</DIV>
<DIV>live-devel@lists.live555.com</DIV>
<DIV> </DIV>
<DIV>To subscribe or unsubscribe via the World Wide Web, 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, via email, send a message with subject or body 'help' to</DIV>
<DIV>live-devel-request@lists.live555.com</DIV>
<DIV> </DIV>
<DIV>You can reach the person managing the list at</DIV>
<DIV>live-devel-owner@lists.live555.com</DIV>
<DIV> </DIV>
<DIV>When replying, please edit your Subject line so it is more specific</DIV>
<DIV>than "Re: Contents of live-devel digest..."</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Today's Topics:</DIV>
<DIV> </DIV>
<DIV> 1. How can I do use-based authentication? (pan_xiaolei)</DIV>
<DIV> 2. Re: How can I do use-based authentication? (Ross Finlayson)</DIV>
<DIV> 3. use of streamId (rajesh)</DIV>
<DIV> 4. Re: use of streamId (Ross Finlayson)</DIV>
<DIV> 5. Re: Live555 : Queries (Brian D'Souza)</DIV>
<DIV> 6. Difference between H264VideoRTPSink an
H264VideoFileSink?</DIV>
<DIV> (Benjamin Meier)</DIV>
<DIV> 7. Open Questions Regarding Directory Setup (Li, Chen)</DIV>
<DIV> 8. Re: Difference between H264VideoRTPSink an H264VideoFileSink?</DIV>
<DIV> (Ross Finlayson)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 1</DIV>
<DIV>Date: Fri, 17 Aug 2007 11:02:29 +0800</DIV>
<DIV>From: "pan_xiaolei" <pan_xiaolei@sina.com ></DIV>
<DIV>Subject: [Live-devel] How can I do use-based authentication?</DIV>
<DIV>To: "live-devel" <live-devel@ns.live555.com ></DIV>
<DIV>Message-ID: <200708171102285260514@sina.com ></DIV>
<DIV>Content-Type: text/plain; charset="gb2312"</DIV>
<DIV> </DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>My question:</DIV>
<DIV>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?</DIV>
<DIV> </DIV>
<DIV>Thanks!!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>David.Pan</DIV>
<DIV>2007-08-17</DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>An HTML attachment was scrubbed...</DIV>
<DIV>URL: <A
href="http://lists.live555.com/pipermail/live-devel/attachments/20070816/c9bd000b/attachment-0001.html ">http://lists.live555.com/pipermail/live-devel/attachments/20070816/c9bd000b/attachment-0001.html </A></DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 2</DIV>
<DIV>Date: Thu, 16 Aug 2007 22:01:49 -0700</DIV>
<DIV>From: Ross Finlayson <finlayson@live555.com ></DIV>
<DIV>Subject: Re: [Live-devel] How can I do use-based authentication?</DIV>
<DIV>To: LIVE555 Streaming Media - development & use</DIV>
<DIV><live-devel@ns.live555.com ></DIV>
<DIV>Message-ID: <f06240802c2eadafd1705@[66.80.62.44] ></DIV>
<DIV>Content-Type: text/plain; charset="us-ascii"</DIV>
<DIV> </DIV>
<DIV>>I want to construct a video site. when some one needs to watch a </DIV>
<DIV>>video, he(she) must login through a web site, after that, he will </DIV>
<DIV>>get a list that each item links to a rtsp server, eg </DIV>
<DIV>>rtsp://123.45.67.89/test.mp3.</DIV>
<DIV>></DIV>
<DIV>>My question:</DIV>
<DIV>>how can I deny a user who has not login yet to access this file? How </DIV>
<DIV>>does the rtsp server knows the client has login, maybe it runs on </DIV>
<DIV>>another machine rather on the web server?</DIV>
<DIV> </DIV>
<DIV>For an illustration of how to add username,password authentication to </DIV>
<DIV>a RTSP server, see the code bracketed</DIV>
<DIV>#ifdef ACCESS_CONTROL</DIV>
<DIV>#endif</DIV>
<DIV>in "mediaServer/live555MediaServer.cpp" or </DIV>
<DIV>"testProgs/testOnDemandRTSPServer.cpp".</DIV>
<DIV> </DIV>
<DIV>The RTSP client will then prompt each user for a username and </DIV>
<DIV>password, before the stream can be played.</DIV>
<DIV>-- </DIV>
<DIV> </DIV>
<DIV>Ross Finlayson</DIV>
<DIV>Live Networks, Inc.</DIV>
<DIV><A href="http://www.live555.com/">http://www.live555.com/</A></DIV>
<DIV>-------------- next part --------------</DIV></FONT></DIV></BODY></HTML>