7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Videojs 7 + RTMP の使用法

Last updated at Posted at 2019-10-04

##はじめに
こんにちは streampack チームのメディです。
https://cloudpack.jp/service/option/streampack.html

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

##Objective・目的
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>
<html>

<head>
  <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>
</head>

<body>
  <video class="video-js vjs-default-skin" id="video-container" controls muted autoplay >
    <source src="rtmp://fms.105.net/live/rmc1" type="rtmp/mp4">
  </video>
</body>
<script>
  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);
</script>

</html>

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

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

##Information sources ・ 情報源
https://www.wowza.com/community/questions/50896/live-247-rtmp-stream-demo-url.html
https://github.com/videojs/video.js

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?