Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Connected users



George

Thanks so much for the info...I was not aware of the admin protocol and will be studying that area.
When I first started to play with the Darwin server I set one up locally on my G5. Everything went great and so when I tried your example:


http://<admin user>:<admin password>@127.0.0.1:554/modules/admin/ server/qtssRTPSvrCurConn

This worked great on my local install, just needed to change it to qtssMP3SvrCurConn since I am streaming audio.

But for the life of me George I can not get it to work on the actual remote Linux server where the web site is hosted and the streamer is actually streaming out the mp3s to my intended listeners.

I have tried to use ajax, cURL and all forms of php. And of course if I set it to my actual IP to XXX.XXX.150.31 :

http://xxx:email@hidden:554/modules/admin/server/ qtssMP3SvrCurConn

I get:

Your request was denied by the server

Which I guess makes sense.

George, as each song is streamed I want to be get the number of users connected to add that info to the playlist tracking table. I am using a CRON TAB to parse the current playlist file to see when it changes and then store that new info into a mySQL table and would like to also get and store the number of listeners.

I am missing something here? Could the IP address on the Linux host be different then the 127.0.0.1 or can it be that I can not use port 554?
Are these questions for my host?


Or am I missing something obvious. I have also tracked down the PERL code in parse.xml.cgi to find how it gets the users and also tried to do an fsockopen on connected.html, I get everything except the list of connected users....(: - <)

Thanks a lot for any advice you can give me in pointing me in the right direction here.

Just as an update...if I do this:

http://xxx:email@hidden:554/xxx/xxx/darwin- streaming-server/qtssMP3SvrCurConn

I get a response:

RTSP/1.0 400 Bad Request
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq:
Connection: Close

Do I need to re-configure the path for the Linux server? I am not that well versed in the ways of virtual paths on Linux servers

Thanks for any or all help

Ken Gaspar
www.newmilwaukeeradio.com
www.newmilwaukee.com


There is an http based admin protocol on QTSS/DSS. The web admin server (written in perl) uses this protocol.


You need the admin username and password to access the API and this will only work on localhost (by default). It shouldn't be a security risk if you call it from a server-side script, and your script wrapped it securely.

I believe the command that gets the number of current connections is:
http://<admin user>:<admin password>@127.0.0.1:554/modules/admin/ server/qtssRTPSvrCurConn


More detail here:
http://developer.apple.com/documentation/QuickTime/QTSS/Tasks/ chapter_3_section_7.html


-George

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Streaming-server-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/streaming-server-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.