From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: Watching HTML5 video on GNU Guix? Date: Sat, 28 Dec 2019 16:51:06 +0000 Message-ID: References: <0fadd2c687bded6677d4222e799527da@disroot.org> <14AAB6FF-971F-4C8A-BBD6-42F9CC68B475@lepiller.eu> <84E737B2-1A3C-4B57-AE28-FC7E2778E8B8@lepiller.eu> <18fa1d089f5c68232631042a9f50debc@disroot.org> <87imm1dqo9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39783) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilFJ9-00027x-1I for help-guix@gnu.org; Sat, 28 Dec 2019 11:51:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilFJ1-0008Tg-CL for help-guix@gnu.org; Sat, 28 Dec 2019 11:51:15 -0500 Received: from knopi.disroot.org ([178.21.23.139]:39784) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilFJ0-0008KV-Ol for help-guix@gnu.org; Sat, 28 Dec 2019 11:51:11 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CBF582E70B for ; Sat, 28 Dec 2019 17:51:08 +0100 (CET) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jr2loyd94nHY for ; Sat, 28 Dec 2019 17:51:07 +0100 (CET) In-Reply-To: <0fadd2c687bded6677d4222e799527da@disroot.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" Cc: help-guix@gnu.org Also I've installed qtwebgl maybe it is necessary too.=0A=0Aguix search w= ebgl=0Aname: qtwebglplugin=0Aversion: 5.12.6=0Aoutputs: out=0Asystems: x8= 6_64-linux i686-linux=0Adependencies: mesa@19.2.1 qtbase@5.12.6 qtdeclara= tive@5.12.6=0A+ qtwebsockets@5.12.6=0Alocation: gnu/packages/qt.scm:1040:= 2=0Ahomepage: https://www.qt.io/=0Alicense: LGPL 2.1, LGPL 3=0Asynopsis: = QPA plugin for running an application via a browser using streamed WebGL = commands =0Adescription: Qt back end that uses WebGL for rendering. It = allows Qt=0A+ applications (with some limitations) to run in a web browse= r that supports=0A+ WebGL. WebGL is a JavaScript API for rendering 2D an= d 3D graphics within any=0A+ compatible web browser without the use of pl= ug-ins. The API is similar to=0A+ OpenGL ES 2.0 and can be used in HTML5= canvas elements=0Arelevance: 13=0A=0Ahint: Run `guix search ... | less' = to view all the results.=0A=0A$ guix install qtwebglplugin=0A...=0A=0A=0A= December 28, 2019 3:26 PM, znavko@disroot.org wrote:=0A=0A> Yes, it works= now! Thank you!=0A> I did this:=0A> 1) Icecat -> Preferences -> Privacy = & Security tab -> Icecat-specific privacy settings -> checked=0A> option = Enable WebGL=0A> 2) about:config -> search by 'whitelist' -> security.san= dbox.content.read_path_whitelist -> added a=0A> value: /gnu/store/=0A> 3)= after Icecat restart video works https://www.youtube.com/watch?v=3D9K26G= I4C3uY=0A> =0A> Thank you!=0A> =0A> PS: Youtube gives much knowledge and = information for me in convenient way. I want to share with=0A> others thi= s way. And it's policies to get personal data, history and interest gives= to it and to=0A> the authors way to gain much money. Sorry, while other = free and secure projects just put on their=0A> shoes, youtube runs on the= millions computers.=0A> =0A> December 28, 2019 7:55 AM, "Julien Lepiller= " wrote:=0A> =0A>> Le 28 d=C3=A9cembre 2019 05:23:18= GMT+01:00, Maxim Cournoyer a =C3=A9crit :=0A= >> =0A>>> Hello Znavko,=0A>>> =0A>>> znavko@disroot.org writes:=0A>> =0A>= > ffmpeg was installed:=0A>>> [...]=0A>> =0A>> Those two video are workin= g (cause youtube had converted them, I=0A>>> think).=0A>> =0A>> On the ot= her videos that are not displaying and often this is live=0A>>> streams (= I think, youtube did not converted them to acceptable format)=0A>> =0A>> = these Javascript warnings with WebGL errors appear in terminal:=0A>> =0A>= > https://www.youtube.com/watch?v=3D9K26GI4C3uY=0A>> =0A>> $ icecat=0A>> = JavaScript error: resource:///modules/sessionstore/SessionStore.jsm,=0A>>= > line 1325: uncaught exception: 2147746065=0A>> =0A>> JavaScript warning= :=0A>>> https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.= min.js,=0A>>> line 0: Successfully compiled asm.js code (total compilatio= n time 94ms)=0A>> =0A>> JavaScript warning:=0A>>> https://mail.disroot.or= g/rainloop/v/1.12.1/static/js/min/openpgp.min.js,=0A>>> line 0: Successfu= lly compiled asm.js code (total compilation time 7ms)=0A>> =0A>> JavaScri= pt warning:=0A>>> https://mail.disroot.org/rainloop/v/1.12.1/static/js/mi= n/openpgp.min.js,=0A>>> line 0: Successfully compiled asm.js code (total = compilation time 2ms)=0A>> =0A>> console.warn: LoginRecipes: "getRecipes:= falling back to a=0A>>> synchronous message for:" "https://www.youtube.c= om"=0A>> =0A>> JavaScript warning:=0A>>> https://www.youtube.com/yts/jsbi= n/player_ias-vfl22ubNH/ru_RU/base.js,=0A>>> line 5359: Error: WebGL warni= ng: getContext: Disallowing antialiased=0A>>> backbuffers due to blacklis= ting.=0A>> =0A>> JavaScript warning:=0A>>> https://www.youtube.com/yts/js= bin/player_ias-vfl22ubNH/ru_RU/base.js,=0A>>> line 5359: Error: WebGL war= ning: : Failed to create=0A>>> WebGL context: WebGL is cur= rently disabled.=0A>> =0A>> JavaScript warning:=0A>>> https://www.youtube= .com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,=0A>>> line 5359: Error= : WebGL warning: getContext: Disallowing antialiased=0A>>> backbuffers du= e to blacklisting.=0A>> =0A>> JavaScript warning:=0A>>> https://www.youtu= be.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,=0A>>> line 5359: Err= or: WebGL warning: : Failed to create=0A>>> WebGL context:= WebGL is currently disabled.=0A>> =0A>> JavaScript warning:=0A>>> https:= //www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,=0A>>> lin= e 5359: Error: WebGL warning: getContext: Disallowing antialiased=0A>>> b= ackbuffers due to blacklisting.=0A>> =0A>> JavaScript warning:=0A>>> http= s://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js,=0A>>> l= ine 5359: Error: WebGL warning: : Failed to create=0A>>> W= ebGL context: WebGL is currently disabled.=0A>> =0A>> Icecat console disp= lays:=0A>> Error: WebGL warning: getContext: Disallowing antialiased back= buffers=0A>>> due to blacklisting. base.js:5359:276=0A>> =0A>> Error: Web= GL warning: : Failed to create WebGL=0A>>> context: WebGL = is currently disabled. base.js:5359:276=0A>> =0A>> Blocked https://www.yo= utube.com/watch?v=3D9K26GI4C3uY from extracting=0A>>> canvas data because= no user input was detected. base.js:2900:157=0A>> =0A>> and many ties th= is:=0A>> Request to access cookie or storage on=0A>>> =E2=80=9Chttps://i.= ytimg.com/vi/sfw1IB58HYA/hqdefault.jpg?sqp=3D-oaymwE=E2=80=A6qpAwsIARUAAI= hCGAFwAQ=3D=3D&rs=3DAOn4CLDPtI4k=0A>>> 5jl0Nq6M8f7wUF2sjlv6g=E2=80=9D=0A>= > =0A>> was blocked because we are blocking all third-party storage acces= s=0A>> requests and content blocking is enabled.=0A>>> I can reproduce th= e problem; it seems that WebGL is now a required by=0A>>> youtube when us= ing Icecat 68? That's strange because the same video=0A>>> plays fine in = an older version of Icecat (but I have to reload the page=0A>>> to get it= playing).=0A>>> =0A>>> Anyway, the problem seems to have more to do with= Youtube than HTML5=0A>>> playback in Icecat. A random HTML5 video playba= ck test site [0] may=0A>>> help to convince you of such :-)=0A>>> =0A>>> = You could try enabling WebGL in your Icecat (disabled by default) by=0A>>= > visiting the "IceCat-specific privacy settings" of the Settings page=0A= >>> and=0A>>> checking "Enable WebGL". That didn't work for me, as my dri= ver seems=0A>>> blacklisted by Mozilla. I tried force enabling it with su= ggestions=0A>>> from=0A>>> this page [1] but your link would still wouldn= 't be happy with my WebGL=0A>>> support.=0A>>> =0A>>> HTH,=0A>>> =0A>>> M= axim=0A>>> =0A>>> [0] https://tekeye.uk/html/html5-video-test-page=0A>>> = [1]=0A>>> https://developer.mozilla.org/en-US/docs/Mozilla/QA/Graphics_Bl= ocklisting=0A>> =0A>> It's not blacklisted, it's blocked by mozilla's san= dbox pplicy. In about:config you can change an=0A>> option named sandbox.= readpath.whitelist or similar. Set it to /gnu/store/ (with a trailing / w= hich=0A>> means recursively) to allow access to the store, where icecat c= an find its webgl libraries. Then=0A>> restart the browser.=0A>> =0A>> We= should add that by default (or something more restrictive) but I don't k= now how.