emacs-orgmode
[Top][All Lists]
Advanced

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

[SOLUTION] a temporary workaround solution using another language like "


From: Christopher M. Miles
Subject: [SOLUTION] a temporary workaround solution using another language like "python"
Date: Mon, 01 May 2023 21:08:49 +0800
User-agent: mu4e 1.10.3; emacs 30.0.50

I use another language "python" to replace "sh" to play video now. It successes.

Here is my example:

#+begin_src org
,* 《枕刀歌》
:PROPERTIES:
:DATE:     [2021-05-13 Thu 20:09]
:Douban:   https://movie.douban.com/subject/35350794/
:DIR:      枕刀歌
:EVAL:     src_python{import os; video_file = "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4"; 
os.system("mpv \"%s\" " %(video_file))} 
:END:

#+end_src

It's not as convenient as shell command directly but at least it works.
Seems the sh inline source block can't be used to play video using "mpv"
(I also tested other video player commands like "mplayer", "iina" etc).

So this python solution is a workaround.

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without 
misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

Attachment: signature.asc
Description: PGP signature


reply via email to

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