Summary: | [GStreamer] Won't play media and video in GtkOffscreenWindow | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Po Lu <luangruo> | ||||||
Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | NEW --- | ||||||||
Severity: | Normal | CC: | bugs-noreply, calvaris, luangruo, mcatanzaro, philn, s930054123yaoyao | ||||||
Priority: | P2 | ||||||||
Version: | Other | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
Attachments: |
|
Description
Po Lu
2021-11-08 17:00:02 PST
There should be a gst.log file in your home if you applied those env vars. (In reply to Xabier RodrÃguez Calvar from comment #1) > There should be a gst.log file in your home if you applied those env vars. There was no such log. But running `GST_DEBUG=5 gst-launch-1.0 fakesrc ! fakesink' with those environment variables set did produce a large log, so the environment variables are correct. Is there any update on this bug? If this can be fixed, then we can have Emacs playing videos with webkit, which is a feature wished by the community for many years. Well, we still need gst logs... Created attachment 467047 [details]
GST log
Comment on attachment 467047 [details] GST log Hi Po Lu and the Webkit developers, TL;DR, I tried to reproduce the issue and the attachment is my gst.log. Environment: Debian 10, webkit-2.38.4, Emacs 30.0.50 Steps to reproduce: (Since I know nothing about webkit and Emacs internal, bear with me that I might be too verbose here) For the webkit part, this is how I compiled the library: 1. wget https://webkitgtk.org/releases/webkitgtk-2.38.4.tar.xz 2. tar -xvf webkitgtk-2.38.4.tar.xz && cd webkitgtk-2.38.4 3. cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_JOURNALD_LOG=ON -GNinja 4. ninja && sudo ninja install For the Emacs part: 1. Compile Emacs with xwidget support (e.g. ./configure --with-xwidget) 2. Start Emacs with GST log (e.g. GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1 WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 emacs) 3. M-x xwidget-webkit-browse-url, and visit https://yotube.com 4. Click some videos and the video playback is shown. But no video is played. Thanks. Are you really playing anything? The log has no mediaplayer logs... Please try something simpler, like any basic static html5 video, no YT. Created attachment 467049 [details]
GST log (gnu.org)
How about this one? I'm visiting gnu.org which I believe their website should be really simple. BTW, what should the mediaplayer log looks like?
Did you ... hit the play button? Yes, I did. For both the youtube and gnu cases, when I hit the play button, the video started loading and stuck there infinitely. I'm sure I'm not the only person encounter this. For example, on reddit (https://www.reddit.com/r/emacs/comments/wm7hz8/videos_on_webkit_stuck_in_infinite_load/), there are users reporting same problems. Po Lu is it possible to reproduce this problem with a simpler demo program without involving Emacs? We need your help to add more information about how Emacs utilize these libraries. Thanks. Try disconnecting emacs's decide-policy callback webkit_decide_policy_cb(). Does that make any difference? |