unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>, znavko@disroot.org
Cc: help-guix@gnu.org
Subject: Re: Watching HTML5 video on GNU Guix?
Date: Sat, 28 Dec 2019 08:54:51 +0100	[thread overview]
Message-ID: <14AAB6FF-971F-4C8A-BBD6-42F9CC68B475@lepiller.eu> (raw)
In-Reply-To: <87imm1dqo9.fsf@gmail.com>

Le 28 décembre 2019 05:23:18 GMT+01:00, Maxim Cournoyer <maxim.cournoyer@gmail.com> a écrit :
>Hello Znavko,
>
>znavko@disroot.org writes:
>
>> ffmpeg was installed:
>>
>
>[...]
>
>> Those two video are working (cause youtube had converted them, I
>think).
>>
>> On the other videos that are not displaying and often this is live
>streams (I think, youtube did not converted them to acceptable format)
>> these Javascript warnings with WebGL errors appear in terminal:
>>
>> https://www.youtube.com/watch?v=9K26GI4C3uY
>>
>> $ icecat
>> JavaScript error: resource:///modules/sessionstore/SessionStore.jsm,
>line 1325: uncaught exception: 2147746065
>> JavaScript warning:
>https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.min.js,
>line 0: Successfully compiled asm.js code (total compilation time 94ms)
>> JavaScript warning:
>https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.min.js,
>line 0: Successfully compiled asm.js code (total compilation time 7ms)
>> JavaScript warning:
>https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.min.js,
>line 0: Successfully compiled asm.js code (total compilation time 2ms)
>> console.warn: LoginRecipes: "getRecipes: falling back to a
>synchronous message for:" "https://www.youtube.com"
>> JavaScript warning:
>https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,
>line 5359: Error: WebGL warning: getContext: Disallowing antialiased
>backbuffers due to blacklisting.
>> JavaScript warning:
>https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,
>line 5359: Error: WebGL warning: <SetDimensions>: Failed to create
>WebGL context: WebGL is currently disabled.
>> JavaScript warning:
>https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,
>line 5359: Error: WebGL warning: getContext: Disallowing antialiased
>backbuffers due to blacklisting.
>> JavaScript warning:
>https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,
>line 5359: Error: WebGL warning: <SetDimensions>: Failed to create
>WebGL context: WebGL is currently disabled.
>> JavaScript warning:
>https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,
>line 5359: Error: WebGL warning: getContext: Disallowing antialiased
>backbuffers due to blacklisting.
>> JavaScript warning:
>https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,
>line 5359: Error: WebGL warning: <SetDimensions>: Failed to create
>WebGL context: WebGL is currently disabled.
>>
>>
>> Icecat console displays:
>> Error: WebGL warning: getContext: Disallowing antialiased backbuffers
>due to blacklisting. base.js:5359:276
>> Error: WebGL warning: <SetDimensions>: Failed to create WebGL
>context: WebGL is currently disabled. base.js:5359:276
>> Blocked https://www.youtube.com/watch?v=9K26GI4C3uY from extracting
>canvas data because no user input was detected. base.js:2900:157
>>
>> and many ties this:
>> Request to access cookie or storage on
>>
>“https://i.ytimg.com/vi/sfw1IB58HYA/hqdefault.jpg?sqp=-oaymwE…qpAwsIARUAAIhCGAFwAQ==&rs=AOn4CLDPtI4kQ5jl0Nq6M8f7wUF2sjlv6g”
>> was blocked because we are blocking all third-party storage access
>> requests and content blocking is enabled.
>
>I can reproduce the problem; it seems that WebGL is now a required by
>youtube when using Icecat 68? That's strange because the same video
>plays fine in an older version of Icecat (but I have to reload the page
>to get it playing).
>
>Anyway, the problem seems to have more to do with Youtube than HTML5
>playback in Icecat.  A random HTML5 video playback test site [0] may
>help to convince you of such :-)
>
>You could try enabling WebGL in your Icecat (disabled by default) by
>visiting the "IceCat-specific privacy settings" of the Settings page
>and
>checking "Enable WebGL".  That didn't work for me, as my driver seems
>blacklisted by Mozilla.  I tried force enabling it with suggestions
>from
>this page [1] but your link would still wouldn't be happy with my WebGL
>support.
>
>HTH,
>
>Maxim
>
>[0]  https://tekeye.uk/html/html5-video-test-page
>[1] 
>https://developer.mozilla.org/en-US/docs/Mozilla/QA/Graphics_Blocklisting

It's not blacklisted, it's blocked by mozilla's sandbox pplicy. In about:config you can change an option named sandbox.readpath.whitelist or similar. Set it to /gnu/store/ (with a trailing / which means recursively) to allow access to the store, where icecat can find its webgl libraries. Then restart the browser.

We should add that by default (or something more restrictive) but I don't know how.

  reply	other threads:[~2019-12-28  7:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-26 18:00 Watching HTML5 video on GNU Guix? znavko
2019-12-26 18:04 ` Julien Lepiller
2019-12-26 18:24 ` Tobias Geerinckx-Rice
2019-12-27  5:16 ` znavko
2019-12-28  4:23   ` Maxim Cournoyer
2019-12-28  7:54     ` Julien Lepiller [this message]
2019-12-28 15:26     ` znavko
2019-12-28 16:51     ` znavko
2019-12-30  2:31       ` Maxim Cournoyer
2019-12-27  9:14 ` Alexei Drozdov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14AAB6FF-971F-4C8A-BBD6-42F9CC68B475@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=help-guix@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=znavko@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).