chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 582 forks source link

Plugin request form cam4.com #689

Open ciaociao2 opened 9 years ago

ciaociao2 commented 9 years ago

Please add support for: http://*.cam4.com

ciaociao2 commented 9 years ago

If this can help, I write here some informations I found in various forum.

Link: www.cam4.com/modelname

To retrive the chat server: Code: http://www.cam4.com/direct?rand=1234567&room=modelname&username=guest

This will return the rtmp url to the chat window, for example rtmp://199.59.88.39/cam4-cr107. This url is different for every model.

Then you must connect to the ip address in the url on port 1935 and do all the rtmp handshaking, custom commands, etc. After this you should get the tcUrl to pass to the rtmpdump .