浏览代码

UI: Create YouTube LiveStream objects as non-reusable

derrod 4 年之前
父节点
当前提交
ea271f9d91
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      UI/youtube-api-wrappers.cpp

+ 2 - 1
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(),