|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|