Skip to content

Instantly share code, notes, and snippets.

@bydmm
Created February 4, 2015 10:19
Show Gist options
  • Save bydmm/4fd60abe8a5720c845ef to your computer and use it in GitHub Desktop.
Save bydmm/4fd60abe8a5720c845ef to your computer and use it in GitHub Desktop.
Video JS, RTMP and &

较老的RTMP的播放器都是把RTMP服务器和视频的地址作为两个属性分别赋值,但是VideoJS感觉这样过于冗余,于是设定了一个规则就是用&符号把两个属性连接起来。

rtmp://xxx.cloudfront.net/cfx/st/&mp4:abc/bcd.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment