Skip to content

Commit

Permalink
从打开方式打开不播放视频广告,否则待打开的文件打开不了
Browse files Browse the repository at this point in the history
  • Loading branch information
sonichy committed Oct 23, 2018
1 parent 257cbdf commit fe181e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified HTYMP
Binary file not shown.
6 changes: 3 additions & 3 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ MainWindow::MainWindow(QWidget *parent) :
setWindowTitle(url);
}
}
}else{
player->setMedia(QUrl("http://live.bydauto.com.cn/7d4b5440ce67448289ca611d83081e71/6fd6527c70704bc78532a35df64ba319-5287d2089db37e62345123a1be272f8b.mp4"));
player->play();
}

dialogUrl = new DialogURL(this);
Expand All @@ -180,9 +183,6 @@ MainWindow::MainWindow(QWidget *parent) :
MPLurl->setPlaybackMode(QMediaPlaylist::Sequential);
connect(MPLurl,SIGNAL(currentIndexChanged(int)),this,SLOT(MPLCIChange(int)));

player->setMedia(QUrl("http://live.bydauto.com.cn/7d4b5440ce67448289ca611d83081e71/6fd6527c70704bc78532a35df64ba319-5287d2089db37e62345123a1be272f8b.mp4"));
player->play();

// QNetworkAccessManager *NAM = new QNetworkAccessManager;
// QString urlAD = "https://cdnmall.bydauto.com.cn/resources/activityReleased/089cb95b-2bed-4726-b7a7-53db0b16d11c/images/qin-pro-index/pc01.jpg";
// NAM->get(QNetworkRequest(urlAD));
Expand Down

0 comments on commit fe181e6

Please sign in to comment.