Closed asoksevil closed 9 years ago
Click to plugin still converts flash to html5 for me, but apparently the "open in quicktime"-option stopped working, I again set my browser to use the quicktime plugin in unsafe mode and I replaced the quicktime internet plugin with that one of 7.7.1. Are you guys having the same problem(s)? Solution?
I don´t have Flash installed but I can tell that it isn´t working as I don´t get the "normal HTML5 player" but YouTube´s default one. It isn´t working on Twitch either.
I recommend you check your clicktoplugin-settings, because I believe one of your settings not set correctly.
Will do but I am using Click To Flash not CTO so I am not sure if that implies anything.
El 02/10/2015, a las 11:40, swooshswoosh notifications@github.com escribió:
I recommend you check your clicktoplugin-settings, because I believe one of your settings not set correctly.
— Reply to this email directly or view it on GitHub.
Have you tried re-installing the plugin? Click2plugin is working fine for me on El Capitan (Safari 9)
The same problem here on Mavericks and Safari 9 with no flash installed (no way, you'll never force me to install flash). Youtube displays the HTML5 player since Safari 9 update and ClickToPlugin seems to not work at all anymore.
@bretello
I have tried with CTP and I think it´s a problem related to Safari 9.0 (9537.86.1.56.2) on Mavericks as El Cap/Yosemite users don't seem to experience it.
Is the only problem that YouTube serves HTML5 instead of Flash?
@hoyois
No, basically it doesn´t work at all as on Twitch and other pages it doesn´t replace the HTML5 player with CTF´s HTML5 one. I don´t have Flash installed so I can´t say.
Important to note though is that YouTube Center's trick to force flash fixes the issue. So now I have a combo, in YTC I set force flash "aggressive mode", and now CTP is able to take over the video.
I've just updated to Safari 9.0 (9537.86.1.56.2) on Mavericks 10.9.5
I can confirm that YouTube now plays in the YouTube HTML5 player. Other Flash is correctly blocked with the placeholder.
That´s weird @noahad because it doesn´t work for me.
Do you have Flash installed? Are you using Click to Flash 3.1.6? Any other extensions besides CTF?
I just redownloaded CTF and it still doesn´t display the old player on YouTube and no longer blocks it.
I have ClickToPlugin 3.1.6 (is that different from the version in this repo?) and have Flash installed.
Just to be clear, my preferred behavior with CTP is to play YouTube (and everything else) with Safari's generic HTML5 player, so I think there is a compatibility issue with YouTube in Safari 9.
@noahad
I don´t have Flash installed (which might be the main issue why CTF is not triggering anymore). I think CTF is a replacement for Flash and we should´t be forced to install it (like we did previously) in order to use it.
Just installed Flash to see if this would solve my issue but no, CTF won´t load up unfortunately.
Are there any errors (not warnings) in the console on YouTube's /watch pages?
@hoyois
This is what I got from the console when loading a random video:
09/10/15 10:35:46,600 com.apple.WebKit.WebContent[96587]: AVF error: Branch_QT0::pushBits, Context Creation Failed. 09/10/15 10:35:46,627 com.apple.WebKit.WebContent[96587]: HDDec_Thread_HWSliceDecoder_SampleID: CreateGPUInterface renderer 1040008 09/10/15 10:35:46,638 com.apple.WebKit.WebContent[96587]: ava error: InitDriver call failed, call DeleteDriver ...
I mean the web inspector console.
Got it.
No, no warnings, just errors.
Do you mean "no errors, just warnings"?
Yeah, sorry.
No errors, just warnings.
Now, I just tried it today and it is not showing up anything not even warnings.
Just to make sure that I am doping this right. I randomly choose a video from YouTube and then I head directly to the console window and look for either warnings or errors, right?
The only thing showing up are registers: cs:- start:- Object autoRedirect: false domain: null lang: null redirectURL: null Prototipo de Object defineGetter(propertyName, getterFunction) defineSetter(propertyName, setterFunction) lookupGetter(propertyName) lookupSetter(propertyName) constructor: function() hasOwnProperty(propertyName) isPrototypeOf(property) propertyIsEnumerable(propertyName) toLocaleString() toString() valueOf()
Does it change anything if you choose a Safari < 9 user agent?
Yes, that actually made it work.
My current user agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/537.86.1
I changed that to Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/7.1 Safari/537.86.1 (not sure if this is right as from Safari 9 onward it seems that you can't´change it back to Safari 6 or 7) and I got it working.
It is not showing the previous fullscreen control panel but the new one? (Yosemite perhaps?)
@asoksevil That's the new default video player, yes (Safari 9 or WebKit nightlies only).
On one of these YT video pages, with Safari 9 user agent, what's the output of the following command in the web console?
document.createElement("video").canPlayType
Try replacing the built-in YouTube.js with this:
https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTube-test.js
I got this output:
function canPlayType() { [native code] } = $1
and the new script doesn´t seem to work unfortunately.
What about the outputs of ytspf.enabled and ytplayer.config.min_version ?
For ytspf.enabled
false = $1
For ytplayer.config.min_version
"0.0.0" = $2
OK, these two are what I'd expect, but the canPlayType output is problematic. I updated https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTube-test.js, please try it again (restart Safari).
Just tried that again... no luck...
Is this the correct way to add Flask killers (just in case)
@hoyois please let me know if there´s anything else I can help you with.
The problem seems to be that the canPlayType method cannot be redefined, but I'm puzzled because it doesn't throw any errors. Let's try something more extreme: what's the output of the following two lines? (can be checked on any webpage whatsoever)
delete HTMLMediaElement.prototype.canPlayType HTMLMediaElement.prototype.canPlayType
delete HTMLMediaElement.prototype.canPlayType shows:
true = $1
HTMLMediaElement.prototype.canPlayType
undefined
I have checked again the console for other warnings/errors that might be useful... still, the only warning is the following:
Invalid CSS property declaration at: * www-player-new-vfl1mGUtZ.css:1:39252 which leads to
* overflow: visible;
(full text available here) http://pastebin.com/DynLQFgL
OK, try https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTube-test.js once more (restart Safari). Logically the output of document.createElement("video").canPlayType should now be undefined on YouTube's /watch pages.
Not sure why but it still shows as after inputting document.createElement("video").canPlayType
function canPlayType() { [native code] } = $1
Not sure why either... I assume HTMLMediaElement.prototype.canPlayType has the same output?
Yeah you are right:
function canPlayType() { [native code] } = $1
BTW, I have noticed CTP does indeed block Flash but it does not replace the player... I´ve been browsing some new websites and videos were being blocked.
I've added a couple of JS popups to YouTube-test.js. Please reload the killer and let me know what you see on a YouTube page.
BTW, I have noticed CTP does indeed block Flash but it does not replace the player... I´ve been browsing some new websites and videos were being blocked.
I assume the only thing that does not work compared to Safari 8 is the hack in YouTube.js. The rest of the extension seems to work exactly as before.
No, I can´t see anything different whatsoever... it looks exactly as it was before.
OK, what about now? You should see a "YouTube killer loaded" popup as soon as the remote killer is loaded.
Yes, I can see that:
YouTube killer loaded!
It shown up twice.
But you don't see any other popups when you visit https://www.youtube.com?
Yes, I do.
Somehow it just started popping up now.
function canPlayType() { [native code] }
undefined
undefined
undefined
And it does seem to be working now!
OK, I've removed the popups now, but it should still work.
This is weird.
I have done some testing and although it does work, it is certain conditions.
I can only get it to working if I reloaded youtube.com (by that I mean literally entering Youtube.com and not another /watch page or another video). If I am watching a video and I restart Safari, the CTF does not work until I go to youtube.com.
I am just thinking that I should downgrade back to Safari 7.1.7 as CTP didn´t have any problems and liked the player more...
It also "flickers" between the "you need to install Flash or this is not supported in your browser warning" (can´t really read it) and the HTML5 video preview.
That last part is normal, YouTube takes some nonzero amount of time to replace its HTML5 player with Flash.
I have a guess as to what's causing the problem on Mavericks: what does window.MediaSource say?
I don´t remember seeing that before upgrading to Safari 9... and if it did happen it was probably 0.1 0.5 seconds as it was barely noticeable.
undefined
OK, everything is clear now. I feel pretty dumb for not thinking about this earlier, but I didn't realize until now that Mavericks was an older version of OS X.
I don´t remember seeing that before upgrading to Safari 9...
Yes, but it's been like this since Safari 8 on Yosemite.
That´s great news! Anything that I should test or it should be fine from now on?
Considering that Safari 9 for Mavericks is just a plain "security upgrade" it should´t have change anything at all... I mean, I would prefer ir at least like when there´s an embedded video where it just flickers grey instead of the other text.
It's working just fine, but I find it odd that I had to dig for it and was only able to install it after I stumbled into it. It's bizarre that https://safari-extensions.apple.com/?q=ClickToFlash yields no results when searching.
— Ls
On Oct 12, 2015, at 12:13 AM, asoksevil notifications@github.com wrote:
That´s great news! Anything that I should test or it should be fine from now on?
Considering that Safari 9 for Mavericks is just a plain "security upgrade" it should´t have change anything at all... I mean, I would prefer ir at least like when there´s an embedded video where it just flickers grey instead of the other text.
— Reply to this email directly or view it on GitHub.
It seems that Apple´s latest update on Mavericks, Yosemite and El Capitan has break compatibility with Click To Flash/Plugin.