gerberface / streambadge

Embed and Share Your Live Streaming Status
28 stars 13 forks source link

Badge Doesn't Update #1

Closed bensam123 closed 11 years ago

bensam123 commented 11 years ago

Unless I manually open the image URL in my browser, the badge doesn't update when I start streaming to show online status in forums. However, when I go offline, the badge updates correctly.

VaughnWhiskey commented 11 years ago

I agree, I use the site for many projects and everything WAS working right but now i seem that it takes 30 minutes to update the "image" or have to keep hitting refresh till it shows up.

I have had many people say "ohh i didn't know you was streaming, your little badge said you was offline"

Not sure if this is because there is alot of users stressing the system but i really hope this is sorted out. You the only place that offers a slick and clean badge for streamers.

svinkle commented 11 years ago

Sorry for the late response guys. Just returned from a week long vacation.

A few questions:

I'll look in to this as soon as I can.

VaughnWhiskey commented 11 years ago

Yes twitch. And for me

http://streambadge.com/twitch/custom/2B2B2B&/B9A3E3/808080/VW87.png

<iframe src="http://streambadge.com/twitch/?username=VW87&theme=custom&bg=2B2B2B&link=B9A3E3&text=808080" style="border:none;height:64px;width:100%"></iframe>
bensam123 commented 11 years ago

http://streambadge.com/twitch/custom/000000/bb0004/e10005/bensam123.png

In order for the badge to update I have to manually go to the URL and reload the image, then it updates on all the forums I have it on. Usually it will automatically go offline when I go offline, but sometimes it 'sticks' and I have to manually reload the image URL in order to get it to update on forums. I tried the plain URL without the custom colors and it still doesn't work properly.

Any help would be appreciated.

svinkle commented 11 years ago

Ah, all PNG files had a cache time set to one month. Not helpful in this situation.

Can you guys clear your browser cache and give this a test for me? Let me know how it goes.

VaughnWhiskey commented 11 years ago

still a no go, i did a test on my second twitch account. and had the iframe and html code in a html test bed on both chrome and firefox and it took close to 10-13 minutes to update. I know it is suppose to be instant but is that the normal time frame?

svinkle commented 11 years ago

Thanks for trying this out. I'll need to do more testing and let you know what I come back with. 10 minute turn around is not acceptable.

svinkle commented 11 years ago

I've completed some more tests and researched the topic further. It seems like there's a bit of a cache on Twitch's API when it comes to requesting stream data. I've seen changes of status take between ~30 s to ~5 m. Here are the query entry points for the tests:

Twitch API: https://api.twitch.tv/kraken/streams/"your username"

Streambadge iFrame: http://streambadge.com/twitch/?username="your username"

Streambadge Image: http://streambadge.com/twitch/"your username".png

References: https://groups.google.com/forum/?fromgroups#!searchin/twitch-api/cache/twitch-api/dk3bQ1T5Q60/qaHJKDvkfx0J https://groups.google.com/forum/?fromgroups#!searchin/twitch-api/cache/twitch-api/pUO1bLxB2gQ/NaV067OizcQJ https://groups.google.com/forum/?fromgroups#!topic/justintv-api-developers/Q6_nlBW7-6Y

VaughnWhiskey commented 11 years ago

it's actually seems to be alot faster now. a site help with uses the badges for their streamers and they have been have their online status show up x3 faster then before now and they are in Hawaii lol. not sure what you did but it does seem to be better. maybe twitch did something?

atomiccarot commented 9 years ago

Hey svinkle, just wondering. The issue with the PNG being cached, is that a persistent issue or a one-time thing?