Jump to content
Dustloop Forums

Recommended Posts

Posted

How about adding a window on DL for streamers to see which are active and not, to better structure out how to find Blazblue/FG related streams.

So far I've succeeded copying the Justin and Twitch streams, which luckily are alot of people.

http://vdxretrotainment.eu/streamingtest.html

This is a mere test on how it works, but should be easy to implement if we see enough people are interested in this.

Also, if wonder, it's my own offsite testing area for HTML and PHP, so the things you find there are merely just stuff I do now and then for my College work. But focus on the idea of this.

Posted

I actually really like this idea. I looked for a place to even post "Hey my stream is up and I'm currently streaming *BLANK*" but there's not even a thread. Plus, it'd be a hassle to have to post there every time. A block that automatically shows active streams wouldn't be too hard IMO, and it'd be a fantastic feature. Althernatively you could modify the stream calendar to show an icon or something, but that might be a little more difficult.

Posted

The feature is already working, once one of those streams goes live, the block will be Green. ;) So it's just a matter of giving a html to make it real here on Dustloop.

Posted

I thought it was Huey that was the head honcho here on DL.

Waiting for his response. And of course this thread.

Posted (edited)

Think it's better to post here in the thread so we can discuss it.

Alright, I assume you know how to use PHP cause I have 0 idea except for goggling about.

streamtest.php

<?php

header('content-type: image/png');

$stream = $_GET['stream'];

$json_file = @file_get_contents("http://api.justin.tv/api/stream/list.json?channel={$stream}", 0, null, null);

$json_array = json_decode($json_file, true);

if ($json_array[0]['name'] == "live_user_{$stream}") {

echo file_get_contents("online.png");

}else{

echo file_get_contents("offline.png");

}

?>

The Php code, in tl:dr, when you write in this PHP html adress and then add in the stream name in the HTML link to this to get a "online" and "offline" depending on the API.

As for the html code.

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=nthgenmedia">nthgenmedia<a href="http://www.twitch.tv/starsickle"><img src="/linkto.png"></h4></a>

This is the HTML code that you can use within the HTML, It's the same design I had in the http://vdxretrotainment.eu/streamingtest.html test.

That's it...really.

Not sure I can explain it better since I have 0 idea how the PHP works, but this worked for me.

All that's needed is a person who knows how to use HTML better and/or better graphic competence.

The full HTML code here of what I am using.

<div class="Writer"; style="color:#1B9A01;

font-style:Times;

font-weight:bold;

font-family:Arial" >

<h4><img src= "http://vdxretrotainment.eu/streamtest.php?stream=nthgenmedia">nthgenmedia<a href="http://www.twitch.tv/starsickle"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=starsickle">starsickle<a href="http://www.twitch.tv/starsickle"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=st1ckbug">st1ckbug<a href="http://www.twitch.tv/st1ckbug"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=huey253">huey253<a href="http://www.twitch.tv/huey253"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=xiei">xiei<a href="http://www.twitch.tv/xiei"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=roku_b">roku_b<a href="http://www.twitch.tv/roku_b"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=ArcadeUFO">ArcadeUFO<a href="http://www.twitch.tv/ArcadeUFO"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=bibiquadium">bibiquadium<a href="http://www.twitch.tv/bibiquadium"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=jiyuna">jiyuna<a href="http://www.twitch.tv/jiyuna"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=kurushii">kurushii<a href="http://www.twitch.tv/kurushii"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=Jyosua">Jyosua<a href="http://www.twitch.tv/Jyosua"target="_blank"><img src="/linkto.png"></a><br>

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=sutomu">sutomu<a href="http://www.twitch.tv/sutomu"target="_blank"><img src="/linkto.png"></h4></a><br>

</div>

Think you may even be able to make it only show Online, as long as the html code could be pushed into PHP. Not sure on how to do that either though.

Edited by Vordoxen
Posted

i think i can modify it so that the stream calendar thing we have at the top of hte front page can have an icon in front of each stream that shows its current status.

also, i would like to move any php calls to be hosted on dustloop

Posted (edited)

That's why I wrote the PHP code here so you can get it locally on this own server.

Edited by Vordoxen
Posted

haven't gotten around to it yet, might need to ask circ to work on this for me

Posted

Got a simple version of it working on the front page now. If a stream is live, the text (Online now!) will appear after the title. Maybe we'll make it fancier later.

Thanks for the code and the suggestion, it's pretty damn handy.

Posted

it's still a bit buggy, might not get to fixing it tonight... circ's sleepy and it's 4am where he is

Posted

AWESOME! Glad to contribute to Dustloop. =3 Would've gone faster if I actually had been able to post since day 1. ^^

Anyway, off to watching streams!

Posted

I think there's a bug, the Huey stream goes towards a differnet URL then it should do.

Probably PHP or HTML mixup.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...