From: Lars Ingebrigtsen <larsi@gnus.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 51674@debbugs.gnu.org
Subject: bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog
Date: Mon, 08 Nov 2021 07:25:43 +0100 [thread overview]
Message-ID: <87ilx39na0.fsf@gnus.org> (raw)
In-Reply-To: <87a6ifqjz3.fsf@yahoo.com> (Po Lu's message of "Mon, 08 Nov 2021 13:45:04 +0800")
Po Lu <luangruo@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
next prev parent reply other threads:[~2021-11-08 6:25 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87fss7s8gr.fsf.ref@yahoo.com>
2021-11-08 2:10 ` bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 5:24 ` Lars Ingebrigtsen
2021-11-08 5:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 5:40 ` Lars Ingebrigtsen
2021-11-08 5:45 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 6:25 ` Lars Ingebrigtsen [this message]
2021-11-08 6:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 6:50 ` Lars Ingebrigtsen
2021-11-08 6:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 7:01 ` Lars Ingebrigtsen
2021-11-09 4:31 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 4:45 ` Lars Ingebrigtsen
2021-11-09 4:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 5:30 ` Lars Ingebrigtsen
2021-11-09 5:34 ` Lars Ingebrigtsen
2021-11-09 5:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 6:10 ` Lars Ingebrigtsen
2021-11-09 4:45 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilx39na0.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=51674@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.