I would like to embed the interactive player into a local html file which can be rendered on a mobile device. However, it seems that interacting with the player (e.g. pause, setVolume) via postMessages requires the file to be hosted on a local HTTP server if I want to use the API.
I find it odd that the Twitch.Embed approach works fine compared to the Twitch.Player in this context.
Is there any reason that the postMessages are blocked due to CORS restrictions for the “standalone” Player but work fine for the Twitch.Embed object by accessing Twitch.Embed.player?