all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: znavko@disroot.org
Cc: help-guix@gnu.org
Subject: Re: Watching HTML5 video on GNU Guix?
Date: Sat, 28 Dec 2019 16:51:06 +0000	[thread overview]
Message-ID: <d56e9dbba29f796e278a414f46e30323@disroot.org> (raw)
In-Reply-To: <0fadd2c687bded6677d4222e799527da@disroot.org>

Also I've installed qtwebgl maybe it is necessary too.

guix search webgl
name: qtwebglplugin
version: 5.12.6
outputs: out
systems: x86_64-linux i686-linux
dependencies: mesa@19.2.1 qtbase@5.12.6 qtdeclarative@5.12.6
+ qtwebsockets@5.12.6
location: gnu/packages/qt.scm:1040:2
homepage: https://www.qt.io/
license: LGPL 2.1, LGPL 3
synopsis: QPA plugin for running an application via a browser using streamed WebGL commands  
description: Qt back end that uses WebGL for rendering.  It allows Qt
+ applications (with some limitations) to run in a web browser that supports
+ WebGL.  WebGL is a JavaScript API for rendering 2D and 3D graphics within any
+ compatible web browser without the use of plug-ins.  The API is similar to
+ OpenGL ES 2.0 and can be used in HTML5 canvas elements
relevance: 13

hint: Run `guix search ... | less' to view all the results.

$ guix install qtwebglplugin
...


December 28, 2019 3:26 PM, znavko@disroot.org wrote:

> Yes, it works now! Thank you!
> I did this:
> 1) Icecat -> Preferences -> Privacy & Security tab -> Icecat-specific privacy settings -> checked
> option Enable WebGL
> 2) about:config -> search by 'whitelist' -> security.sandbox.content.read_path_whitelist -> added a
> value: /gnu/store/
> 3) after Icecat restart video works https://www.youtube.com/watch?v=9K26GI4C3uY
> 
> Thank you!
> 
> PS: Youtube gives much knowledge and information for me in convenient way. I want to share with
> others this way. And it's policies to get personal data, history and interest gives to it and to
> the authors way to gain much money. Sorry, while other free and secure projects just put on their
> shoes, youtube runs on the millions computers.
> 
> December 28, 2019 7:55 AM, "Julien Lepiller" <julien@lepiller.eu> wrote:
> 
>> 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=AOn4CLDPtI4k
>>> 5jl0Nq6M8f7wUF2sjlv6g”
>> 
>> 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.

  parent reply	other threads:[~2019-12-28 16:51 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
2019-12-28 15:26     ` znavko
2019-12-28 16:51     ` znavko [this message]
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

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

  git send-email \
    --in-reply-to=d56e9dbba29f796e278a414f46e30323@disroot.org \
    --to=znavko@disroot.org \
    --cc=help-guix@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.