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.
34 Comments - Last post 2 minutes ago by MountainWulf
5 Comments - Last post 1 hour ago by ricardobrat
86 Comments - Last post 2 hours ago by ViToos
23 Comments - Last post 5 hours ago by grez1
34 Comments - Last post 5 hours ago by ZPE
2,710 Comments - Last post 5 hours ago by MeguminShiro
23 Comments - Last post 6 hours ago by CryinOrion
0 Comments - Created 3 minutes ago by Phantomreader42
481 Comments - Last post 19 minutes ago by Exodust
57 Comments - Last post 22 minutes ago by Fluffster
6,854 Comments - Last post 37 minutes ago by Oppenh4imer
42 Comments - Last post 39 minutes ago by KillingArts
275 Comments - Last post 2 hours ago by VahidSlayerOfAll
8 Comments - Last post 2 hours ago by Mayanaise
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.