From mboxrd@z Thu Jan 1 00:00:00 1970 From: Memnon Anon Subject: Re: Audio/video file playback in org mode Date: Sat, 11 Jun 2011 14:00:04 +0000 (UTC) Message-ID: <87oc24mqrd.fsf@mean.albasani.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVOjk-00026S-Gn for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 10:00:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVOjj-0004rP-9S for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 10:00:28 -0400 Received: from lo.gmane.org ([80.91.229.12]:59960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVOjj-0004rH-1G for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 10:00:27 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QVOjY-0003wS-2g for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 16:00:16 +0200 Received: from e178231058.adsl.alicedsl.de ([85.178.231.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2011 16:00:16 +0200 Received: from gegendosenfleisch by e178231058.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2011 16:00:16 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Paul Sexton writes: > brian powell gmail.com> writes: > > >> * Something like this; respectively!?:  >> >> [[shell:mplayer -ss 00:03:21 -endpos 00:06:54 ~/some_podcast.mp3 &]] >> [[shell:mplayer -ss 00:03:21 ~/some_podcast.mp3 &]] >> [[shell:mplayer ~/some_podcast.mp3 &]] > > The troubles with using shell commands in hyperlinks: > 1. Only works in the operating system and directory structure where > you were when you wrote the link; > 2. No ability to stop playback, pause, etc, unless you run the > program as a GUI, which means (horror!) doing something outside > Emacs. If you are using different setups on different operating systems, 1) should probably be solved in some general fashion, like setting some vars to important locations depending on environmentearly in your .emacs. 2.) [[elisp:(emms-play-file "~/tmp/video/magit.flv")]] or [[elisp:(emms-play-file (concat MYSCREENCASTSDIR "magit.flv"))]] or [[elisp:(emms-play-file (concat MYSCREENCASTSDIR "magit.flv"))][View magit demo]] Of course, there is no problem with setting up org to treat file links to mediafiles special. But given the power of org hyperlinks, I think using "elisp:" solves your 1.) and 2.) sufficiently. Memnon