sttz / TraktRoller

trakt.tv scrobbling integration for the Crunchyroll and Funimation websites
MIT License
21 stars 1 forks source link

What is needed to support YePpHa/crunchyroll-html5? #1

Open matheusfaustino opened 5 years ago

matheusfaustino commented 5 years ago

Hi, first of all, thank you for work here. That is awesome. I really like using crunchyroll with the html5 plugin and I'd like to know how hard it would be and how you think it the right way to implement it?

sttz commented 5 years ago

Crunchyroll's HTML5 player uses the PlayerJS standard to expose generic player controls and events to JavaScript and that's what I'm currently using.

Either crunchyroll-html5 could adopt PlayerJS, which would also improve compatibility with the official HTML5 player in embedded scenarios. Or TraktRoller would need a specific adapter for crunchyroll-html5, that in turn needs a way for external scripts to subscribe to its playback events, which I don't think is currently possible.