question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Embedding YouTube video.

See original GitHub issue

I have difficulties playing an embedded video, the error I get is An error occurred, please try again later.. This error is shown after clicking the “play” button on the video. One more thing is that the video background (the preview image) is completely black too.

Here’s the console log:

[28334:0903/093637:INFO:CONSOLE(0)] "XMLHttpRequest cannot load chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js. Cross origin requests are only supported for HTTP.", source: https://www.youtube.com/embed/undefined?html5=0 (0)
[28334:0903/093637:INFO:CONSOLE(0)] "XMLHttpRequest cannot load chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/cast_sender.js. Cross origin requests are only supported for HTTP.", source: https://www.youtube.com/embed/undefined?html5=0 (0)
[28334:0903/093637:INFO:CONSOLE(0)] "XMLHttpRequest cannot load chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js. Cross origin requests are only supported for HTTP.", source: https://www.youtube.com/embed/undefined?html5=0 (0)
[28334:0903/093637:INFO:CONSOLE(0)] "XMLHttpRequest cannot load chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js. Cross origin requests are only supported for HTTP.", source: https://www.youtube.com/embed/undefined?html5=0 (0)
[28334:0903/093637:INFO:CONSOLE(0)] "XMLHttpRequest cannot load chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js. Cross origin requests are only supported for HTTP.", source: https://www.youtube.com/embed/undefined?html5=0 (0)
[28334:0903/093637:INFO:CONSOLE(184)] "Uncaught ReferenceError: chrome is not defined", source: https://s.ytimg.com/yts/jsbin/www-embed-player-vflhH34Cp/www-embed-player.js (184)
[28334:0903/093637:INFO:CONSOLE(140)] "Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js'.", source: https://s.ytimg.com/yts/jsbin/www-embed-player-vflhH34Cp/www-embed-player.js (140)

What is this chrome-extension://.../cast_sender.js? Is it the root of the problem?

Related question on SO: http://stackoverflow.com/questions/25622310/node-webkit-and-youtube-chrome-is-not-defined.

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:31 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostoycommented, Aug 15, 2016

@adam-lynch The builtin ffmpeg only contains royalty free codecs. See http://docs.nwjs.io/en/latest/For Developers/Enable Proprietary Codecs/ for the list of supported codecs in builtin ffmpeg. We couldn’t ship ffmpeg with proprietary codecs due to legal issues. So you have to get ffmpeg libraries from community or build yourself if you are eligible to use them in your app.

0reactions
adam-lynchcommented, Sep 12, 2016

Forgot to say thanks @ghostoy 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Embed Youtube Videos: A Step-by-Step Guide
Go to the YouTube page, select a video, and click on the 'Share' option that is displayed below. Here you'll find the; 'Embed'...
Read more >
How to Embed a YouTube Video: A Quick Tutorial - wikiHow
1. Go to https://www.youtube.com on a computer. You'll need to be using YouTube on a computer to get the embed code for your...
Read more >
HTML YouTube Videos - W3Schools
Playing a YouTube Video in HTML · Upload the video to YouTube · Take a note of the video id · Define an...
Read more >
Embed YouTube Video || 100% Free, No Signup | Add Videos
In your browser, go to the YouTube video that you want to embed. · Under the video, click Share . · Click the...
Read more >
YouTube Embedded Players and Player Parameters
Follow the IFrame Player API instructions to insert a video player in your web page or application after the Player API's JavaScript code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found