Multiboxing.com - Multiboxing in World of Warcraft and more!
          

Go Back   Multiboxing in World of Warcraft and Beyond! > All Gaming Forums > Off Topic

Reply
 
LinkBack Thread Tools Display Modes
Old 03-12-2010, 07:15 PM   #1
Tim
Administrator
 
Tim's Avatar
 
Join Date: Jun 2009
Location: USA
Posts: 6,768
Default Muffin! PHP to tell if a JTV or UStream stream is live?

Hey Muffin,

I was wondering if you could figure something out for me. I'm trying to figure a way to, in PHP, tell whether or not a stream is live from Justin.tv as well as Ustream.tv.

Any chance you could finger this one out?

Whoot!
Tim is offline   Reply With Quote
Old 03-12-2010, 08:08 PM   #2
Senior Member
 
TheMuffinMan's Avatar
 
Join Date: Dec 2009
Location: Oklahoma, US
Posts: 1,421
Send a message via AIM to TheMuffinMan Send a message via MSN to TheMuffinMan Send a message via Yahoo to TheMuffinMan
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Here you go (for Justin.tv for now)
Justin.tv/Ustream.tv Status Checker
__________________
TheMuffinMan is offline   Reply With Quote
Old 03-12-2010, 08:36 PM   #3
Tim
Administrator
 
Tim's Avatar
 
Join Date: Jun 2009
Location: USA
Posts: 6,768
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Awesome!

Now make it able to be ran via a function call, so I can include a function into my PHP site, something like:


$multiboxingonline = CheckJTV('http://justin.tv/multiboxing');

and the function would return a 1 for online, 0 for offline.

Also, CheckUstream() for ustream.

Cooliosis?

This will feed into something new and quick and dirty I'm building

Then hook a bro up with some codez!

BTW - I'm reinstalling MSN finally this weekend. Ugg. Want to be my 2v2 long term SC2 partner, whereas me and you dominate the SC2 field, talk on vent, come up with strats, etc?
Tim is offline   Reply With Quote
Old 03-12-2010, 09:17 PM   #4
Senior Member
 
TheMuffinMan's Avatar
 
Join Date: Dec 2009
Location: Oklahoma, US
Posts: 1,421
Send a message via AIM to TheMuffinMan Send a message via MSN to TheMuffinMan Send a message via Yahoo to TheMuffinMan
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Quote:
Originally Posted by Tim View Post
Awesome!

Now make it able to be ran via a function call, so I can include a function into my PHP site, something like:


$multiboxingonline = CheckJTV('http://justin.tv/multiboxing');

and the function would return a 1 for online, 0 for offline.

Also, CheckUstream() for ustream.

Cooliosis?

This will feed into something new and quick and dirty I'm building

Then hook a bro up with some codez!

BTW - I'm reinstalling MSN finally this weekend. Ugg. Want to be my 2v2 long term SC2 partner, whereas me and you dominate the SC2 field, talk on vent, come up with strats, etc?
Sounds good to me!
__________________
TheMuffinMan is offline   Reply With Quote
Old 03-12-2010, 09:30 PM   #5
Senior Member
 
TheMuffinMan's Avatar
 
Join Date: Dec 2009
Location: Oklahoma, US
Posts: 1,421
Send a message via AIM to TheMuffinMan Send a message via MSN to TheMuffinMan Send a message via Yahoo to TheMuffinMan
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Having trouble seeing a difference in the HTML of an offline/online utream stream that I can base that part of this on... notice anything?
__________________
TheMuffinMan is offline   Reply With Quote
Old 03-14-2010, 01:07 AM   #6
Tim
Administrator
 
Tim's Avatar
 
Join Date: Jun 2009
Location: USA
Posts: 6,768
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

To be honest I can't even figure out how to stream to Ustream. I keep on getting an error myself. But isn't there a ticker saying if the channel is live? It also says "Last broadcast was XXX ago". Could that be used to see if it is live?
Tim is offline   Reply With Quote
Old 03-14-2010, 10:31 AM   #7
Senior Member
 
ollee's Avatar
 
Join Date: Jul 2009
Location: Ohio
Posts: 731
Blog Entries: 1
Send a message via AIM to ollee Send a message via Skype™ to ollee
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Quote:
Originally Posted by Tim View Post
To be honest I can't even figure out how to stream to Ustream. I keep on getting an error myself. But isn't there a ticker saying if the channel is live? It also says "Last broadcast was XXX ago". Could that be used to see if it is live?
Pretty sure the last broadcast thing doesnt update till the broadcast ends but not sure...i still need to fiddle with ustream
__________________


WAAAGH!!!
http://www.justin.tv/ollee64/profile
http://www.justin.tv/olleeolleeoxenfree
Aim: Ollee64
Skype: Ollee64
ollee is offline   Reply With Quote
Old 03-14-2010, 10:51 AM   #8
Senior Member
 
TheMuffinMan's Avatar
 
Join Date: Dec 2009
Location: Oklahoma, US
Posts: 1,421
Send a message via AIM to TheMuffinMan Send a message via MSN to TheMuffinMan Send a message via Yahoo to TheMuffinMan
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Quote:
Originally Posted by ollee View Post
Pretty sure the last broadcast thing doesnt update till the broadcast ends but not sure...i still need to fiddle with ustream
That is correct.
__________________
TheMuffinMan is offline   Reply With Quote
Old 03-15-2010, 06:26 PM   #9
Tim
Administrator
 
Tim's Avatar
 
Join Date: Jun 2009
Location: USA
Posts: 6,768
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Did you happen to figure it out yet Muff? (yay!)
Tim is offline   Reply With Quote
Old 03-15-2010, 07:23 PM   #10
Senior Member
 
TheMuffinMan's Avatar
 
Join Date: Dec 2009
Location: Oklahoma, US
Posts: 1,421
Send a message via AIM to TheMuffinMan Send a message via MSN to TheMuffinMan Send a message via Yahoo to TheMuffinMan
Default Re: Muffin! PHP to tell if a JTV or UStream stream is live?

Not Ustream no... and I am waiting for you to actually get on MSN again to give you the script LOL.
__________________
TheMuffinMan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Live stream FAQs Flameingblack General Discussions 21 04-12-2012 06:20 AM
Stonekeep: Fun non-WoW live RPG gaming stream Tim General Discussions 5 09-21-2010 09:57 PM
Live Stream Idea Exchange Team Evil General Discussions 8 07-25-2010 07:50 PM
Live stream engage! Psylence General Discussions 3 07-07-2010 02:37 PM
Tim: Were Is Live Stream? Insomnia365 General Discussions 9 03-15-2010 07:00 PM


SEO by vBSEO 3.3.2