本文整理汇总了C++中Video::getStreamUrl方法的典型用法代码示例。如果您正苦于以下问题:C++ Video::getStreamUrl方法的具体用法?C++ Video::getStreamUrl怎么用?C++ Video::getStreamUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Video
的用法示例。
在下文中一共展示了Video::getStreamUrl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: copyVideoLink
void MediaView::copyVideoLink() {
Video *video = playlistModel->activeVideo();
if (!video) return;
QApplication::clipboard()->setText(video->getStreamUrl());
QString message = tr("You can now paste the video stream URL into another application") + ". " +
tr("The link will be valid only for a limited time.");
MainWindow::instance()->showMessage(message);
}
示例2: openInBrowser
void MediaView::openInBrowser() {
Video* video = playlistModel->activeVideo();
if (!video) return;
#ifdef APP_PHONON
mediaObject->pause();
#endif
QDesktopServices::openUrl(video->getStreamUrl());
}
示例3: gotStreamUrl
void DownloadItem::gotStreamUrl(QUrl /*streamUrl*/) {
Video *video = static_cast<Video *>(sender());
if (!video) {
qDebug() << "Cannot get sender";
return;
}
video->disconnect(this);
m_url = video->getStreamUrl();
start();
}
示例4: openInBrowser
void MediaView::openInBrowser() {
Video *video = playlistModel->activeVideo();
if (!video) return;
media->pause();
QDesktopServices::openUrl(video->getStreamUrl());
}