Page 1 of 2

Yandex video doesn't work

Posted: 2017-01-11, 12:33
by _yuyu_
PM 27.0.3. On https://yandex.ru/video/ only a black rectangle is shown instead of video frame. The same happens on clean profile and on PM 26.5. User Agent tweaking does not help. It works fine on FF however. Cannot figure it out :(

Re: Yandex video doesn't work

Posted: 2017-01-17, 03:53
by lyceus
Hello!

I had seen Yandex issues in the past. That depends if you use the Adobe Flash player (deprecated in Pale Moon) or the HTML5 video player (now the 1st option).

You may like to install some codec pack (like CCCP or K-Lite) for boost your codecs for see HTML5 video.

If you uninstall flash player yandex should show the HTML5 player.

Block script and Ad blocker add-ons also mess with the option of Yandex to serve Flash or HTML5. If you need to see Flash Video please update your flash player plug-in to the last version available.

Best regards,
Lyceus

Re: Yandex video doesn't work

Posted: 2017-01-17, 08:25
by New Tobin Paradigm
Since when is the Flash Player deprecated in Pale Moon?! It is deprecated in MOZILLA FIREFOX as a plugin and as a valid player on YOUTUBE but not in PALE MOON. Last I checked the Project was going to support NPAPI forever even if the plugins them selves get dropped by the developers of them. So what nonsense is this?!

May I remind you that Pale Moon is not Firefox and never will be again?

Re: Yandex video doesn't work

Posted: 2017-01-17, 10:16
by _yuyu_
lobocursor wrote:Hello!

I had seen Yandex issues in the past. That depends if you use the Adobe Flash player (deprecated in Pale Moon) or the HTML5 video player (now the 1st option).

You may like to install some codec pack (like CCCP or K-Lite) for boost your codecs for see HTML5 video.

If you uninstall flash player yandex should show the HTML5 player.

Block script and Ad blocker add-ons also mess with the option of Yandex to serve Flash or HTML5. If you need to see Flash Video please update your flash player plug-in to the last version available.

Best regards,
Lyceus
Flash is deactivated by default. I have the latest K-Lite Mega codec pack installed. As I specified, the problem persist on clean profile without any adblocking.

Re: Yandex video doesn't work

Posted: 2017-01-17, 16:36
by Fedor2
Yandex video can be played if you change useragent for Internet Explorer. The problem with yandex has been got from firefox 38, where it doesт't play as well. However it plays good in old opera presto.

Re: Yandex video doesn't work

Posted: 2017-01-18, 06:15
by lyceus
Matt A Tobin wrote:Since when is the Flash Player deprecated in Pale Moon?! It is deprecated in MOZILLA FIREFOX as a plugin and as a valid player on YOUTUBE but not in PALE MOON. Last I checked the Project was going to support NPAPI forever even if the plugins them selves get dropped by the developers of them. So what nonsense is this?!

May I remind you that Pale Moon is not Firefox and never will be again?
As I far I know when I said "deprecated" is about that Pale Moon uses HTML5 video first and not Flash as before. I talked of video as this topic say "Yandex video doesn't work".

Re: Yandex video doesn't work

Posted: 2017-01-27, 14:56
by JustOff
Fedor2 wrote:Yandex video can be played if you change useragent for Internet Explorer.
Could you please suggest the exact user agent string and corresponding domain(s) for overwrite? I can't get it work with any options ...

Re: Yandex video doesn't work

Posted: 2017-01-27, 20:16
by Fedor2
general.useragent.override.yandex.ru but yandex.ru change to yandex.ua if it determined you as from ua.
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3

This do the trick

Re: Yandex video doesn't work

Posted: 2017-01-27, 20:19
by JustOff
Fedor2 wrote:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3

This do the trick
For which domain?

Re: Yandex video doesn't work

Posted: 2017-01-27, 20:27
by Fedor2
Huh, so quick, i just have edited my previous answer.

Re: Yandex video doesn't work

Posted: 2017-01-27, 20:30
by JustOff
Ok, now I got it, thanks ... To be sure we have to set override for yandex.com, yandex.ru, yandex.ua and yandex.by. Such a madness ...

Re: Yandex video doesn't work

Posted: 2017-01-27, 20:45
by Fedor2
Oh yes!

But i know for certain this is something with scripting, that yandex changes for newer browser. You may check that IE10 or 11 does not work.

Re: Yandex video doesn't work

Posted: 2017-01-28, 08:29
by _yuyu_
Fedor2 wrote: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3
This do the trick
Yes, IE9 agent string solved the problem. Great.

Re: Yandex video doesn't work

Posted: 2017-01-28, 21:25
by _yuyu_
Yes. Setting UA string to IE9 forces Yandex video to work, but it stops Yandex maps and Yandex music. Now they complain about the "outdated browser". :D

Re: Yandex video doesn't work

Posted: 2017-01-30, 13:58
by Fedor2
IE9 is outdated too? No luck.

Here I see two ways of solving the problem.
1. Do some script fixing with greasmonkey.
2. Bring to the Pale moon js code from 45 firefox where yandex video plays fine out of the box. This also will fix many other sites.

Re: Yandex video doesn't work

Posted: 2017-01-30, 14:12
by JustOff
Fedor2 wrote:Here I see two ways of solving the problem.
1. Do some script fixing with greasmonkey.
2. Bring to the Pale moon js code from 45 firefox where yandex video plays fine out of the box. This also will fix many other sites.
3. Report about the bug (I think it's preferred).

Re: Yandex video doesn't work

Posted: 2017-01-30, 14:59
by Fedor2
But this is not a bug i'd say. Yandex have two scripting sets: one for older browsers like internet explorer 6-9 opera presto and such, and another for newer. Of course this is also a way out, which i did not propose, let yandex insert Pale moon into older browser list. This is good if Pale moon will stuck in firefox 38 js code.

Re: Yandex video doesn't work

Posted: 2017-01-30, 20:22
by Fedor2
I tried do scriptfixing with greasmonkey and for now its failing. Page and scripts are quite different, so i do change src attribute, but nothing happens, script stay the same. What i did wrong?

Details
I want change
<script src="//yastatic.net/video3/1.62.0-2bc8e8a34/pages-desktop/common/_common.ru.js"></script> to
<script src="//yastatic.net/video3/0xd677974/pages-desktop/common/_common.ru.js"></script>

Code: Select all

// ==UserScript==
// @name        yavideo fix
// @namespace   yavideo fix
// @include     https://yandex.ua/video/*
// @version     1
// @grant       none
// ==/UserScript==

document.getElementsByTagName("body")
[0].innerHTML=document.getElementsByTagName("body")
[0].innerHTML.replace('1.62.0-2bc8e8a34','0xd677974');

Re: Yandex video doesn't work

Posted: 2017-01-30, 21:13
by JustOff

Code: Select all

if (topic == 'http-on-modify-request' && subject instanceof Ci.nsIHttpChannel
		&& (subject.URI.host == "yandex.com" || subject.URI.host == "yandex.ru" || subject.URI.host == "yandex.ua")
		&& subject.URI.path.substring(0,7) == '/video/') {
	subject.setRequestHeader('User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3', false);
}
moon-yandex-video-1.0.1.xpi
(3.35 KiB) Downloaded 343 times
Quite dirty, but works 8-)

Re: Yandex video doesn't work

Posted: 2017-01-30, 21:49
by Fedor2
It works, thanks!