Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at


Videojs 7 + RTMP の使用法


こんにちは streampack チームのメディです。

Screen Shot 2019-10-04 at 10.39.38.png

Screen Shot 2019-10-04 at 10.52.22.png

Screen Shot 2019-10-04 at 10.51.41.png


Learning how to use videojs + RTMP through a simple example.
videojs + RTMPの簡単な例を学ぶこと。

A simple implementation ・ 簡単な実装

Screen Shot 2019-10-04 at 10.40.15.png

<!DOCTYPE html>

  <title>Videojs 7 + RTMP  (flash)</title>
  <meta charset="utf-8">
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/video.js/7.6.5/video-js.min.css" />
  <script src="//cdnjs.cloudflare.com/ajax/libs/video.js/7.6.5/video.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/videojs-flash/2.1.2/videojs-flash.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/videojs-flashls-source-handler@1.1.2/dist/videojs-flashls-source-handler.min.js"></script>

  <video class="video-js vjs-default-skin" id="video-container" controls muted autoplay >
    <source src="rtmp://fms.105.net/live/rmc1" type="rtmp/mp4">
  var options = {
    flash: {
      swf: '//cdnjs.cloudflare.com/ajax/libs/videojs-swf/5.4.2/video-js.swf'
    fluid: true
  var player = videojs('video-container', options);


Compatibility ・ウェブブラウザの互換性

Browser Compatibility
Safari 12 Desktop YES
Firefox 69 Desktop YES
Chrome 74 Desktop YES

Information sources ・ 情報源


Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
Help us understand the problem. What are the problem?