From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Introducing emacs-webkit and more thoughts on Emacs rendering (was Rethinking the design of xwidgets) Date: Fri, 27 Nov 2020 22:22:07 +0100 Message-ID: References: <864kmzupp0.fsf@akirakyle.com> <86pn46awrr.fsf@akirakyle.com> <87y2ise7j5.fsf@gnus.org> <87lferb7co.fsf@gnus.org> <20201126082711.GA12134@tuxteam.de> <87im9s3pdh.fsf@logand.com> <83h7pao9hc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15617"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rms@gnu.org, tom@logand.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 27 22:23:06 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kilCq-0003vl-EY for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 22:23:04 +0100 Original-Received: from localhost ([::1]:42348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kilCp-0007PR-FB for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 16:23:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kilC1-0006hj-M4 for emacs-devel@gnu.org; Fri, 27 Nov 2020 16:22:13 -0500 Original-Received: from mail-oln040092073014.outbound.protection.outlook.com ([40.92.73.14]:27448 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kilBz-0003cp-Le; Fri, 27 Nov 2020 16:22:13 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K6iMKnde2rKrYq5+8EnV7S1BZSO5ulBnX01FpUycLd0sFeIx5Pg+9o3naVa/WLP3qU/2CTuYvSgfWk51SpLUIZ/yspVe6AUX7db6/m0kXABd46wx84tXQSu4hw2Fbktfjl96X3ONRqOKvFWFrm36pRLn0kAn5Rx2CfXQBo7k5MAGuZ6ssfQhGRv0TQ9mdvL3gQS5+PBikzOC8WKaPJJou5QfvqkOoYvFyPxpeL3ZUyU4z5qT8azb/cHQkddRw2sW3hRpHtJZHxu2oG8CeUVNfW/1yDdaDCLVB76ofYCzlZXhjBWPCYYmnxtpyp51oZAJMLf0BxnKhlg9BVYDABSlsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KYy/+hGAt6D0XhbOpnhLU1oRmHDNQgbFzEpMPJRCuns=; b=aq4eszYiTSLjwudy/sLssNhh2cFYe+6mi2TCYkcUnEO0L7gO6vWV1biiqSUgpqR+f0PeDmVUQIci2qyrUrpegpyhTuKXEw0GcqXjxW/b7SoETSGX5qIo3Pw3CUh/8wVVU6lwdwHmD/Y1ekXVKhJ9TRgH1uONArwwYePbTjjL4+GXsWzP3JpgCtgoDUgIDnV6QdWhVcSyE9w3R5NQf3nE7nVW0P+9WxJjgYX7w4cK9/v91l+N6ZhfRmbbCRm259eOqvS01MfgPHjlFoRIfi5qbihBCov4T3y5IkFqkvOSTGGrl7Zj28cTrTe02Iw0O51dognr1pOGFkS9hMeykSP97g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KYy/+hGAt6D0XhbOpnhLU1oRmHDNQgbFzEpMPJRCuns=; b=aKzbwWACfdKZuPnIhYukfvQ8S+e9Mul7PSH9nDtbJj1UauDSx4sVzBZEMFmJHp1t6Gg80tmTPcJWJVFSCzIq+xKfpktkPCfSt12mqieEZfZxKe1lPhkJ4P36f1xpFceljcwnXU/iWUCcT0C1BtLcVNTBPh56jAbfVniTNbDMoTimIEGCpqHNsjuZx3Nuuak392lrC82OjMxhuQRwjMMaMdEnnM/DM5Y9D51VlkMMQUWNfNScoDA8VM8/rlLRDwgtNsHgmelGkKIKBVwMcMIXSZa3UFTUoU28yofKwRBdz/9lfVEzo0xINs1T/NFjywRikJX7YYp2bLFTWemWqjbboQ== Original-Received: from HE1EUR04FT040.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::51) by HE1EUR04HT227.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::412) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23; Fri, 27 Nov 2020 21:22:08 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::4a) by HE1EUR04FT040.mail.protection.outlook.com (2a01:111:e400:7e0d::160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23 via Frontend Transport; Fri, 27 Nov 2020 21:22:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DF67F660AD238DBDD33DEB952133293E2FD26F8DC2B5996A2A6286089C012BD1; UpperCasedChecksum:6611185A8AE6D137C6EFAA76EE18150CF9235AE4C1648D2FE48D59A1C5F3BCE4; SizeAsReceived:8084; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3611.025; Fri, 27 Nov 2020 21:22:08 +0000 In-Reply-To: <83h7pao9hc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 27 Nov 2020 22:01:03 +0200") X-TMN: [Qtp/urfKepWED8uiBMvGHfY2xbffzzyA] X-ClientProxiedBy: AM5PR04CA0003.eurprd04.prod.outlook.com (2603:10a6:206:1::16) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <875z5q1on4.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM5PR04CA0003.eurprd04.prod.outlook.com (2603:10a6:206:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.22 via Frontend Transport; Fri, 27 Nov 2020 21:22:07 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: afdf2103-75d2-4948-a13c-08d8931a7eca X-MS-TrafficTypeDiagnostic: HE1EUR04HT227: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i7DvNzstHTSU2nSdYsCCCQ0jP45SorGjJhWsUktMaQ/gXBhcnLCHYRRV4Ozg21MPyyM6UsOAI8vFLD4JWGyAuWxUFGcEUnSKqoZ6SWvjwsjDiokD0wGlRiAMeeLVe8XHVZL3NH8nZp2DtZw88FnDaHHn8JU3OXUwgSvy7lv1Xt8aXPuuZUG0DuS6ektmlEUh5/ZduXOuq3E9TjDoE5ha6w== X-MS-Exchange-AntiSpam-MessageData: PACW+7mooaGL6U4usBVMq+ZQ9Za00PYYQ3mifLdpbT9Ya9yOh/ZLYUCD53xJcYhwF0+ef9/u4MWIxQJFBj4EzHnT0/R10xLbDFo2zuMp2QiXx4K4hly1zztDE/OcL6ig23C2vZYGCm51a1qw4oQH5w== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: afdf2103-75d2-4948-a13c-08d8931a7eca X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2020 21:22:08.2220 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT040.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT227 Received-SPF: pass client-ip=40.92.73.14; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259927 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Date: Fri, 27 Nov 2020 20:22:42 +0100 >> Cc: tom@logand.com, emacs-devel@gnu.org >> >> To my knowledge, mpv is probably the neetiest one to bring in media >> playing capabilities; it has lots of codecs, is written to be embedded, >> is free and would make Emacs be able to play music and video files >> without external players. Adding multimedia capabilities opens up for >> lots of flexibility and creativity; people can maybe do interesting >> stuff with it. I would certainly like Emacs to become a multimedia >> player, I play my music with Emacs already :-). >> >> If other people think it is too expensive in terms of implementation >> cost and what it offers, and if multimedia is not desirable in Emacs, I >> can have understanding with that. I might not agree, but my opinion is >> just one persons opinion, and I am not even an Emacs developer, so of >> course, you who make Emacs work probably know better and have precedence >> in what Emacs should do/have or not. It would be wrong to claim anything >> else :). > > Expensive or not, talking about mpv as providing video playing > facilities for Emacs is makes little sense as long as the issue of > embedding video in a window that shows an Emacs buffer is not > resolved. As the xwidgets experiment suggests, the problem to solve > here is not a trivial one. Indeed; I am aware of it, and I personally am not even sure it is possible with Emacs renderer as it is. If you read one of my first replay's to Lars, I pretty much hoped he understands Emacs better then I so he could do it, because I honestly, am not sure I can, I tried before and couldn't figure it out. :) I am playing with it, but I am not that knowledgable about internals. Playing video on Emacs frame is not that hard; it is just basic X11/GDI/whatever platform we are talking about. I can just attach opengl context and send OS window to mpv, with some thinkgering. But playing video in an image container, as images are put as faces on characters, is not something I currently know how and could be able to get going. > Until someone comes up with some clever > idea for how to do that, let alone submits patches for that, the issue > of which library to use is not really relevant to Emacs development. > > If someone wants a flexible way of playing video under Emacs control, > I think a more practically useful way at this time is to provide a > feature that runs VLC or a similar player program as an Emacs > subprocess, and controls that player via Emacs commands. That could > need extending the players themselves, if their command-line arguments > aren't flexible enough and there's no other API that Emacs could use. If you mean, just as external application in it's own frame, then Emms already does it (I think).