I would like to add basic Chromecast functionality to my web page. I am stuck at the second step. I can initialise the Chromecast but when the user clicks on the Chromecast button I can't open the receiver selector. I got this error every occasion:
{
code: "session_error"
description: null
details: null
}
I tried to use the same code as I found here. This code works for me but when I integrate it to my page it just doesn't. Is there a possibility that Chrome can't detect that a user interaction happened and that is why it doesn't work? Any other idea how can I solve this?
edit:
I tried multiple chrome cast devices with Google default receiver app ID and it just doesn't work. Those devices work with the linked source page.
Can it cause trouble if the click event is handled in a different JS file? What if it is loaded from a different domain? I can't find any hints in the documentation.