mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-05 22:04:46 -04:00
UI: Re-arrange multitrack-video schema to version 2024-06-04
Co-authored-by: Ruwen Hahn <haruwenz@twitch.tv>
This commit is contained in:
committed by
Ryan Foster
parent
ce4171908b
commit
14d2c80560
@@ -14,29 +14,30 @@ constructGoLivePost(QString streamKey,
|
||||
{
|
||||
GoLiveApi::PostData post_data{};
|
||||
post_data.service = "IVS";
|
||||
post_data.schema_version = "2023-05-10";
|
||||
post_data.schema_version = "2024-06-04";
|
||||
post_data.authentication = streamKey.toStdString();
|
||||
|
||||
system_info(post_data.capabilities);
|
||||
|
||||
auto &client = post_data.capabilities.client;
|
||||
auto &client = post_data.client;
|
||||
|
||||
client.name = "obs-studio";
|
||||
client.version = obs_get_version_string();
|
||||
client.vod_track_audio = vod_track_enabled;
|
||||
|
||||
auto &preferences = post_data.preferences;
|
||||
preferences.vod_track_audio = vod_track_enabled;
|
||||
|
||||
obs_video_info ovi;
|
||||
if (obs_get_video_info(&ovi)) {
|
||||
client.width = ovi.output_width;
|
||||
client.height = ovi.output_height;
|
||||
client.fps_numerator = ovi.fps_num;
|
||||
client.fps_denominator = ovi.fps_den;
|
||||
preferences.width = ovi.output_width;
|
||||
preferences.height = ovi.output_height;
|
||||
preferences.framerate.numerator = ovi.fps_num;
|
||||
preferences.framerate.denominator = ovi.fps_den;
|
||||
|
||||
client.canvas_width = ovi.base_width;
|
||||
client.canvas_height = ovi.base_height;
|
||||
preferences.canvas_width = ovi.base_width;
|
||||
preferences.canvas_height = ovi.base_height;
|
||||
}
|
||||
|
||||
auto &preferences = post_data.preferences;
|
||||
if (maximum_aggregate_bitrate.has_value())
|
||||
preferences.maximum_aggregate_bitrate =
|
||||
maximum_aggregate_bitrate.value();
|
||||
|
||||
Reference in New Issue
Block a user