Hi ,
I tired to diplay a video splash screen using qtmedia player , i faced many problem such as black screen when displaying video ,crash etc …
I did many reaserch , finally i added this config to local.conf :
I used this code :
QMediaPlayer* video= new QMediaPlayer;
QVideoWidget* videoWidg = new QVideoWidget();
video->setVideoOutput(videoWidg);
video->setMedia(QUrl::fromLocalFile(videoPath));
videoWidg->showFullScreen();
videoWidg->setStyleSheet("background-color:black;");
qDebug() <<"media "<<video->mediaStatus();
QTimer::singleShot(9000, video, SLOT(stop()));
QTimer::singleShot(9000, videoWidg, SLOT(close()));
this code is not stable , sometime it run without error and sometime the video stop (internal data stream error) Beside , when it run is very slow , how can i optimize the speed and resolve codec and qt error?
Thank you