[Live-devel] How can I do use-based authentication?

pan_xiaolei pan_xiaolei at sina.com
Tue Aug 21 07:55:33 PDT 2007


Thank you for your reply! 
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. 
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.

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?card=1234567890. 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.

Will you please give me a tip? What's the best way to solve this prblem?





David.Pan
2007-08-21



发件人: live-devel-request at ns.live555.com
发送时间: 2007-08-21 03:52:31
收件人: live-devel at ns.live555.com
抄送: 
主题: live-devel Digest, Vol 46, Issue 10

Send live-devel mailing list submissions to
live-devel at lists.live555.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.live555.com/mailman/listinfo/live-devel
or, via email, send a message with subject or body 'help' to
live-devel-request at lists.live555.com

You can reach the person managing the list at
live-devel-owner at lists.live555.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of live-devel digest..."


Today's Topics:

   1. How can I do use-based authentication? (pan_xiaolei)
   2. Re: How can I do use-based authentication? (Ross Finlayson)
   3. use of streamId (rajesh)
   4. Re: use of streamId (Ross Finlayson)
   5. Re: Live555 : Queries (Brian D'Souza)
   6. Difference between H264VideoRTPSink an H264VideoFileSink?
      (Benjamin Meier)
   7. Open Questions Regarding Directory Setup (Li, Chen)
   8. Re: Difference between H264VideoRTPSink an H264VideoFileSink?
      (Ross Finlayson)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Aug 2007 11:02:29 +0800
From: "pan_xiaolei"  <pan_xiaolei at sina.com >
Subject: [Live-devel] How can I do use-based authentication?
To: "live-devel"  <live-devel at ns.live555.com >
Message-ID:  <200708171102285260514 at sina.com >
Content-Type: text/plain; charset="gb2312"

Hi,

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.

My question:
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?

Thanks!!




David.Pan
2007-08-17
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070816/c9bd000b/attachment-0001.html 

------------------------------

Message: 2
Date: Thu, 16 Aug 2007 22:01:49 -0700
From: Ross Finlayson  <finlayson at live555.com >
Subject: Re: [Live-devel] How can I do use-based authentication?
To: LIVE555 Streaming Media - development & use
<live-devel at ns.live555.com >
Message-ID:  <f06240802c2eadafd1705@[66.80.62.44] >
Content-Type: text/plain; charset="us-ascii"

>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.
>
>My question:
>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?

For an illustration of how to add username,password authentication to 
a RTSP server, see the code bracketed
#ifdef ACCESS_CONTROL
#endif
in "mediaServer/live555MediaServer.cpp" or 
"testProgs/testOnDemandRTSPServer.cpp".

The RTSP client will then prompt each user for a username and 
password, before the stream can be played.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070821/a40b1d4f/attachment-0001.html 


More information about the live-devel mailing list