• Resolved jordanhahn

    (@jordanhahn)


    Hi macbookandrew –

    First, thanks for all of your work on this plugin.

    I am trying to display the Live Stream from our YouTube branded account on our website with no success. Every time I load the website, I receive the default “Sorry, there’s no live stream…” message. I’ve waited several minutes (up to half an hour), and still no video shows.

    When I click the

      all our videos

    link I am brought to a YouTube page which says “This channel does not exist.”

    I have double checked and triple checked both the channel ID (for the branded account) and the API key. When I view my Google API Dashboard, I see traffic being reported in the Traffic graph.

    Here is my debug code:
    <!– YouTube Live debugging:
    EmbedYoutubeLiveStreaming::__set_state(array(
    ‘channelId’ => ‘UCB07ag_VydNlMnH9vOk3H6A’,
    ‘API_Key’ => ‘API_KEY’,
    ‘jsonResponse’ => ‘{
    “kind”: “youtube#searchListResponse”,
    “etag”: “\\”XI7nbFXulYBIpL0ayR_gDh3eu1k/-f6JA5_OcXz2RWuH1mpAA2_9mM8\\””,
    “regionCode”: “US”,
    “pageInfo”: {
    “totalResults”: 0,
    “resultsPerPage”: 5
    },
    “items”: []
    }
    ‘,
    ‘objectResponse’ =>
    stdClass::__set_state(array(
    ‘kind’ => ‘youtube#searchListResponse’,
    ‘etag’ => ‘”XI7nbFXulYBIpL0ayR_gDh3eu1k/-f6JA5_OcXz2RWuH1mpAA2_9mM8″‘,
    ‘regionCode’ => ‘US’,
    ‘pageInfo’ =>
    stdClass::__set_state(array(
    ‘totalResults’ => 0,
    ‘resultsPerPage’ => 5,
    )),
    ‘items’ =>
    array (
    ),
    )),
    ‘arrayResponse’ =>
    array (
    ‘kind’ => ‘youtube#searchListResponse’,
    ‘etag’ => ‘”XI7nbFXulYBIpL0ayR_gDh3eu1k/-f6JA5_OcXz2RWuH1mpAA2_9mM8″‘,
    ‘regionCode’ => ‘US’,
    ‘pageInfo’ =>
    array (
    ‘totalResults’ => 0,
    ‘resultsPerPage’ => 5,
    ),
    ‘items’ =>
    array (
    ),
    ),
    ‘errorMessage’ => NULL,
    ‘errorArray’ =>
    array (
    ),
    ‘isLive’ => NULL,
    ‘queryData’ =>
    array (
    ‘part’ => ‘id,snippet’,
    ‘channelId’ => ‘UCB07ag_VydNlMnH9vOk3H6A’,
    ‘eventType’ => ‘live’,
    ‘type’ => ‘video’,
    ‘key’ => ‘API_KEY’,
    ),
    ‘getAddress’ => ‘https://www.googleapis.com/youtube/v3/&#8217;,
    ‘getQuery’ => ‘part=id%2Csnippet&channelId=UCB07ag_VydNlMnH9vOk3H6A&eventType=live&type=video&key=API_KEY’,
    ‘queryString’ => ‘https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&channelId=UCB07ag_VydNlMnH9vOk3H6A&eventType=live&type=video&key=API_KEY&#8217;,
    ‘part’ => ‘id,snippet’,
    ‘eventType’ => ‘live’,
    ‘type’ => ‘video’,
    ‘subdomain’ => ‘www’,
    ‘default_embed_width’ => ‘560’,
    ‘default_embed_height’ => ‘315’,
    ‘default_ratio’ => 1.77777777777777767909128669998608529567718505859375,
    ’embed_code’ => NULL,
    ’embed_autoplay’ => ‘true’,
    ’embed_width’ => ‘720’,
    ’embed_height’ => ‘480’,
    ‘show_related’ => ‘false’,
    ‘live_video_id’ => NULL,
    ‘live_video_title’ => NULL,
    ‘live_video_description’ => NULL,
    ‘live_video_publishedAt’ => NULL,
    ‘live_video_thumb_default’ => NULL,
    ‘live_video_thumb_medium’ => NULL,
    ‘live_video_thumb_high’ => NULL,
    ‘resource_type’ => ‘live’,
    ‘uploads_id’ => NULL,
    ‘channel_title’ => NULL,
    ‘completed_video_id’ => ”,
    ‘resource’ => ‘search’,
    ))
    –>

    Thanks in advance for your help!

    – Jordan

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author macbookandrew

    (@macbookandrew)

    Hi @jordanhahn,

    What’s the page URL where you’re using the plugin?

    Thread Starter jordanhahn

    (@jordanhahn)

    Sorry for the delay – the site was protected for only registered users of our site. I had to remove that restriction for this troubleshooting.

    Here is the link: https://overwatchaero.com/live-stream/

    I’ve verified that sample live video is streaming to the YouTube account. Does it matter whether I have the live feed listed as Public, Unlisted, or Private under the YouTube Creator Studio?

    Thanks again for the help and let me know if I can provide any additional information.

    • This reply was modified 6 years, 2 months ago by jordanhahn.
    Plugin Author macbookandrew

    (@macbookandrew)

    I’ve verified that sample live video is streaming to the YouTube account. Does it matter whether I have the live feed listed as Public, Unlisted, or Private under the YouTube Creator Studio?

    Yes—that would be the main issue. It needs to be public or the YouTube API will not list it (unlisted = available only if you have the URL; private = available only to whitelisted YouTube/Gmail users).

    The other issue is that your channel ID is not in the fallback message. Modify it to this and the link will work:

    <p>Sorry, there’s no live stream at the moment. Please check back later or take a look at <a target="_blank" href="https://youtube.com/channel/UCB07ag_VydNlMnH9vOk3H6A">all of our videos</a>.</p>
    <p><button type="button" class="button" id="check-again">Check again</button><span class="spinner" style="display:none;"></span></p>
    
    • This reply was modified 6 years, 2 months ago by macbookandrew. Reason: update code formatting
    Thread Starter jordanhahn

    (@jordanhahn)

    Alright, slowly making progress. I know have the video listed as Public and the embedded YouTube player is loading on the website; however, now it is saying “Playback on other websites has been disabled by website owner.” I tried checking in the YouTube settings, but the “Allow embedding” option is grayed out and non-clickable. Is there another setting I’m missing?

    I made the change to the fallback message and that now directs to the streaming page…thanks for the fix!

    Boarding a plane, but I’ll check back as soon as I land in a few hours. Again, thanks for the help.

    • This reply was modified 6 years, 2 months ago by jordanhahn.
    Plugin Author macbookandrew

    (@macbookandrew)

    I’ve run across that issue before but I can’t recall for sure how I fixed it. I may have needed to enable monetization for the channel.

    Does the tooltip next to that checkbox give you any more info? It’s something on YouTube’s end though.

    When you figure it out, please let me know and I’ll update the plugin installation instructions for others’ reference.

    Thanks

    Thread Starter jordanhahn

    (@jordanhahn)

    The tooltip refrences another page without much further information. I’ll play around with the monetization options and see if that helps. I’ll let you know what I find.

    Thread Starter jordanhahn

    (@jordanhahn)

    Alright, after some research it looks like monetization must be enabled prior to allowing live embedding. Looks like I’ll need to get our viewership up first before being approved for monetization.

    Appreciate all the help today and for all the quick replies!

    Plugin Author macbookandrew

    (@macbookandrew)

    Thanks. I’ll add some notes to the readme for the plugin.

    Good luck!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No Live Video – YouTube Branded Account’ is closed to new replies.