Chrome Seems to Break Youtube Embed API?Youtube API not ready sometimesShort circuit Array.forEach like calling breakDisable same origin policy in ChromeHow to remove border (outline) around text/input boxes? (Chrome)Disabling Chrome cache for website developmentHow do I get ASP.NET Web API to return JSON instead of XML using Chrome?google chrome doesn't work with asp.net pages that use youtube apihaving trouble with youtube player apiLoading YouTube API in jQueryYoutube Iframe api, check when the user has moved the video?Youtube Flash API (AS3) not working in Firefox but in Chrome

Should I tell management that I intend to leave due to bad software development practices?

Blending or harmonizing

Are British MPs missing the point, with these 'Indicative Votes'?

In the UK, is it possible to get a referendum by a court decision?

What is the opposite of "eschatology"?

Does marriage to a non-Numenorean disqualify a candidate for the crown of Gondor?

how do we prove that a sum of two periods is still a period?

Can compressed videos be decoded back to their uncompresed original format?

Did 'Cinema Songs' exist during Hiranyakshipu's time?

How to coordinate airplane tickets?

What is required to make GPS signals available indoors?

Do Iron Man suits sport waste management systems?

Does the Idaho Potato Commission associate potato skins with healthy eating?

Implication of namely

How could indestructible materials be used in power generation?

How to travel to Japan while expressing milk?

Convert seconds to minutes

How can I prove that a state of equilibrium is unstable?

Why do I get negative height?

What are the G forces leaving Earth orbit?

Why is the sentence "Das ist eine Nase" correct?

How to prevent "they're falling in love" trope

Why are UK visa biometrics appointments suspended at USCIS Application Support Centers?

Placement of More Information/Help Icon button for Radio Buttons



Chrome Seems to Break Youtube Embed API?


Youtube API not ready sometimesShort circuit Array.forEach like calling breakDisable same origin policy in ChromeHow to remove border (outline) around text/input boxes? (Chrome)Disabling Chrome cache for website developmentHow do I get ASP.NET Web API to return JSON instead of XML using Chrome?google chrome doesn't work with asp.net pages that use youtube apihaving trouble with youtube player apiLoading YouTube API in jQueryYoutube Iframe api, check when the user has moved the video?Youtube Flash API (AS3) not working in Firefox but in Chrome













0















I'm building a site that uses javascript to add timestamp abilities to embedded youtube videos. The script works on every browser except for Google Chrome. I've included a code snippet below for reference.



PXX.media = new YT.Player('pxx-youtube-player', 
events:
onReady: PXX.doYoutubeSkip

);


Once the JS is loaded, I can type PXX.media.playVideo() in the console in Firefox (as referenced in https://developers.google.com/youtube/iframe_api_reference) and the video does start to play. It works in Internet Explorer and Safari as well.



Chrome however returns




Uncaught TypeError: Cannot read property 'playVideo' of undefined at
:1:11"




I'm really not sure what is causing the same code that works everywhere else to come back undefined on Chrome? Anyone know what I'm missing? I've been trying to find the solution for a few hours no with no luck.



Thanks for any help.










share|improve this question
























  • sound like the issue at this thread

    – Guy Yogev
    Mar 8 at 22:28











  • The error message says PXX.media is undefined, which means your code didn't run or it ran in the wrong execution context. Without MCVE can't help further. Use Chrome's devtools to debug the code.

    – wOxxOm
    Mar 9 at 5:27















0















I'm building a site that uses javascript to add timestamp abilities to embedded youtube videos. The script works on every browser except for Google Chrome. I've included a code snippet below for reference.



PXX.media = new YT.Player('pxx-youtube-player', 
events:
onReady: PXX.doYoutubeSkip

);


Once the JS is loaded, I can type PXX.media.playVideo() in the console in Firefox (as referenced in https://developers.google.com/youtube/iframe_api_reference) and the video does start to play. It works in Internet Explorer and Safari as well.



Chrome however returns




Uncaught TypeError: Cannot read property 'playVideo' of undefined at
:1:11"




I'm really not sure what is causing the same code that works everywhere else to come back undefined on Chrome? Anyone know what I'm missing? I've been trying to find the solution for a few hours no with no luck.



Thanks for any help.










share|improve this question
























  • sound like the issue at this thread

    – Guy Yogev
    Mar 8 at 22:28











  • The error message says PXX.media is undefined, which means your code didn't run or it ran in the wrong execution context. Without MCVE can't help further. Use Chrome's devtools to debug the code.

    – wOxxOm
    Mar 9 at 5:27













0












0








0








I'm building a site that uses javascript to add timestamp abilities to embedded youtube videos. The script works on every browser except for Google Chrome. I've included a code snippet below for reference.



PXX.media = new YT.Player('pxx-youtube-player', 
events:
onReady: PXX.doYoutubeSkip

);


Once the JS is loaded, I can type PXX.media.playVideo() in the console in Firefox (as referenced in https://developers.google.com/youtube/iframe_api_reference) and the video does start to play. It works in Internet Explorer and Safari as well.



Chrome however returns




Uncaught TypeError: Cannot read property 'playVideo' of undefined at
:1:11"




I'm really not sure what is causing the same code that works everywhere else to come back undefined on Chrome? Anyone know what I'm missing? I've been trying to find the solution for a few hours no with no luck.



Thanks for any help.










share|improve this question
















I'm building a site that uses javascript to add timestamp abilities to embedded youtube videos. The script works on every browser except for Google Chrome. I've included a code snippet below for reference.



PXX.media = new YT.Player('pxx-youtube-player', 
events:
onReady: PXX.doYoutubeSkip

);


Once the JS is loaded, I can type PXX.media.playVideo() in the console in Firefox (as referenced in https://developers.google.com/youtube/iframe_api_reference) and the video does start to play. It works in Internet Explorer and Safari as well.



Chrome however returns




Uncaught TypeError: Cannot read property 'playVideo' of undefined at
:1:11"




I'm really not sure what is causing the same code that works everywhere else to come back undefined on Chrome? Anyone know what I'm missing? I've been trying to find the solution for a few hours no with no luck.



Thanks for any help.







javascript google-chrome google-chrome-extension






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 1:45









Guy Yogev

670313




670313










asked Mar 8 at 20:39









Bill BarfootBill Barfoot

1




1












  • sound like the issue at this thread

    – Guy Yogev
    Mar 8 at 22:28











  • The error message says PXX.media is undefined, which means your code didn't run or it ran in the wrong execution context. Without MCVE can't help further. Use Chrome's devtools to debug the code.

    – wOxxOm
    Mar 9 at 5:27

















  • sound like the issue at this thread

    – Guy Yogev
    Mar 8 at 22:28











  • The error message says PXX.media is undefined, which means your code didn't run or it ran in the wrong execution context. Without MCVE can't help further. Use Chrome's devtools to debug the code.

    – wOxxOm
    Mar 9 at 5:27
















sound like the issue at this thread

– Guy Yogev
Mar 8 at 22:28





sound like the issue at this thread

– Guy Yogev
Mar 8 at 22:28













The error message says PXX.media is undefined, which means your code didn't run or it ran in the wrong execution context. Without MCVE can't help further. Use Chrome's devtools to debug the code.

– wOxxOm
Mar 9 at 5:27





The error message says PXX.media is undefined, which means your code didn't run or it ran in the wrong execution context. Without MCVE can't help further. Use Chrome's devtools to debug the code.

– wOxxOm
Mar 9 at 5:27












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070678%2fchrome-seems-to-break-youtube-embed-api%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070678%2fchrome-seems-to-break-youtube-embed-api%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229