I am utilizing the non-interactive embed which is designed on my page to be non-interactive (i.e. it streams to a display with no PC controls attached). However mature streams require user interaction in order to play.
Currently I’m having to blacklist all streamers marking their channels as mature when I request a filtered list of streams from the API to get around this issue, but am wondering if there is any possible solution to enable playing mature videos without requiring user interaction so I will no longer need to block them anymore.
Using JQuery to trigger the button will not work, as Cross-Origin policies would prevent the jQuery Trigger event from working.
I ran into this as well while attempting to make an Amazon FireTV WebApp for our own channel. We have “Mature Content Warning” enabled, and the Embed does not have support for the FireTV remote control, preventing any sort of control. In addition, the FireTV does not support Deep Links between apps (even WebApp to Native Apps) so we cannot simply redirect a WebApp user to the Twitch FireTV app and auto-load our channel.
I would hope that these types of features appear in the Embed, FireTV Twitch App and FireTV as a whole, but Im not holding my breath.
The only other NON-OPTION would be pulling video via the M3u8 playlists, but that is against Twitch ToS, and as stated, is not an option what so ever.
Weird. Using that specific example above in Chrome (logged out of twitch so it doesn’t remember my preferences and DOES show the Mature Link button), the jQuery(’#mature-link’) code returns an empty jQuery object, as if it cant even find the button.
Entering jQuery(’#mature-link’) in the DevTools console also returns an empty object
HOWEVER, after selecting the button in the browser window, getting the contextual menu and selecting “inspect element”, the code DOES work. The problem is, I cant do that programmatically. Its as if the element doesnt exist (since it is in an iframe) until I force the dev tools to see it.