Hello,
I’m creating a Twitch.tv app and what it basically does is allow you search for your favorite streamers, find out there info(live, followers, etc) then add them to your list of favorite streamers. In the users dashboard has all of the users saved streamers and each one has a button that you can click on to open up a bootstrap modal with an embedded twitch.tv stream. Right now I’m looking at the documentation for embedding live streams into websites and I believe this to be possible. I basically want to write a function that will pass whatever streamer’s button was clicked to open up the embedded twitch stream.
I have an ajax call that receives the first 10 users within the search and is able to grab all their Twitch ID’s like so:
My first guess is that I’ll have to write a function with multiple arguments that pass through and the function will have to be triggered by the button being clicked. But I’m still fairly new to JavaScript so I could use some direction on how to go about this. Thanks for any input!