You need a server key, and you need to enable the youtube api on the dashboard.@Jaxel
This is what I get if I use a Server Key:
View attachment 116931
This is what I get if I use a browser key:
View attachment 116932
Of course {serviceVAL1} doesn't match, its not supposed to. YouTube live streams are not denoted by channel IDs; its one of the many reasons why YouTube Live streaming sucks ass. There is no "universal" embed code you can put in to just magically embed the channel's live stream. Live streams are instead denoted by video IDs; which change every time a channel goes live.I have also looked at the way you are embedding the stream versus the code it needs to embed it on the site and the {serviceVAL1} is not the same number as the embedded video. So that is probably why it doesn't play.
'videoEmbeddable' => true,
'videoEmbeddable' => 'true',
You need a server key, and you need to enable the youtube api on the dashboard.
Of course {serviceVAL1} doesn't match, its not supposed to. YouTube live streams are not denoted by channel IDs; its one of the many reasons why YouTube Live streaming sucks ass. There is no "universal" embed code you can put in to just magically embed the channel's live stream. Live streams are instead denoted by video IDs; which change every time a channel goes live.
For example, adding DSP's channel to the system would be:
http://8wayrun.com/streams/ucgaqfqoznifunqqua-llu9a.8/channel
If you go to that link right now, it will find a live stream, and forward you to:
http://8wayrun.com/streams/10.J-5LqnJw2ao/stream
While on MOST streaming services CHANNEL = STREAM; on YouTube, this is not the case. Because of this, until a scrape finds the channel and fetches the video ID, it will not embed on any pages. The plus side of YouTube doing it this way however, is that a single channel can have multiple live streams at once.
Also, YouTube changed their API last week. So right now you won't find ANY streams live... you can fix this yourself though by going into: EWRrio/Services/YouTube.php and replacing:
with:Code:'videoEmbeddable' => true,
Code:'videoEmbeddable' => 'true',
Sweet look forward to it. I know you dislike Youtube and their copyright ********, but a lot of my streamers are moving over to it, so it is really a very valid platform. Appreciate all you are doing here to make it just as badass as twitch!The YouTube API changed a lot last week... so I think I can finally get viewer counts working:
http://8wayrun.com/streams/10.kdxGYDODQQ4/stream
They still have no way of showing what game they are playing though.
Added youtube API, but no YT Live streams appearing.
(I limit by game, maybe problem lies there? What should I add for "game spelling" with Youtube Live?, for Cities Skylines?)
And I I try to add channel manually, I get error:
No filter selected.: missingRequiredParameter
Also, YouTube changed their API last week. So right now you won't find ANY streams live... you can fix this yourself though by going into: EWRrio/Services/YouTube.php and replacing:
with:Code:'videoEmbeddable' => true,
Code:'videoEmbeddable' => 'true',
What channel?I did that.
What channel?
The YouTube API is awful and slow. It will show up eventually.Well I managed to add a channel manually (https://gaming.youtube.com/channel/UCqXUdHQdo8zG-yzmlXUXGPQ), but it still does not appear in the LIVE streaming list.
But all youtube gaming channels that stream CSL (and are live) should appear on my site.. I don't have channel restriction, only game restriction.
Sounds like the Twitch API crashing? It does that often.Also, bug:
Quite a lot lately (last few days), often the streams disappear from my site, and I get "There are no live streams broadcasting at this time...". Then I have to force re-scrape several times until they reappear. Very annoying. You experienced this?
The YouTube API is awful and slow. It will show up eventually.
YouTube CAN NOT search by game restriction; it can do channel restriction only. Their API does not expose what game a channel is playing, nor does it offer the ability to search for channels by games.
Sounds like the Twitch API crashing? It does that often.
No, you dont... just add the channel restriction as well... "Channel OR Game".Holy cow.. What is this?? You'd think they would make a streaming service worth of next-gen title.. Can't even filter by game, lol.
http://www.citiesskylines-nation.com/streams/ucqxudhqdo8zg-yzmlxuxgpq.22/channel
So I guess I would have to remove game restriction for that channel to "connect". Ah well..
I'll stay clear of YT-gaming and stick to Twitch for now then.. (and their service blow too to be honest, but at least they can filter by game..)
No, you dont... just add the channel restriction as well... "Channel OR Game".
Twitch used to be great... about 2 years ago. They had good programmers, their API was coming along really well, and all of us API developers loved them. But they became a victim of their own success. Their API hasn't been updated in a LOOOOOOONG time; it still has some really stupid bugs (like the iframe embed code not respecting autoplay=off, or the iframe not working on https), and of course, their servers are constantly crashing.
We use essential cookies to make this site work, and optional cookies to enhance your experience.