From d04d6b676553f07827bc56308c0fe344a54cb5c1 Mon Sep 17 00:00:00 2001 From: ty Date: Sun, 27 Oct 2024 13:23:13 -0400 Subject: [PATCH] configure resume rtmp --- README.md | 2 +- config/dev.exs | 2 +- config/runtime.exs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 38928f3..d98cb2d 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ AWS_REGION="auto" AWS_ACCESS_KEY_ID="tid_..." AWS_SECRET_ACCESS_KEY="tsec_..." BUCKET_MEDIA="..." -TRANSCODE=4320p60|2160p60|1440p60|1440p30|720p30|360p30|180p30 +RESUME_RTMP=true ``` diff --git a/config/dev.exs b/config/dev.exs index 79e177c..b916257 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -2,7 +2,7 @@ import Config config :algora, mode: :dev, - resume_rtmp: true + resume_rtmp: System.get_env("RESUME_RTMP", "false") == "true" config :algora, :buckets, media: System.get_env("BUCKET_MEDIA"), diff --git a/config/runtime.exs b/config/runtime.exs index cd003cb..bf64882 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -14,7 +14,7 @@ end config :algora, hf_token: System.get_env("HF_TOKEN"), - resume_rtmp: true + resume_rtmp: System.get_env("RESUME_RTMP", "false") == "true" config :replicate, replicate_api_token: System.get_env("REPLICATE_API_TOKEN")