video-dev / clappr-rtmp-plugin

📺 RTMP support for Clappr player.
http://clappr.io
Apache License 2.0
105 stars 46 forks source link

autoPlay is not working #44

Open merlinyang521 opened 8 years ago

gfronza commented 8 years ago

What version of clappr and clappr-rtmp-plugin are you using? And if possible, paste your player JS setup here as well.

uves commented 8 years ago

I see in code mediaPlayer.autoPlay = false;

Maybe that's the problem , the parameter is not get from JS

Also I have this problem .

albertogasparin commented 8 years ago

+1 Setting autoPlay: true does nothing. Tested with v0.0.15-rc1, clappr v0.2.61 and a live video stream

gfronza commented 8 years ago

@albertogasparin do you see any errors in the console? This should do the trick: https://github.com/flavioribeiro/clappr-rtmp-plugin/blob/master/src/main.js#L112

Is the play() method getting called for you?

I tested with a VOD stream and autoPlay did work fine. Can you show me how to reproduce this?

bikegriffith commented 7 years ago

Same issue here. My horrible workaround is to setTimeout and play after I assume it will be ready, but I'm sure there's a better way.

UnAfraid commented 6 years ago

I had similar problem, fixed it by increasing the width/height to 400/300 because of Cross-origin plugin content from [...] must have a visible size larger than 400 x 300 pixels, or it will be blocked. Invisible content is always blocked.