summaryrefslogtreecommitdiffstats
path: root/emacsconf-stream.el
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-03 18:41:22 -0400
committerSacha Chua <sacha@sachachua.com>2022-11-03 18:41:22 -0400
commitc36261caaff9305d256c616edcc9d1fdb51b1b42 (patch)
treedb26ab46121d26442002dd8d4b190d8a8393dae9 /emacsconf-stream.el
parent3cce90093797c7524cecff94df35b4b8253f91fa (diff)
downloademacsconf-el-c36261caaff9305d256c616edcc9d1fdb51b1b42.tar.xz
emacsconf-el-c36261caaff9305d256c616edcc9d1fdb51b1b42.zip
Change hooks to pass the talk variable
Diffstat (limited to 'emacsconf-stream.el')
-rw-r--r--emacsconf-stream.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/emacsconf-stream.el b/emacsconf-stream.el
index 26586b2..fd1395a 100644
--- a/emacsconf-stream.el
+++ b/emacsconf-stream.el
@@ -145,15 +145,15 @@ while OTHER-FILENAME will be displayed at other times."
(plist-get talk :overlay-url)
(plist-get talk :overlay-bottom)))))
-(defun emacsconf-stream-update-talk-info-org-after-todo-state-change ()
+(defun emacsconf-stream-update-talk-info-on-change (talk)
"Update talk info."
(when (string= org-state "PLAYING")
- (emacsconf-stream-set-talk-info (emacsconf-get-talk-info-for-subtree))))
+ (emacsconf-stream-set-talk-info talk)))
-(defun emacsconf-stream-play-talk-org-after-todo-state-change ()
+(defun emacsconf-stream-play-talk-on-change (talk)
"Play the talk."
(when (string= org-state "PLAYING")
- (emacsconf-stream-play-video (emacsconf-get-talk-info-for-subtree))))
+ (emacsconf-stream-play-video talk)))
(defun emacsconf-stream-get-filename (talk)
"Return the local filename for the video file for TALK.