clappr-rtmp-plugin
clappr-rtmp-plugin copied to clipboard
Plugin is not working with latest Clappr version
cc @vix-simplex
@vix-simplex I saw your Clappr setup (https://gist.github.com/vix-simplex/42e0bbbdb4dc783064b5201488f3b2d6) and noticed you're missing a swfPath in rtmpConfig, like this:
var player = new Clappr.Player({
source: "rtmp://source_here",
parentId: "#player-wrapper",
plugins: {'playback': [RTMP]},
rtmpConfig: {
swfPath: 'dist/assets/RTMP.swf',
playbackType: 'live' // or 'vod'
},
});
btw, it's working fine with the latest Clappr version (0.2.61).
This not helped. How I understand, if swfPath don't set, then swfPath by default is cdn.jsdelivr.net/clappr.rtmp/latest/assets/RTMP.swf. It is written here: https://github.com/flavioribeiro/clappr-rtmp-plugin#configuration
And I'm found reference on "cdn.jsdelivr.net/clappr.rtmp/latest/assets/RTMP.swf" here: https://github.com/flavioribeiro/clappr-rtmp-plugin/blob/master/dist/rtmp.js#L66
I'm added new gist, in which swfPath not setted, but RTMP-stream playing. New gist has only a different versions of clappr, everything else still. New gist: https://gist.github.com/vix-simplex/79c2e15f18b3c7b769076d55ea086602
I'm trying paste source "" for my player, but it now working for me.
Give me advice please how I may run 0.2.61 correct.
@vix-simplex The CDN has an old version of the RTMP.swf file. This is why it's not working. I tested localy with clappr 0.2.61 and it's working just fine with your source url.
@flavioribeiro AFAIK this JsDelivr should update the CDN automatically (every time a new release is drafted). Or do you have to update manually?
It looks like jsdelivr has stopped automatically syncing. When it works it does sync everything but if filenames change the guys over at jsdelivr have to manually review it from my understanding
https://github.com/jsdelivr/jsdelivr/tree/master/files/clappr.rtmp https://github.com/jsdelivr/jsdelivr/pulls?q=clappr-rtmp-plugin
It looks like in the update.json and info.ini files over there it's pointing at the wrong repo. It's set to "clappr/clappr-rtmp-plugin" not "flavioribeiro/clappr-rtmp-plugin"
@tjenkinson very well noticed! Until version 0.0.12 of this plugin, the repo was in the clappr organization profile. I'll send a PR to update those files. Thanks!
Couldn't get it to work...
My code:
var player = new Clappr.Player({ source: "rtmp://localhost/rtmp/webcam", parentId: "#player", autoPlay: true, rtmpConfig: { swfPath: 'http://localhost/RTMP.swf', scaling:'stretch', playbackType: 'live', bufferTime: 1, startLevel: 0 }, plugins: { playback: [RTMP] }, });
Did i make any mistake?
Downloaded the .swf and rtmp.min.js from this repo just now