clappr-rtmp

WebJar for clappr-rtmp

Лицензия

Лицензия

Категории

Категории

IDE Инструменты разработки
Группа

Группа

org.webjars.bowergithub.video-dev
Идентификатор

Идентификатор

clappr-rtmp-plugin
Последняя версия

Последняя версия

0.0.20
Дата

Дата

Тип

Тип

jar
Описание

Описание

clappr-rtmp
WebJar for clappr-rtmp
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/video-dev/clappr-rtmp-plugin

Скачать clappr-rtmp-plugin

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.video-dev/clappr-rtmp-plugin/ -->
<dependency>
    <groupId>org.webjars.bowergithub.video-dev</groupId>
    <artifactId>clappr-rtmp-plugin</artifactId>
    <version>0.0.20</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.video-dev/clappr-rtmp-plugin/
implementation 'org.webjars.bowergithub.video-dev:clappr-rtmp-plugin:0.0.20'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.video-dev/clappr-rtmp-plugin/
implementation ("org.webjars.bowergithub.video-dev:clappr-rtmp-plugin:0.0.20")
'org.webjars.bowergithub.video-dev:clappr-rtmp-plugin:jar:0.0.20'
<dependency org="org.webjars.bowergithub.video-dev" name="clappr-rtmp-plugin" rev="0.0.20">
  <artifact name="clappr-rtmp-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.video-dev', module='clappr-rtmp-plugin', version='0.0.20')
)
libraryDependencies += "org.webjars.bowergithub.video-dev" % "clappr-rtmp-plugin" % "0.0.20"
[org.webjars.bowergithub.video-dev/clappr-rtmp-plugin "0.0.20"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bowergithub.clappr : clappr jar [0,)

Модули Проекта

Данный проект не имеет модулей.

clappr-rtmp-plugin

RTMP support for Clappr player. Supports both RTMP direct and SMIL (dynamic streaming).

How to use

Import rtmp.min.js

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/video-dev/clappr-rtmp-plugin@latest/dist/rtmp.min.js">
</script>

and create Clappr Player adding the external plugin:

var player = new Clappr.Player({
    source: "rtmp://source_here",
    parentId: "#player-wrapper",
    plugins: {'playback': [RTMP]},
    rtmpConfig: {
        swfPath: 'dist/assets/RTMP.swf',
        scaling:'stretch',
        playbackType: 'live',
        bufferTime: 1,
        startLevel: 0,
        switchRules: {
            "SufficientBandwidthRule": {
                "bandwidthSafetyMultiple": 1.15,
                "minDroppedFps": 2
            },
            "InsufficientBufferRule": {
                "minBufferLength": 2
            },
            "DroppedFramesRule": {
                "downSwitchByOne": 10,
                "downSwitchByTwo": 20,
                "downSwitchToZero": 24
            },
            "InsufficientBandwidthRule": {
                "bitrateMultiplier": 1.15
            }
        }
    },
});

Configuration

The plugin accepts several optional configuration options, such as:

  • swfPath (default //cdn.jsdelivr.net/clappr.rtmp/latest/assets/RTMP.swf) - Path to the SWF responsible for the playback.
  • scaling (default letterbox) - Scaling behavior.
  • playbackType (default live if the source contains live on its URL, vod otherwise).
  • bufferTime (default 0.1) - How long to buffer before start playing the media.
  • startLevel (default -1) - Initial quality level index.
  • autoSwitch (default false) - Whether video should autoSwitch quality
  • useAppInstance (default false) - Set it to true if your source url contains the app instance (not required if the app instance is _definst_).
  • proxyType (default none) - Determines which fallback methods are tried if an initial connection attempt to Flash Media Server fails.
  • switchRules (default system defined) - Rules defined to autoSwitch video quality based in some conditions.

Building

Requirements

  1. AirSDK
  2. Webpack

Compile SWF

cd src
sh build_player.sh

Download JS dependencies

npm install

Build the final dist

webpack
org.webjars.bowergithub.video-dev

video-dev

Open-Source Software for video engineers, by video engineers

Версии библиотеки

Версия
0.0.20