clappr/clappr-chromecast-plugin

General Issue

PreDeToR opened this issue · 3 comments

Hi Guys

I seem to have run into a bit of a issue with this plugin, there is a error that pops up that seems to 1/2 break it.

When you click cast and the plugin starts loading the url. This error pops up:
clappr-chromecast-plugin.js:629 Uncaught TypeError: Cannot set property options of # which has only a getter at new ChromecastPlayback (clappr-chromecast-plugin.js:629) at ChromecastPlugin.loadMediaSuccess (clappr-chromecast-plugin.js:335) at clappr-chromecast-plugin.js:414 at cast_sender.js:formatted:1984 at cast_sender.js:formatted:2004 at V.onMessage (cast_sender.js:formatted:2133) at O.h (cast_sender.js:formatted:1503) at :1:1 i think there is a error in the plugin code

Which links to :
this.options = options;

If I comment out this line of code the plugin seems to work correctly on VOD's.
It casts to the chromecast device and I can skip forwards backwards no issue.
And blanks the video / preview on the browser.

If I leave it in the behavior changes completely, if I reload the page the player doesnt start on web but it does however load on chromecast. but since its not really linked to clappr you cant skip with the player and have to go to the casting properties.

It seems to also affect live streams in the same way.

Can anyone else verify if this is just a issue I have or if it is indeed a issue?

@PreDeToR i think this issue has been already fixed. But has not yet be released by @towerz .

In the meantime, could you try with this "stable" version ?

@kslimani thanks, that solved the one issue I am having :P
@towerz, do you know when you plan to release the next update?

@PreDeToR actually, I was waiting for a small refactor that was on its way, but I think it's ok to release another version as it is.