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
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
add a comment |
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
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
add a comment |
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
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
javascript
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
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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