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.
113 Comments - Last post 18 minutes ago by Heretic777
8 Comments - Last post 56 minutes ago by Acojonancio
17,688 Comments - Last post 1 hour ago by VeritableHero
0 Comments - Created 2 hours ago by Chris76de
51 Comments - Last post 3 hours ago by hbouma
2,065 Comments - Last post 13 hours ago by Warriot
10 Comments - Last post 13 hours ago by MSPachina
17 Comments - Last post 28 seconds ago by PossiblePsycho
339 Comments - Last post 32 seconds ago by PedramP224
465 Comments - Last post 9 minutes ago by sevenweasel
69 Comments - Last post 49 minutes ago by EyeofArrow
280 Comments - Last post 58 minutes ago by Yamaraus
354 Comments - Last post 1 hour ago by onegoodleg
208 Comments - Last post 1 hour ago by JohnWickTheQuick
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.