Added ability to open stream in external video player via URI scheme. (#1623)
This commit is contained in:
@@ -68,6 +68,23 @@ ExternalToolsPage::ExternalToolsPage()
|
||||
this->managedConnections_);
|
||||
}
|
||||
|
||||
{
|
||||
auto group = layout.emplace<QGroupBox>("Custom URI Scheme");
|
||||
auto groupLayout = group.setLayoutType<QFormLayout>();
|
||||
|
||||
const auto description = new QLabel(
|
||||
"You can open video streams directly in any video player that "
|
||||
"has built-in Twitch support and has own URI Scheme.\nE.g.: "
|
||||
"IINA for macOS and Potplayer (with extension) for Windows.");
|
||||
description->setWordWrap(true);
|
||||
description->setStyleSheet("color: #bbb");
|
||||
|
||||
groupLayout->setWidget(0, QFormLayout::SpanningRole, description);
|
||||
|
||||
groupLayout->addRow("URI Scheme:", this->createLineEdit(
|
||||
getSettings()->customURIScheme));
|
||||
}
|
||||
|
||||
layout->addStretch(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user