I’m working on this custom page that allows anyone to add their own stream, How it works is that you type in the name of the page title and then the name of your stream (the last part in the URL) then bang it’s up. But something isn’t right with one of the code or the API has changed.
So under display:
<iframe frameborder="0" height="487" width="100%" scrolling="no" src="https://player.twitch.tv/?channel=" /iframe>
Rather then added each URL into the database it’s set so that users only need to add there stream account name. But the URL listed above is wrong right?
Here is that page: https://www.baysidegamers.com/twitch-channels/
You may want to refer to the embedding documentation
Rather than a straight iframe
For a straight iframe you want, which is the same as what you currently have
src="https://player.twitch.tv/?<channel, video, or collection>"
I don’t see anything wrong with your page other than you are not passing a username to the iframe so there is no channel to load.
You actually need to pass in the channel name to
https://player.twitch.tv/?channel= so it’s not jsut
https://player.twitch.tv/?channel=esl_dota2 for example
@BarryCarlyon Thanks able to get it going plus the chat working!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.