emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GStreamer xwidget


From: Lars Ingebrigtsen
Subject: Re: GStreamer xwidget
Date: Fri, 19 Nov 2021 07:19:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Po Lu <luangruo@yahoo.com> writes:

> Not on macOS, which is presumably where you tested the video playback,
> where a single xwidget can be displayed by only one Emacs window at a
> time.  On GNU systems, the offscreen rendering causes some video
> playback to consume large amounts of CPU (as it can't utilize hardware
> acceleration for video decoding).

Ah, I see.

> Try this:
>
>   (require 'xwidget)
>
>   (setq xw (make-xwidget 'media "foo" 100 100))
>   (insert (propertize "foo" 'display (list 'xwidget :xwidget xw)))
>   (xwidget-media-play xw)

Thanks.  But I get the following build error:

xwidget.c: In function 'Fdelete_xwidget_view':
xwidget.c:2303:34: error: 'struct xwidget_view' has no member named 
'internal_window'
 2303 |         Fremhash (make_fixnum (xv->internal_window), 
x_window_to_xwv_map);
      |                                  ^~
  make[1]: *** [Makefile:393: xwidget.o] Error  1


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]