<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div style="line-height: 1.5; font-size: 14px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div>If I use the <span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">Authentication in the rtspsverver (as define </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">ACCESS_CONTROL</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"> in testOnDemandRTSPServer.cpp), how could I make the url with the user name and password?</span></div><div>We use the testOnDemandRTSPServer as rtsp server,  and vlc as the client, use the url<span class="Apple-converted-space"> </span><a href="rtsp://IP:port/test.h264">rtsp://IP:port/test.h264</a><span class="Apple-converted-space"> </span>to play, then vlc show a username & password input dialog.</div><div>Even we use the url <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><a href="rtsp://IP:port/test.h264&user=username&password=password">rtsp://IP:port/test.h264&user=username&password=password</a><span class="Apple-converted-space"> </span>to play, the input dialog show all the same.</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div>Could anyone tell me how to make the url with username & password?</div></div></blockquote><div><br></div>"<a href="rtsp://username:password@IP:port/test.264">rtsp://username:password@IP:port/test.264</a>" should work.  (Note that "testOnDemandRTSPServer" uses "test.264", not "test.h264" as the stream name.)</div><div><br></div><div>I don't recommend this, however, because the user name and password will be sent over the Internet 'in the clear'.  It's better to omit the username and password, and let VLC's GUI pop up a dialog for you to enter these; then they won't get sent over the Internet.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>