emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul Sexton <psexton@xnet.co.nz>
To: emacs-orgmode@gnu.org
Subject: Re: Audio/video file playback in org mode
Date: Sat, 11 Jun 2011 04:53:22 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110611T065104-978@post.gmane.org> (raw)
In-Reply-To: BANLkTikSJQAYxQfSsQeRvb3QXADWerQVaA@mail.gmail.com

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

  parent reply	other threads:[~2011-06-11  4:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 21:55 Audio/video file playback in org mode Paul Sexton
2011-06-09 22:22 ` Eric Schulte
2011-06-10  8:28 ` Michael Brand
2011-06-10 16:10   ` brian powell
2011-06-11  4:57     ` Paul Sexton
2011-06-11 14:00       ` Memnon Anon
2011-06-11 23:55         ` Alan E. Davis
2011-06-12  8:23           ` Christian Moe
2011-06-12  9:34             ` Michael Brand
2011-06-11  4:53   ` Paul Sexton [this message]
     [not found]   ` <4DF2F3B6.2030400@xnet.co.nz>
2011-06-11  6:23     ` Michael Brand

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110611T065104-978@post.gmane.org \
    --to=psexton@xnet.co.nz \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).