如何使用Qt FrameWork從vimeo或dailymotion下載視頻。這裏是我的代碼,但它不工作:Qt FrameWork - 從vimeo,dailymotion下載視頻
downloadManager = new QNetworkAccessManager(this);
QNetworkRequest request;
request.setUrl(QUrl("https://www.dailymotion.com/cdn/H264-1280x720/video/x5e553p.mp4?auth=1489424955-2562-4nmhj8lt-a840543181f17a50d614a6ff23ad5c07"));
QSslConfiguration configSsl = QSslConfiguration::defaultConfiguration();
configSsl.setProtocol(QSsl::AnyProtocol);
request.setSslConfiguration(configSsl);
replyn = downloadManager->get(request);
此網址https://www.dailymotion.com/cdn/H264-1280x720/video/x5e553p.mp4?auth=1489424955-2562-4nmhj8lt-a840543181f17a50d614a6ff23ad5c07重定向到https://proxy-058.dc3.dailymotion.com/video/793/580/326085397_mp4_h264_aac_hd.mp4?auth=1489259396-6658-s68i24c0-6b97977318a7dbd81ef264afc469ffa1#cell=core&hls_heuristic=1&hls_startFragPrefetch=1
你可以舉一些例子代碼 –
你嘗試過什麼嗎?這只是使用新URL調用「downloadManager-> get()」的問題。 –
是的,但我無法在QT中獲得新的URL –