VideoJs with live stream

陌路散爱 提交于 2019-12-03 09:05:57

So I Looked more into this and found out that it was because I was trying to do this locally. I put my code onto the JsFiddle and it worked. So all I can logically say is that the files must be on a web server for the player to work.
This worked for me not sure if it can be done locally but the only way I could get it to work was on a web server

Try changing your source type to rtmp/flv instead of video/mp4

The type needs to be

type="rtmp/mp4"

if you want live streaming to work, and if you want device switching to work, you need another source with

type="application/x-mpegurl"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!