YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 519 forks source link

Embedded videos are blank #879

Open 9KenM opened 10 years ago

9KenM commented 10 years ago

After installing version 2.1.5, youtube videos embedded in other non-youtube sites are now showing up as black squares.

Eisys commented 10 years ago

Go to External Player option and enable Embeds! That fixes it for me!

9KenM commented 10 years ago

I just double checked to make sure enable embeds was checked. Embeds are still blank.

n0000b commented 10 years ago

@9KenM

I had the same problem. I fixed it by going to chrome://settings/content and unchecking Block third-party cookies and site data.


ycembed


This was the error I was getting in the console,

ycerror

YePpHa commented 10 years ago

@n0000b that's actually quite interesting that YouTube Center isn't able to load its settings. I will try to look into a way to make YouTube Center compatible with that Chrome option.

n0000b commented 10 years ago

@YePpHa I forgot to mention that I was using a Chromium Dev build version 39. I'm not sure if this happens in a stable build of Chrome.

YePpHa commented 10 years ago

It could also be a bug in the Chromium build, but I should probably try to do some research into that option.

raszpl commented 10 years ago

I am getting a ton of blank black embedded clips, but Im on Opera 12.xx about 3/4 of embeds work ok, but some just remain blank, I need to click in lower right corner to open YT directly to play them.

How do I check whats causing this in Opera 12.xx?

YePpHa commented 10 years ago

Hmm. You could try to open the developer console in Opera (CTRL + SHIFT + I). You could then check for any errors when the black embedded video appears. Though I'm not sure if Opera actually logs the console when you don't have it open (It's some time since I last tested YouTube Center on that version of Opera).

raszpl commented 10 years ago

example:

http://twojepc.pl/news31627/ASUS-oglasza-premiere-VivoTab-8-z-procesorem-Bay-Trail-i-Windows-81-Wideo.html

clicking play produces black box with spinning circle, opening inspect element/Errors I see:

Uncaught exception: ReferenceError: Security error: attempted to read protected variable
 Error thrown at line 11762, column 12 in (obj, callback) in http://www.youtube.com/embed/Xaa9-FrgvCE:
 if (callback(key, obj[key]) === true)
 called from line 20525, column 8 in getNewestPlayerId() in http://www.youtube.com/embed/Xaa9-FrgvCE:
 ytcenter.utils.each(uw, function(key, value){
 called from line 20652, column 8 in setup() in http://www.youtube.com/embed/Xaa9-FrgvCE:
 playerId = getNewestPlayerId();
 called from line 23906, column 10 in () in http://www.youtube.com/embed/Xaa9-FrgvCE:
 ytcenter.player.listeners.setup();
 called from line 4371, column 14 in update() in http://www.youtube.com/embed/Xaa9-FrgvCE:
 events[i].callbacksj; Event thread: DOMContentLoaded Xaa9-FrgvCE:11762

I refreshed, pressed play and this time it worked. inspect element/Errors had new error tho:

Uncaught exception: ReferenceError: Security error: attempted to read protected variable
 Error thrown at line 12233, column 5 in (obj, callback) in http://www.youtube.com/embed/Xaa9-FrgvCE:
 if (callback(key, obj[key]) === true)
 called from line 45697, column 3 in getNewestPlayerId() in http://www.youtube.com/embed/Xaa9-FrgvCE:
 ytcenter.utils.each(uw, function(key, value) {
 called from line 45817, column 3 in setup() in http://www.youtube.com/embed/Xaa9-FrgvCE:
 playerId = getNewestPlayerId();
 called from line 49603, column 4 in () in http://www.youtube.com/embed/Xaa9-FrgvCE:
 ytcenter.player.listeners.setup();
 called from line 4512, column 6 in update() in http://www.youtube.com/embed/Xaa9-FrgvCE:
 events[i].callbacksj; Event thread: DOMContentLoaded Xaa9-FrgvCE:12233

then I open page again in new tab, and it doesnt work again producing first error, I reload, ... and it works producing same first error (line 11762)

YePpHa commented 10 years ago

Seems like that the browser somehow prevented YouTube from accessing a specific variable. I will try to look into this.

raszpl commented 10 years ago

hmm, in not sure its YTcenter fault any more I get error no matter if embedded video works or not

maybe its just some content server not responding, and when I reload YT load balancer gives me another server that works havent had a broken video in a week