[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 6164f88 380/389: Keep track of video being played
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 6164f88 380/389: Keep track of video being played |
Date: |
Fri, 3 Dec 2021 11:01:02 -0500 (EST) |
branch: elpa/subed
commit 6164f888777a94adec148c7c06437c319102e199
Author: Sacha Chua <sacha@sachachua.com>
Commit: Random User <rndusr@posteo.de>
Keep track of video being played
This makes it easier for other code to get the currently-playing file.
* subed/subed-mpv.el (subed-mpv-video-file): New variable.
(subed-mpv-find-video): Keep track of file.
(subed-mpv-play-video-from-url): Keep track of URL.
---
subed/subed-mpv.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index 3fb8ef9..ad31a41 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -47,6 +47,8 @@
subed-mpv-jump-to-current-subtitle)
"Functions to call when mpv has loaded a file and starts playing.")
+(defvar-local subed-mpv-video-file nil "Current file or URL.")
+
(defvar-local subed-mpv--server-proc nil
"Running mpv process.")
@@ -374,6 +376,7 @@ See the mpv manual for a list of supported URL types. If
you
have youtube-dl installed, mpv can open videos from a variety of
hosting providers."
(interactive "MURL: ")
+ (setq subed-mpv-video-file url)
(subed-mpv--play url))
(defun subed-mpv-find-video (file)
@@ -382,6 +385,7 @@ hosting providers."
Video files are expected to have any of the extensions listed in
`subed-video-extensions'."
(interactive (list (read-file-name "Find video: " nil nil t nil
#'subed-mpv--is-video-file-p)))
+ (setq subed-mpv-video-file (expand-file-name file))
(subed-mpv--play (expand-file-name file)))
(defun subed-mpv--add-subtitle-after-first-save ()
- [nongnu] elpa/subed 828764f 375/389: Change keybindings and use a transient keymap, (continued)
- [nongnu] elpa/subed 828764f 375/389: Change keybindings and use a transient keymap, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5de6f21 377/389: Add msecs-to-timestamp as a common function, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b42f563 378/389: Add audio extensions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6b1a6f2 367/389: Add computing and displaying characters per second, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3ba295b 336/389: Fix "service name too long", ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 961e5eb 343/389: More subed-vtt fixes: require subed-vtt, validate better, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 87b3823 353/389: subed-split-subtitle works at the beginning or end of subtitle text, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3b4b56a 384/389: Merge pull request #49 from sachac/fix-vtt-spaces, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bee9e63 342/389: subed-vtt: Fix syncing point with player, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 016c6a5 363/389: subed-split-subtitle: Handle more cases, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6164f88 380/389: Keep track of video being played,
ELPA Syncer <=
- [nongnu] elpa/subed 70561f0 381/389: Make hours optional in VTT files, following the spec, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bf3e832 382/389: Check if subed--cps-overlay exists before trying to update it, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b6e08c2 383/389: Handle spaces in between VTT subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 564b6fe 386/389: Add preliminary support for comments in VTT files, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d5751c5 334/389: Change default faces to inherit color values, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 65ed21c 350/389: Add tests/test-subed-vtt.el, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6eba992 376/389: Add ability to proportionally scale subtitles., ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7d1aa59 385/389: Make timestamp-to-msecs a generic function, ELPA Syncer, 2021/12/03