That's a good starting point, I'll have to figure out how to get it to actually display on a website and CSS it too.
Comment has been collapsed.
You just need to make a curl request to your stream (https://api.twitch.tv/kraken/streams/yourchannelname). Then json_decode (assoc) the response and you'll have a nice array with stream info. The rest is just displaying it wherever you want it :-)
Comment has been collapsed.
This is a really good start, but I might need someone a bit more web-savvy to help me get the API pull/request integrated. We run wordpress with a custom theme up, so formatting it and getting it laid out properly is going to be rough.
Comment has been collapsed.
If you know what stream info you want and where to display it then I might be able to help you.
I have ~1 hour experience with Wordpress but i managed to do this. By default it shows my twitch.tv channel, but you can change it to whatever you want by using a "stream" variable:
?stream=monstream
?stream=taketv - this one is online right now
Moving stuff around with your custom theme shouldn't be that hard to do :-)
Comment has been collapsed.
I don't REALLY need an online/offline indicator, as the stream itself will do that (we have an offline image up)
I'd ideally like it to show the title of the stream - and the game we are currently streaming and some sort of IF statement that if we're offline it says "Monstream is not currently live" instead of "Now Playing: %GAME%" If that's possible.
Also a number of viewers displayed in text would be ideal, as I like to see that info at-a-glance rather than hovering over the video.
Comment has been collapsed.
Ok, my previous example was static so I came up with onother one - this time it dynamicaly refreshes stream info.
JS file
Working example
It's really simple:
Comment has been collapsed.
shoot man, thank you so much. I'm going to start implementing this right now and I'll test it all out. I added you on Steam, I might need to shoot you a message or two but I'm hoping this does it for me :)
EDIT: After messaging you on Steam we got this working, thank you!
Comment has been collapsed.
Thanks sir! Been extremely busy, got a job situation change, got married, bought a house, all exciting things, but I'm finally able to set aside some time at least a few nights a week to game, and stream :)
Comment has been collapsed.
Thanks sir! Yes, I have some nice things up my sleeve coming, been sitting on over $2k worth of codes to give out - so be sure to keep an eye on Monstream ;)
Comment has been collapsed.
Is that change is the reason i can't enter Monstream today ? Cornelious
Comment has been collapsed.
The site should work fine, are you getting an error? Screenshots? I'm not sure why it would cause an issue, I haven't implemented anything yet.
Comment has been collapsed.
wrong address, sorry i got into the wrong site, i make mistake between monstream.tv and monstream.net . That what happen google fail to get what you want
Comment has been collapsed.
Ah ok, good to know. I was checking with chrome, IE, safari, and firefox, to see if anything i had changed made it blow up in one of them :P
Comment has been collapsed.
10 Comments - Last post 11 minutes ago by miIk
21 Comments - Last post 1 hour ago by Seibitsu
1,765 Comments - Last post 1 hour ago by Seibitsu
3 Comments - Last post 4 hours ago by lostsoul67
540 Comments - Last post 8 hours ago by Ledyba
47,106 Comments - Last post 9 hours ago by kbronct
49 Comments - Last post 9 hours ago by blueflame32
28 Comments - Last post 7 minutes ago by Ev11
3 Comments - Last post 22 minutes ago by pingu23
8 Comments - Last post 47 minutes ago by Droj
794 Comments - Last post 1 hour ago by JimLink
95 Comments - Last post 1 hour ago by Xeton99
2 Comments - Last post 1 hour ago by Zarddin
19 Comments - Last post 2 hours ago by Bum8ara5h
Anybody familiar with the Twitch.tv APIs?
Basically we want to tweak monstream.tv a bit more, and have it show things like the current stream name and what game is being played, etc, kind of like www.vidyavidya.de does. I can't find the right section of documentation to pull/display that API.
Comment has been collapsed.