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); }
void MediaView::openInBrowser() { Video* video = playlistModel->activeVideo(); if (!video) return; #ifdef APP_PHONON mediaObject->pause(); #endif QDesktopServices::openUrl(video->getStreamUrl()); }
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(); }
void MediaView::openInBrowser() { Video *video = playlistModel->activeVideo(); if (!video) return; media->pause(); QDesktopServices::openUrl(video->getStreamUrl()); }