UI: Create YouTube LiveStream objects as non-reusable
This commit is contained in:
parent
47df2467e9
commit
ea271f9d91
@ -238,7 +238,7 @@ bool YoutubeApiWrappers::InsertStream(StreamDescription &stream)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const QByteArray url = YOUTUBE_LIVE_STREAM_URL
|
const QByteArray url = YOUTUBE_LIVE_STREAM_URL
|
||||||
"?part=snippet,cdn,status";
|
"?part=snippet,cdn,status,contentDetails";
|
||||||
const Json data = Json::object{
|
const Json data = Json::object{
|
||||||
{"snippet",
|
{"snippet",
|
||||||
Json::object{
|
Json::object{
|
||||||
@ -250,6 +250,7 @@ bool YoutubeApiWrappers::InsertStream(StreamDescription &stream)
|
|||||||
{"ingestionType", "rtmp"},
|
{"ingestionType", "rtmp"},
|
||||||
{"resolution", "variable"},
|
{"resolution", "variable"},
|
||||||
}},
|
}},
|
||||||
|
{"contentDetails", Json::object{{"isReusable", false}}},
|
||||||
};
|
};
|
||||||
Json json_out;
|
Json json_out;
|
||||||
if (!InsertCommand(url, "application/json", "", data.dump().c_str(),
|
if (!InsertCommand(url, "application/json", "", data.dump().c_str(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user