video-dev / clappr-rtmp-plugin

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

on ready event not firing when playing RTMP #55

Closed sarat1669 closed 8 years ago

sarat1669 commented 8 years ago

How to fix this? Is there any hotfix or patch?

player[parentId] = new Clappr.Player({
   source: videoURL,
   parentId: '#'+parentId,
   plugins: {'playback': [RTMP]},
   rtmpConfig: {
        swfPath: 'RTMP.swf',
        scaling:'stretch',
        playbackType: 'live',
        bufferTime: 1,
        startLevel: 0,
   },
   autoPlay: true,
   events: {
      onReady: onReady
   },
   width: '100%',
   height: '10%'
});
function onReady(){
    console.log('ready');
}
gfronza commented 8 years ago

@sarat1669 I tested here and onReady if being fired correctly. Is your video playing? I think your problem is swfPath set to an invalid URL.