From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Sexton Subject: Re: Audio/video file playback in org mode Date: Sat, 11 Jun 2011 04:53:22 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVGCZ-00020S-42 for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 00:53:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVGCX-0001SB-NI for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 00:53:39 -0400 Received: from lo.gmane.org ([80.91.229.12]:47338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVGCX-0001S7-DN for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 00:53:37 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QVGCU-00079v-0O for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 06:53:35 +0200 Received: from ip-118-90-119-64.xdsl.xnet.co.nz ([118.90.119.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2011 06:53:33 +0200 Received: from psexton by ip-118-90-119-64.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2011 06:53: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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thanks Michael, I'm glad you think it will be helpful. I have implemented something like what you have requested here. I have hived this code off into a separate file called org-player.el. You can get it at: http://bitbucket.org/eeeickythump/org-player/ I intend to add it to worg in the next little while. Links can now contain times to start playback, as follows: [[file:/path/to/song.mp3::2:43]] Starts playback at 2 min 43 sec. [[file:/path/to/song.mp3::1:10:45]] Starts playback at 1 hr 10 min 45 sec. [[file:/path/to/song.mp3::3m15s]] Starts playback at 3 min 15 sec. [[file:/path/to/song.mp3::49s]] Starts playback at 0 min 49 sec. [[file:/path/to/song.mp3::1h21m10s]] Starts playback at 1 hr 21 min 10 sec. As you see I have made XX:YY mean minutes and seconds, as it seems more logical to me for this particular purpose. If there is a compelling reason to interpret XX:YY as hours and minutes in these links then I am not totally opposed to changing it, but I think many people would find it confusing and counterintuitive. In all cases playback continues until the end of the file. I couldn't find a way to implement playback of 'snippets' with a specified start and end time, unfortunately. Cheers Paul