Yandex video doesn't work Topic is solved

Users and developers helping users with technical Pale Moon issues (Windows and other non-Linux O.S.). Please direct questions about the Linux version to the appropriate Linux board.

Moderators: Indalecio, satrow

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions for Linux, Android and Mac to the dedicated boards.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!
_yuyu_
Moonbather
Moonbather
Posts: 66
Joined: Mon Mar 02, 2015 2:18 pm
Location: Moscow

Yandex video doesn't work

Postby _yuyu_ » Wed Jan 11, 2017 12:33 pm

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 :(

User avatar
lyceus
Forum staff
Forum staff
Posts: 2069
Joined: Tue Sep 13, 2011 11:08 pm

Re: Yandex video doesn't work

Postby lyceus » Tue Jan 17, 2017 3:53 am

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

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 3792
Joined: Tue Oct 09, 2012 7:37 pm

Re: Yandex video doesn't work

Postby New Tobin Paradigm » Tue Jan 17, 2017 8:25 am

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?
[ T O B I N W A V E ]

_yuyu_
Moonbather
Moonbather
Posts: 66
Joined: Mon Mar 02, 2015 2:18 pm
Location: Moscow

Re: Yandex video doesn't work

Postby _yuyu_ » Tue Jan 17, 2017 10:16 am

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.

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Tue Jan 17, 2017 4:36 pm

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.

User avatar
lyceus
Forum staff
Forum staff
Posts: 2069
Joined: Tue Sep 13, 2011 11:08 pm

Re: Yandex video doesn't work

Postby lyceus » Wed Jan 18, 2017 6:15 am

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".

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 766
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Fri Jan 27, 2017 2:56 pm

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 ...

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Fri Jan 27, 2017 8:16 pm

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
Last edited by Fedor2 on Fri Jan 27, 2017 8:26 pm, edited 1 time in total.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 766
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Fri Jan 27, 2017 8:19 pm

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?

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Fri Jan 27, 2017 8:27 pm

Huh, so quick, i just have edited my previous answer.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 766
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Fri Jan 27, 2017 8:30 pm

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 ...

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Fri Jan 27, 2017 8:45 pm

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.

_yuyu_
Moonbather
Moonbather
Posts: 66
Joined: Mon Mar 02, 2015 2:18 pm
Location: Moscow

Re: Yandex video doesn't work

Postby _yuyu_ » Sat Jan 28, 2017 8:29 am

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.

_yuyu_
Moonbather
Moonbather
Posts: 66
Joined: Mon Mar 02, 2015 2:18 pm
Location: Moscow

Re: Yandex video doesn't work

Postby _yuyu_ » Sat Jan 28, 2017 9:25 pm

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

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Mon Jan 30, 2017 1:58 pm

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.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 766
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Mon Jan 30, 2017 2:12 pm

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).

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Mon Jan 30, 2017 2:59 pm

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.

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Mon Jan 30, 2017 8:22 pm

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');

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 766
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Yandex video doesn't work  Topic is solved

Postby JustOff » Mon Jan 30, 2017 9:13 pm

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 167 times

Quite dirty, but works 8-)

User avatar
Fedor2
Lunatic
Lunatic
Posts: 277
Joined: Mon Apr 11, 2016 1:26 am

Re: Yandex video doesn't work

Postby Fedor2 » Mon Jan 30, 2017 9:49 pm

It works, thanks!


Return to “General support”

Who is online

Users browsing this forum: No registered users and 11 guests