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 520 forks source link

Playback error with latest version of Aurora #913

Open deusexcalamus opened 10 years ago

deusexcalamus commented 10 years ago

Player does not load when using flash/forced flash w/ the latest version of Aurora and the latest dev. version of the addon, HTML5 seems to work, however. youtube

YePpHa commented 10 years ago

Might be an issue with the flash integration in Aurora. Also which version of YouTube Center are you using?

deusexcalamus commented 10 years ago

dev version 385

deusexcalamus commented 10 years ago

Would also like to note that it works in Chrome, probably because of how Chrome does Flash.

deusexcalamus commented 10 years ago

Still experiencing the same issue with 386.

deusexcalamus commented 10 years ago

Output from FF's browser console:

"Domain registered www.youtube.com." YouTubeCenter.js:24685
"[PageReadinessListener] At event => headerInitialized" "watch" watch:1822
"Language set to en-US because it could not be auto-detected yet" watch:1822
"[PageReadinessListener] At event => bodyInitialized" "watch" watch:1822
"Adding player shortcuts to document" watch:1822
TypeError: yt.player.Application.create is not a function watch:236
"[Player Config Global] A new player configuration change request!" Object { sts: 16309, attrs: Object, min_version: "8.0.0", url_v9as2: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", args: Object, params: Object, url_v8: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", assets: Object, html5: false, url: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/watch_as3.swf" } watch:1822
"[Player modifyConfig] => watch" watch:1822
"[Player:setPlayerType] Requesting player type change to flash" watch:1822
"[Player:setPlayerType] Setting player type from null to flash" watch:1822
"[Player Type] Flash" watch:1822
"[Player:getQuality] Most preferred available quality: hd720" watch:1822
"[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822
"Chaning csi_page_type from watch,watch7ad_html5 to watch, watch7" watch:1822
"Keeping the aspect" watch:1822
"[Playlist] Disabled" watch:1822
"[SPF] ready" Array [ spfready ] watch:1822
"[PageReadinessListener] At event => bodyInteractive" "watch" watch:1822
"[Thumbnail] Setup has begun..." watch:1822
"[Storage] Saving Settings" watch:1822
"[ActionPanel] Loading..." watch:1822
"[Player modifyConfig] => watch" watch:1822
"[Player:setPlayerType] Requesting player type change to flash" watch:1822
"[Player:setPlayerType] Setting player type from null to flash" watch:1822
"[Player Type] Flash" watch:1822
"[Player:getQuality] Most preferred available quality: hd720" watch:1822
"[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822
"Chaning csi_page_type from watch, watch7 to watch, watch7" watch:1822
"Keeping the aspect" watch:1822
"[Playlist] Disabled" watch:1822
"[Player Update] Checking if player exist!" watch:1822
"Checking for updates in -0.039549444444444436 hours..." watch:1822
"Checking for updates now..." watch:1822
"[Update] This is a dev build." watch:1822
"Checking for updates..." watch:1822
"[Title Listener] "" => "World of Tanks - Why You Heff To Be Mad 7"" watch:1822
"[Tab Events] Sending new settings to other open tabs." watch:1822
"performEvent: language-refresh" Array [  ] Arguments { 0: "language-refresh", 3 more… } watch:1822
"[PageReadinessListener] At event => bodyComplete" "watch" watch:1822
"[Guide] Configurating the state updater!" watch:1822
"[PageReadinessListener] Stopping interval" watch:1822
"[Player Config Global] A new player configuration change request!" Object { url: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/watch_as3.swf", urlV8: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", urlV9As2: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", args: Object, assets: Object, attrs: Object, params: Object, minVersion: "8.0.0", fallback: null, fallbackMessage: null, 3 more… } watch:1822
"[Player modifyConfig] => watch" watch:1822
"[Player:setPlayerType] Requesting player type change to flash" watch:1822
"[Player:setPlayerType] Setting player type from null to flash" watch:1822
"[Player Type] Flash" watch:1822
"[Player:getQuality] Most preferred available quality: hd720" watch:1822
"[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822
"Chaning csi_page_type from watch, watch7 to watch, watch7" watch:1822
"Keeping the aspect" watch:1822
"[Playlist] Disabled" watch:1822
"Got Update Response" watch:1822
"[Update] Current dev build #386. Your build number #386" watch:1822
"No new updates available" watch:1822
"[SPF] jsbeforeunload" Array [ spfjsbeforeunload ] watch:1822
"[Title Listener] "World of Tanks - Why You Heff To Be Mad 7" => "▶ World of Tanks - Why You Heff To Be Mad 7"" watch:1822
"[Title Listener] "▶ World of Tanks - Why You Heff To Be Mad 7" => "World of Tanks - Why You Heff To Be Mad 7"" watch:1822
"[SPF] jsunload" Array [ spfjsunload ] watch:1822
"Domain registered www.youtube.com." YouTubeCenter.js:24685
"[PageReadinessListener] At event => headerInitialized" "watch" watch:1822
"Language set to en-US because it could not be auto-detected yet" watch:1822
"[ActionPanel] Loading..." watch:1822
"[ActionPanel] Setup has begun!" watch:1822
"[ActionPanel] Adding/Removing listeners" watch:1822
"[Storage] Saving Settings" watch:1822
"[Tab Events] Sending new settings to other open tabs." watch:1822
"[Tab Events] Received updated settings from another tab." watch:1822
"Language set to en-US because it could not be auto-detected yet" watch:1822
(intermediate value).parentNode is null tabbrowser.xml:430
deusexcalamus commented 10 years ago

When I use HTML5 playback, audio works, but video doesn't.

YePpHa commented 10 years ago

I'm not able to see any errors, but I recommend you to try turning off SPF as it's know to cause a few issues.

deusexcalamus commented 10 years ago

It's off, and been off. Still doesn't work. This is the output of Firefox's browser console with player type set to default in YTC's settings; it chooses to play with HTML5. "Domain registered www.youtube.com." YouTubeCenter.js:24685 "[PageReadinessListener] At event => headerInitialized" "watch" watch:1822 "Language set to en-US because it could not be auto-detected yet" watch:1822 "[PageReadinessListener] At event => bodyInitialized" "watch" watch:1822 "Adding player shortcuts to document" watch:1822 "[Player Config Global] A new player configuration change request!" Object { attrs: Object, min_version: "8.0.0", args: Object, url_v8: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", html5: true, url: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/watch_as3.swf", sts: 16309, url_v9as2: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", assets: Object, params: Object, 1 more… } watch:1822 "[Player modifyConfig] => watch" watch:1822 "[Player Type] HTML5" watch:1822 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822 "Chaning csi_page_type from watch,watch7ad_html5 to watch, watch7" watch:1822 "Keeping the aspect" watch:1822 "[Playlist] Disabled" watch:1822 "[HTML5 Player] Setting player theme to dark" watch:1822 "[HTML5 Player] Setting player progress color to red" watch:1822 "[SPF] ready" Array [ spfready ] watch:1822 "[PageReadinessListener] At event => bodyInteractive" "watch" watch:1822 "[Thumbnail] Setup has begun..." watch:1822 "[Storage] Saving Settings" watch:1822 "[ActionPanel] Loading..." watch:1822 "[Player modifyConfig] => watch" watch:1822 "[Player Type] HTML5" watch:1822 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822 "Chaning csi_page_type from watch, watch7_html5 to watch, watch7" watch:1822 "Keeping the aspect" watch:1822 "[Playlist] Disabled" watch:1822 "[HTML5 Player] Setting player theme to dark" watch:1822 "[HTML5 Player] Setting player progress color to red" watch:1822 "Checking for updates in -0.006567777777777777 hours..." watch:1822 "Checking for updates now..." watch:1822 "[Update] This is a dev build." watch:1822 "Checking for updates..." watch:1822 "[Title Listener] "" => "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Tab Events] Sending new settings to other open tabs." watch:1822 "performEvent: language-refresh" Array [ ] Arguments { 0: "language-refresh", 3 more… } watch:1822 "Got Update Response" watch:1822 "[Update] Current dev build #386. Your build number #386" watch:1822 "No new updates available" watch:1822 "[PageReadinessListener] At event => bodyComplete" "watch" watch:1822 "[Guide] Configurating the state updater!" watch:1822 "[PageReadinessListener] Stopping interval" watch:1822 "[Player Listener] Has begun the setup..." watch:1822 "[Player modifyConfig] => watch" watch:1822 "[Player Type] HTML5" watch:1822 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822 "Chaning csi_page_type from watch, watch7_html5 to watch, watch7" watch:1822 "Keeping the aspect" watch:1822 "[Playlist] Disabled" watch:1822 "[HTML5 Player] Setting player theme to dark" watch:1822 "[HTML5 Player] Setting player progress color to red" watch:1822 "[Config Update] Updating as page https://www.youtube.com/watch?v=zQsDRxdrwo8" watch:1822 "[onYouTubePlayerReady] => updateConfig" watch:1822 "[Config Update] Updating as page watch" watch:1822 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player:SetQuality] Setting quality to hd720" watch:1822 "[Player Listener] Event onPlaybackQualityChange was called with" Array [ "hd720", false ] watch:1822 "[Player:setPlaybackState] State is changed to 0" watch:1822 "[Player:setPlaybackState] Preferred state: 0, current state: 3" watch:1822 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player:SetQuality] Setting quality to hd720" watch:1822 "[Player Listener] Event onPlaybackQualityChange was called with" Array [ "hd720", false ] watch:1822 "[Player Config Global] A new player configuration change request!" Object { url: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/watch_as3.swf", urlV8: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", urlV9As2: "https://s.ytimg.com/yts/swfbin/player-vfl0kmBEW/cps.swf", args: Object, assets: Object, attrs: Object, params: Object, minVersion: "8.0.0", fallback: null, fallbackMessage: null, 3 more… } watch:1822 "[Player modifyConfig] => watch" watch:1822 "[Player Type] HTML5" watch:1822 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player Ratio] Player ratio set to 1.7777777777777777" watch:1822 "Chaning csi_page_type from watch, watch7_html5 to watch, watch7" watch:1822 "Keeping the aspect" watch:1822 "[Playlist] Disabled" watch:1822 "[HTML5 Player] Setting player theme to dark" watch:1822 "[HTML5 Player] Setting player progress color to red" watch:1822 Use of getAttributeNode() is deprecated. Use getAttribute() instead. html5player.js:36 "[Player:getQuality] Most preferred available quality: hd720" watch:1822 "[Player:SetQuality] Setting quality to hd720" watch:1822 "[Player Listener] Event onPlaybackQualityChange was called with" Array [ "hd720", false ] watch:1822 "[Player:setPlaybackState] Preferred state: 0, current state: 3" watch:1822 "[Player Listener] Event onPlaybackQualityChange was called with" Array [ "hd720", false ] watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 1, 1 ] watch:1822 "[Player:setPlaybackState] Preferred state: 0, current state: 1" watch:1822 "[Player Listener] Event onVolumeChange was called with" Array [ Object ] watch:1822 "[Player Listener] Event onStateChange was called with" Array [ -1, 1 ] watch:1822 "[Player Listener] Event onVolumeChange was called with" Array [ Object ] watch:1822 "[SPF] jsbeforeunload" Array [ spfjsbeforeunload ] watch:1822 "[SPF] jsbeforeunload" Array [ spfjsbeforeunload ] watch:1822 "[ActionPanel] Loading..." watch:1822 "[Title Listener] "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Title Listener] "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[SPF] jsunload" Array [ spfjsunload ] watch:1822 "[SPF] jsunload" Array [ spfjsunload ] watch:1822 "Domain registered www.youtube.com." YouTubeCenter.js:24685 "[PageReadinessListener] At event => headerInitialized" "watch" watch:1822 "Language set to en-US because it could not be auto-detected yet" watch:1822 "[Storage] Saving Settings" watch:1822 "[ActionPanel] Loading..." watch:1822 "[ActionPanel] Setup has begun!" watch:1822 "[ActionPanel] Adding/Removing listeners" watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 3, 1 ] watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 1, 1 ] watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 3, 1 ] watch:1822 "[Tab Event] Calling player.pauseVideo();" watch:1822 "[Title Listener] "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Title Listener] "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 1, 1 ] watch:1822 "[Tab Event] Calling player.pauseVideo();" watch:1822 "[Title Listener] "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Title Listener] "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 3, 1 ] watch:1822 "[Tab Events] Sending new settings to other open tabs." watch:1822 "[Tab Events] Received updated settings from another tab." watch:1822 "Language set to en-US because it could not be auto-detected yet" watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 1, 1 ] watch:1822 "[Tab Event] Calling player.pauseVideo();" watch:1822 "[Title Listener] "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Title Listener] "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 3, 1 ] watch:1822 "[Player Listener] Event onStateChange was called with" Array [ 1, 1 ] watch:1822 "[Tab Event] Calling player.pauseVideo();" watch:1822 "[Title Listener] "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 "[Title Listener] "▶ World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes" => "World of Tanks - Patch 9.3 - HD Tanks and Murovanka Map Changes"" watch:1822 : html5player.js:108 Would also like to mention that both flash and HTML5 work in Chrome. It's just in Firefox that they don't work.

deusexcalamus commented 10 years ago

Ok, done some screwing around, it seems to be flashblock that's causing it. Will go harass them. :)