emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Audio/video file playback in org mode


From: Memnon Anon
Subject: Re: [O] Audio/video file playback in org mode
Date: Sat, 11 Jun 2011 14:00:04 +0000 (UTC)

Paul Sexton <address@hidden> writes:

> brian powell <briangpowellms <at> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]