mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 13:04:54 -04:00
UI: Add required links when using YouTube
These links are required by Google to be shown on any API client when using Google/YouTube API.
This commit is contained in:
1 parent
94009535cd
commit
fbbe193c59
2 files changed
+24
-5
No files matched your search
@@ -837,13 +837,13 @@ void OBSBasicSettings::UpdateServiceRecommendations()
|
||||
.arg(QString::number(vbitrate));
|
||||
if (abitrate) {
|
||||
if (!text.isEmpty())
|
||||
text += "\n";
|
||||
text += "<br>";
|
||||
text += ENFORCE_TEXT("MaxAudioBitrate")
|
||||
.arg(QString::number(abitrate));
|
||||
}
|
||||
if (res_count) {
|
||||
if (!text.isEmpty())
|
||||
text += "\n";
|
||||
text += "<br>";
|
||||
|
||||
obs_service_resolution best_res = {};
|
||||
int best_res_pixels = 0;
|
||||
@@ -864,12 +864,25 @@ void OBSBasicSettings::UpdateServiceRecommendations()
|
||||
}
|
||||
if (fps) {
|
||||
if (!text.isEmpty())
|
||||
text += "\n";
|
||||
text += "<br>";
|
||||
|
||||
text += ENFORCE_TEXT("MaxFPS").arg(QString::number(fps));
|
||||
}
|
||||
#undef ENFORCE_TEXT
|
||||
|
||||
#if YOUTUBE_ENABLED
|
||||
if (IsYouTubeService(QT_TO_UTF8(ui->service->currentText()))) {
|
||||
if (!text.isEmpty())
|
||||
text += "<br><br>";
|
||||
|
||||
text += "<a href=\"https://www.youtube.com/t/terms\">"
|
||||
"YouTube Terms of Service</a><br>"
|
||||
"<a href=\"http://www.google.com/policies/privacy\">"
|
||||
"Google Privacy Policy</a><br>"
|
||||
"<a href=\"https://security.google.com/settings/security/permissions\">"
|
||||
"Google Third-Party Permissions</a>";
|
||||
}
|
||||
#endif
|
||||
ui->enforceSettingsLabel->setText(text);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user