I haven't been able to successfully stream a video yet. I'm using Flowplayer RTMP plugin. My Javascript looks like this.

https://gist.github.com/84b0d8a26c43102b9301