From 01c6a6c7b607fe44a7bd772435fcf3c7911dd361 Mon Sep 17 00:00:00 2001 From: zafer Date: Tue, 7 May 2024 16:30:21 +0300 Subject: [PATCH] add helper to get video id from pipeline --- lib/algora/pipeline.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/algora/pipeline.ex b/lib/algora/pipeline.ex index 57433c4..8e93d03 100644 --- a/lib/algora/pipeline.ex +++ b/lib/algora/pipeline.ex @@ -70,4 +70,9 @@ defmodule Algora.Pipeline do {[], state} end + + @impl true + def handle_call(:get_video_id, _ctx, state) do + {[{:reply, state.video.id}], state} + end end