Twitch i-frame to 3D


#1

Hi, I’m having a lot of trouble with this issue:

I’m trying to get a Twitch stream into WebVR (A-Frame API). With the previous Twitch APIs, I saw that HLS was supported which let you access the contents of the stream. With the new API however, I’m having a tough time figuring out how I would get an i-frame working. I keep coming across issues with CORS and accessing inner elements.

Is it possible to get the i-frame into either JS Canvas or THREE.js or A-Frame? Or any particular insight that could lead me in the right direction?

Thanks so much.


#2

From what I know, there was never a supported api endpoint for accessing the stream data directly. The only supported method for playing a stream can be found here: https://dev.twitch.tv/docs/embed/

api.twitch.tv/api was never supported/documented(can change or disappear at anytime without warning, use at your own risk) for 3rd party development.


#3

ah okay, thank you!