RTMP doc is misleading

2 Aug 2012

Today, I got stuck at a problem, where a Flash client requests “createStream”, then the server has to reply something.

The document says:

NetConnection is the default communication channel, which has a stream ID 0. Protocol and a few command messages, including createStream, use the default communication channel.

But if the server return 0 as the stream ID, the client just freezes.

It turns out that the server has to return 1 as the stream ID.

This is a dumbfuck problem…

Give it a kudos