How to play rtmp live stream using videojs?

后端 未结 4 1756
谎友^
谎友^ 2020-12-31 07:08

I\'m using OBS to push live stream to my local rtmp server(node-rtsp-rtmp-server), and it works well with VLC media player. I just want to put it into a webpage and i found

4条回答
  •  误落风尘
    2020-12-31 07:41

    
    
       Stream Player 
      
      
      
    
    
     

    The data-setup techorder parameter seems to be necessary for videojs to use flash.

    If that doesn't work then make sure that your javascript files are all good. As of version 6 of video.js it no longer supports flash by default. https://docs.videojs.com/tutorial-faq.html#q-how-can-i-play-rtmp-video-in-videojs

    I am using nginx for my server.

    https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

    https://github.com/arut/nginx-rtmp-module

    If you would rather use a CDN for the video.js and video-js.css files replace the head with

    
    
    
    

    Note: Your time is better spent learning HLS or DASH rather than flash

提交回复
热议问题