chrome extension youtube api player - repost
$5-30 USD
Paid on delivery
Hi,
I have an Google Chrome extension. I need someone to resolve a problem related to Inline JavaScript restrictions.
I have an chrome extension which uses YouTube Player API to control videos and playlists (pause,play,forward,rewind).
Extension is done. Developer needs to resolve a problem related to Inline JavaScript restrictions on chrome extension.
Specifically, this:
Refused to load the script '[url removed, login to view]'; because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource
In my chrome extension I use the following function, in order to activate the controls (play,pause,forward,rewind):
function setupPlayer()
{
var tag = [url removed, login to view]('script');
[url removed, login to view] = "[url removed, login to view]";
var firstScriptTag = [url removed, login to view]('script')[0];
[url removed, login to view](tag, firstScriptTag);
}
PS: aforementioned function is implemented on popup.js.
The idea then, is to move this iframe "[url removed, login to view] = "[url removed, login to view]"; into a background page, and
then build an interface on [url removed, login to view] to interact with the background page.
Please consider this opportunity.
thank you.
Project ID: #4691959