Can't play video in Basilisk

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

maharadga

Can't play video in Basilisk

Unread post by maharadga » 2017-12-24, 14:01

Hello. I can't play video in pages like this: https://www.vesti.bg/sviat/blizak-iztok ... na-6077577
See grey rectangle only. :wtf:

Why? I search for answers, but can't find.
Probably is something simple, but I don't know what.

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1325
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: Can't play video in Basilisk

Unread post by Isengrim » 2017-12-24, 18:51

Do you have any content-blocking add-ons installed, e.g. Adblock Plus, uBlock, uMatrix, or NoScript? If so, try restarting with add-ons disabled and see if anything changes.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

Thehandyman1957

Re: Can't play video in Basilisk

Unread post by Thehandyman1957 » 2017-12-25, 00:14

Plays just fine for me. PM 27.6.2 with Ublock, Disconnect and ABL W7 64bit ;)

GMforker

Re: Can't play video in Basilisk

Unread post by GMforker » 2017-12-25, 07:06

Throws an error in Browser Console:

Code: Select all

TypeError: platform.name is null
jquery.vboxmediaplayer.v4.js:54:7
IMHO:
This server uses: https://github.com/bestiejs/platform.js
and it result: "platform.name = null", because Basilisk ("Basilisk") is not supported.

Also may be used (jquery.vboxmediaplayer.v4.js):

Code: Select all

var is_firefox = String(platform.name).toLowerCase().indexOf('firefox') > -1;
instead of:

Code: Select all

var is_firefox = platform.name.toString().toLowerCase().indexOf('firefox') > -1;
And for Basilisk - about:config (e.g.):

Code: Select all

general.useragent.override.vbox7.com = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.9) Gecko/20100101 Firefox/52.9

maharadga

Re: Can't play video in Basilisk

Unread post by maharadga » 2017-12-25, 08:04

Thanks for your attention, but I'm not a specialist and all this does not speak to me. If anyone can explain what to do to have a video, I would be very grateful. I use Basilisk because Firefox 57 don't support old extension.

User avatar
satrow
Forum staff
Forum staff
Posts: 1885
Joined: 2011-09-08, 11:27

Re: Can't play video in Basilisk

Unread post by satrow » 2017-12-25, 09:50

Start by supplying the basics so we can get a better idea of what we are dealing with: computer hardware specs, Operating System details, security software.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35635
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Can't play video in Basilisk

Unread post by Moonchild » 2017-12-25, 11:06

Apparently, vbox7.com (the video provider for that site) uses a media player that does very strict user-agent sniffing. If it's not a "pure" Firefox user agent presented to them, it falls back to what seems to be broken detection code.

Workaround:
  1. In the address bar, type about:config, and press enter
  2. Right-click anywhere in the list, and select New -> String
  3. For the preference name, enter

    Code: Select all

    general.useragent.override.vbox7.com
  4. For the value, enter

    Code: Select all

    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
  5. Reload the page.
This is a workaround only -- the site owners should be contacted to have their browser detection fixed.

(and so it begins again; the never-ending battle against user-agent sniffing with a new browser)
Last edited by Moonchild on 2017-12-27, 19:15, edited 1 time in total.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

maharadga

Re: Can't play video in Basilisk

Unread post by maharadga » 2017-12-28, 14:52

Thank you, Moonchild!
All that you says is right. I do it and everything is okay.
Thank you much!

Locked