Commit 3e7e2d81 authored by Claudio Valerio's avatar Claudio Valerio

fixed start on laod media player issue

parent 15ea3abd
...@@ -242,7 +242,6 @@ void UBMediaPlayer::setFile(const QString &fileName) ...@@ -242,7 +242,6 @@ void UBMediaPlayer::setFile(const QString &fileName)
{ {
setWindowTitle(fileName.right(fileName.length() - fileName.lastIndexOf('/') - 1)); setWindowTitle(fileName.right(fileName.length() - fileName.lastIndexOf('/') - 1));
m_MediaObject.setCurrentSource(Phonon::MediaSource(fileName)); m_MediaObject.setCurrentSource(Phonon::MediaSource(fileName));
m_MediaObject.play();
} }
void UBMediaPlayer::setLocation(const QString& location) void UBMediaPlayer::setLocation(const QString& location)
......
...@@ -541,7 +541,6 @@ void UBTeacherBarDropMediaZone::addMedia(QString pMediaPath) ...@@ -541,7 +541,6 @@ void UBTeacherBarDropMediaZone::addMedia(QString pMediaPath)
else if(mimeType.contains("video") || mimeType.contains("audio")){ else if(mimeType.contains("video") || mimeType.contains("audio")){
UBMediaPlayer* mediaPlayer = new UBMediaPlayer(); UBMediaPlayer* mediaPlayer = new UBMediaPlayer();
mediaPlayer->setFile(pMediaPath); mediaPlayer->setFile(pMediaPath);
mediaPlayer->playPause();
mWidget->addWidget(mediaPlayer); mWidget->addWidget(mediaPlayer);
mWidgetList << mediaPlayer; mWidgetList << mediaPlayer;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment