GNU bug report logs -
#51674
29.0.50; [PATCH] Fix hang when displaying xwidget script dialog
Previous Next
Reported by: Po Lu <luangruo <at> yahoo.com>
Date: Mon, 8 Nov 2021 02:11:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Po Lu <luangruo <at> yahoo.com> writes:
> What I would do instead is to use `make-xwidget' to create an xwidget,
> and then to make it the display property of a piece of text, like one
> would an image spec.
Thanks; this works, sort of:
(progn
(require 'xwidget)
(setq widget (make-xwidget 'webkit
"Video"
700
500
nil
(current-buffer)
(xwidget-webkit-current-session)))
(insert
(propertize
"[video]"
'display (list 'xwidget :xwidget widget)))
(xwidget-put widget 'callback #'always))
And then
(xwidget-webkit-goto-uri widget "file:///tmp/vid.html")
will play the .mp4 video... but only on Macos. On this Debian laptop,
it just shows the controls, and doesn't play the mp4. Is this due to
platform specific limitations? (It won't play Youtube, either, with the
normal `xwidget-webkit-browse-url'.)
But on Macos there's a different twist: It doesn't heed the width/height
specs, and always maximises itself to fill the frame. Which seems like
a bug.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.