From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Viewing animated gif as inline video Date: Sat, 13 Apr 2019 22:06:27 +0200 Message-ID: <84a7gtk6v0.fsf@gmail.com> References: <77DFD1D3-A687-4F2A-BF7F-E244CD7845C1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFOv7-0006JZ-Py for emacs-orgmode@gnu.org; Sat, 13 Apr 2019 16:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFOv7-0007Hg-2X for emacs-orgmode@gnu.org; Sat, 13 Apr 2019 16:06:37 -0400 Received: from [195.159.176.226] (port=45934 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFOv6-0007H5-QC for emacs-orgmode@gnu.org; Sat, 13 Apr 2019 16:06:37 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hFOv3-000iT2-6h for emacs-orgmode@gnu.org; Sat, 13 Apr 2019 22:06:33 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi Marvin, > Does anybody know how to view an animated gif as an inline video? I > can see the first frame as an inline image, but I am unable to view > the video. { M-x customize-variable RET org-file-apps RET } opens my customization of variable org-file-apps which has the entry: Hide Org File Apps: INS DEL Cons-cell: Choice: Value Menu Extension: \.gif\' Choice: Value Menu Function: (lambda (file link) (let ((my-image (create-image file)) (tmpbuf (get-buffer-create "*gif"))) (switch-to-buffer tmpbuf) (erase-buffer) (insert-image my-image) (image-animate my-image nil t))) AFAICS with this setting a press of RET on a gif with animation in an Org file opens an extra buffer that shows the animation. HTH