Mediasource and webgl broken on webkit2gtk
Webkit2gtk supports mse (media source extesions) and webgl if enabled:
https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html\#WebKitSettings—enable-mediasource
https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html\#WebKitSettings—enable-webgl
To test you need a browser that allow passing options directly to webkit like luakit or vimb. Webkit crashes when mediasource or webgl are enabled, on fedora both options are ok.
Sites used for testing:
https://www.youtube.com/html5 and a 1080p youtube video for
mediasource
https://get.webgl.org/ for webgl
Same issue happen with webkit2gtk unstable 2.21.91 (built locally).
This was tested on alpine edge but 3.8.0 is also affected probably.
Perhaps it is due to the reduced stacksize of musl?
(from redmine: issue id 9262, created on 2018-08-17, closed on 2019-05-04)
- Changesets:
- Revision 27422f5c by Alex Raschi on 2018-10-15T09:04:11Z:
community/gst-plugins-bad: enable opus support
* fixes #9262
The issue was not webkit2gtk itself but rather gst-plugins-bad which was
built without opus support, youtube uses this codec for 1080p videos.
To test run luakit with enable_mediasource = true and try to watch a
1080p video on youtube.
- Revision c0a445fc by Alex Raschi on 2018-10-15T09:11:03Z:
community/gst-plugins-bad: enable opus support
* fixes #9262
The issue was not webkit2gtk itself but rather gst-plugins-bad which was
built without opus support, youtube uses this codec for 1080p videos.
To test run luakit with enable_mediasource = true and try to watch a
1080p video on youtube.