Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is not working with latest Clappr version #58

Open
flavioribeiro opened this issue Aug 15, 2016 · 8 comments
Open

Plugin is not working with latest Clappr version #58

flavioribeiro opened this issue Aug 15, 2016 · 8 comments
Labels

Comments

@flavioribeiro
Copy link
Member

cc @vix-simplex

@gfronza
Copy link
Collaborator

gfronza commented Aug 15, 2016

@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'
    },
});

@gfronza
Copy link
Collaborator

gfronza commented Aug 15, 2016

btw, it's working fine with the latest Clappr version (0.2.61).

@va-an
Copy link

va-an commented Aug 16, 2016

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 "<script src="http://cdn.clappr.io/0.2.61/clappr.min.js"></script>" for my player, but it now working for me.

Give me advice please how I may run 0.2.61 correct.

@gfronza
Copy link
Collaborator

gfronza commented Aug 17, 2016

@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?

@tjenkinson
Copy link
Member

tjenkinson commented Aug 17, 2016

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

@tjenkinson
Copy link
Member

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"

@gfronza
Copy link
Collaborator

gfronza commented Aug 17, 2016

@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!

@ThalysonR
Copy link

ThalysonR commented Oct 19, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants