voctoweb icon indicating copy to clipboard operation
voctoweb copied to clipboard

add chrome cast button to the event page

Open derpeter opened this issue 6 years ago • 5 comments

The benefits of doing so are described here https://stackoverflow.com/questions/44999267/how-to-chromecast-enable-a-website (also how to do it).

As this needs to load google JS we should add a button which loads the JS if the user want's it but not on default.

derpeter avatar Jan 02 '19 18:01 derpeter

This involves loading scripts from Google, which I would not be very happy about. Even if that script was hosted on media.ccc.de, the script itself does load tons of more resources from Google servers, and this is very intransparent.

People who use media.ccc.de over YouTube etc. want to avoid any Google tracking. Please don't implement any of this crappy tracking by including scripts from their addresses.

TheAssassin avatar Jan 02 '19 19:01 TheAssassin

@TheAssassin if it's only done by demand I think it's ok. We can safely assume people who click the 'Chromecast'-button already have Google code running in their network.

Enabling it only on demand is the important part, though

manno avatar Jan 02 '19 20:01 manno

@manno the issue is that code must run all the time, for all users. Google chromecast probably doesn't load pages with specific query params or so (or is capable of pressing a double-click-solution button, as we've seen it with antisocial media buttons, where you click to load code from the network first, then click on the button normally), is it?

TheAssassin avatar Jan 02 '19 20:01 TheAssassin

@TheAssassin as i stated in the inital post, we should load the code on demand. Like the privacy aware facebook buttons on heise. Please read the issue bevor bulldozering all over it. THX

derpeter avatar Jan 07 '19 10:01 derpeter

When enabling the mediaelement.js chromecast plugin already part of this repo, every time the user visits an event/video page, requests to www.gstatic.com are made (compare screenshot). Therefore we need to implement #369 to have an opt-in, before we can enable this feature.

voctoweb-test-cast-feature-gstatic-content

saerdnaer avatar Jan 12 '19 00:01 saerdnaer