浏览代码

UI: Add Restream.io link to stream key page

Allows the users to find their stream key via a specified link if they
opt to just use a stream key instead of integration.
SoftArch 6 年之前
父节点
当前提交
225817b1ba
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 7 0
      UI/window-basic-auto-config.cpp
  2. 7 0
      UI/window-basic-settings-stream.cpp

+ 7 - 0
UI/window-basic-auto-config.cpp

@@ -575,6 +575,13 @@ void AutoConfigStreamPage::UpdateKeyLink()
 		text += "</a>";
 
 		isYoutube = true;
+	} else if (serviceName.startsWith("Restream.io")) {
+		text += " <a href=\"https://";
+		text += "restream.io/settings/streaming-setup?from=OBS";
+		text += "\">";
+		text += QTStr(
+			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
+		text += "</a>";
 	}
 
 	if (isYoutube) {

+ 7 - 0
UI/window-basic-settings-stream.cpp

@@ -198,6 +198,13 @@ void OBSBasicSettings::UpdateKeyLink()
 		text += QTStr(
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 		text += "</a>";
+	} else if (serviceName.startsWith("Restream.io")) {
+		text += " <a href=\"https://";
+		text += "restream.io/settings/streaming-setup?from=OBS";
+		text += "\">";
+		text += QTStr(
+			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
+		text += "</a>";
 	}
 
 	ui->streamKeyLabel->setText(text);