Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8113031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:41:46+00:00 2026-06-06T02:41:46+00:00

I am attempt to understand the logic behind whatever trips the ‘blocking’ mechanism for

  • 0

I am attempt to understand the logic behind whatever trips the ‘blocking’ mechanism for YouTube’s video playback.

Here I am attempt to play back a song which is blocked from embedded playback inside of a JS Fiddle. Observe that it works:

http://jsfiddle.net/E7B9C/17/

enter image description here

Now, I use the exact same code inside of my Google Chrome extension:

http://www.meomixes.com/ if you’d like to click to download extension.

http://www.meomixes.com/Test.crx for direct link to extension.

Observe that I cannot playback the same youtube video:

enter image description here

I was wondering what my debugging options were for this scenario. Does anyone have any ideas on what I should explore? I’ve tried requesting the following permissions in my manifest, but it did not have any effect:

"permissions": [
"http://*.youtube.com",
"https://*.youtube.com",
"http://*.google.com",
"https://*.google.com"
]

I’ve placed the full source of Test.crx here: http://www.meomixes.com/Test.zip
To load:

  • Unzip
  • Go to Google Chrome’s extension page and enable ‘Developer Mode’
  • Click ‘Load Unpacked Extension’ and point to the unzipped directory.
  • Observe that the video does not play back.

Last of note: The song plays happily in a Facebook post.

EDIT: I found this: http://gdata.youtube.com/feeds/api/videos/UfESt2KdOdc?v=2&prettyprint=true for the video in question. It pairs with: http://apiblog.youtube.com/2011/12/understanding-playback-restrictions.html.

Just building on the first response. Basically, there is a setting called ‘syndication’ which prevents from playing on ‘external devices’ such as TVs and Google Chrome Extensions.

Looking at ways to bypass this issue now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:41:48+00:00Added an answer on June 6, 2026 at 2:41 am

    The Youtube iframe implementation seems to block certain referring urls from displaying licensed content.

    The Problem

    These referring schemas didn’t seem to work with the particular video you’re testing with.

     chrome-extension://
     file://
    

    It seems like content licenser, UMG, opted to prevent any plays from extensions or local files. An alternative is to avoid using videos that contain licensed content, but that’s boring.

    It’s inconvenient but there is a workaround that will allow you to implement the iframe player into the extension. All Youtube cares about is that the the player is embedded on a page somewhere on the internet.

    Proxy Page

    Try replacing the iframe src in popup.htm with the jsfiddle result frame from your example and reload your plugin.

     <iframe width="200" height="200" src="http://fiddle.jshell.net/E7B9C/17/show/"></iframe>
    

    You should see the previously “unavailable” video playing now. Your extension now references a page you control on jshell.net. All Youtube knows is that you’re calling their player from jshell.net.

    Controls

    Now that we have a player, you may notice that you don’t have any of the Youtube controls available to you since you’re now referencing your own iframe that’s referencing the Youtube iframe and it’s API. As if it weren’t fun enough already, you now get to make your own iframe API to communicate from the chrome-extension to your iframe to Youtube’s iframe!

    Under normal circumstances a parent can set the child frame’s window.location.hash and that frame watches and parses any changes that come through. The child then calls some callback in the parent directly with some new information.

    Edit: Instead of using window.location.hash, you could use HTML5’s window.postMessage() instead and avoid having to deal with checking and parsing the hash continuously.

    That should get you up and running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, here is the bit I do not understand. If you attempt to retrieve
In an attempt to understand if W3C validation can assist better DOM rendering or
in an attempt to see and hopefully understand actionscript's garbage collector, i've set up
In an attempt to understand what occurs underneath I am making small C programs
Here's my simple first attempt at a python extension using boost. Can someone help
Can someone describe the use of annotation processing ? My last attempt to understand
In my continuing attempt to understand how pseudo-terminals work, I have written a small
Ok here is my question. I understand the process of the OAuth protocol, however
In my attempt to understand reference assemblies and how the CLR is handling these,
This is an attempt to better understand how reference count works in Python. Let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.