PDA

View Full Version : How to programmatically extract RTMP urls?


Chris001
11-26-2011, 01:41 PM
Hi, I'd like to write a small tool to extract RTMP urls, because I need to add some functionality that other programs don't have.

Currently I'm checking the raw network traffic and I can see the RTMP urls (sometimes only half of the urls), but for every website it's different.

For one website it looks like this in the raw data: "Subscribe.swf??serverIP=rtmp://....."
An other website looks like this in the raw data: "Playing and resetting rtmp://....."

This way it's impossible to properly extract the RTMP urls. Applications like Coojah6, Replay Media Catcher and StreamTransport can always find the correct RTMP urls. They can even find flashVer, tcUrl and swfUrl, so there must be a standard/proper way of extracting the RTMP urls from the raw data when the video starts playing.

Does anybody know how this is done? What are these appplications exactly looking for?

svnpenn
11-26-2011, 10:15 PM
The best I can say at this point is to check the source code for RtmpSrv

Chris001
11-27-2011, 11:28 AM
Thank you. I looked at the source code for RtmpSrv, but it's written in C and unfortunately I don't know any C. I wish there was an example in C# or perhaps VB.

At least I'm a bit closer now. Thanks again.