videojs/video.js — pull request #605 by iamjem (2013-06-27 14:55:55+00:00)
Title: added RTMP support. fixes #559

I made these additions last year and have been using in production for a while with no problems. I've also committed a pull request to the video-js-swf project, and that same compiled SWF is included here.

Using streaming is pretty simple now, you can add a `` element with type set to `rtmp/mp4` or `rtmp/flv` whose src attribute uses this comma separated format: {{ connection url }},{{ stream url }}

For example, using Amazon Cloudfront, you might have a `` element that looks like this:
``` html

```

The only caveat is that RTMP sources need to appear BEFORE other flash compatible progressive types, because the Flash tech will pick the first compatible one it finds.

You should also be able to use the `playerInstance.src()` method with RTMP strings like this:
``` javascript
playerInstance.src({type: 'rtmp/mp4', src: 'rtmp://s12345.cloudfront.net/cfx/st,mp4:video.mp4'})
```