From ea271f9d912a142dbb4fb93fc3eb95d8fffc7600 Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 15 Aug 2021 13:02:40 +0200 Subject: [PATCH] UI: Create YouTube LiveStream objects as non-reusable --- UI/youtube-api-wrappers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/youtube-api-wrappers.cpp b/UI/youtube-api-wrappers.cpp index ac121943a..a68a5d524 100644 --- a/UI/youtube-api-wrappers.cpp +++ b/UI/youtube-api-wrappers.cpp @@ -238,7 +238,7 @@ bool YoutubeApiWrappers::InsertStream(StreamDescription &stream) return false; } const QByteArray url = YOUTUBE_LIVE_STREAM_URL - "?part=snippet,cdn,status"; + "?part=snippet,cdn,status,contentDetails"; const Json data = Json::object{ {"snippet", Json::object{ @@ -250,6 +250,7 @@ bool YoutubeApiWrappers::InsertStream(StreamDescription &stream) {"ingestionType", "rtmp"}, {"resolution", "variable"}, }}, + {"contentDetails", Json::object{{"isReusable", false}}}, }; Json json_out; if (!InsertCommand(url, "application/json", "", data.dump().c_str(),