|
|
@ -1235,8 +1235,8 @@ QWidget* UBTBMediaContainer::generateMediaWidget(const QString& url) |
|
|
|
pW = label; |
|
|
|
pW = label; |
|
|
|
} |
|
|
|
} |
|
|
|
else if(mimeType.contains("video") || mimeType.contains("audio")){ |
|
|
|
else if(mimeType.contains("video") || mimeType.contains("audio")){ |
|
|
|
//UBMediaPlayer* mediaPlayer = new UBMediaPlayer();
|
|
|
|
UBMediaPlayer* mediaPlayer = new UBMediaPlayer(); |
|
|
|
UBMediaWidget* mediaPlayer = new UBMediaWidget(mimeType.contains("audio")?eMediaType_Audio:eMediaType_Video); |
|
|
|
//UBMediaWidget* mediaPlayer = new UBMediaWidget(mimeType.contains("audio")?eMediaType_Audio:eMediaType_Video);
|
|
|
|
mediaPlayer->setFile(url); |
|
|
|
mediaPlayer->setFile(url); |
|
|
|
pW = mediaPlayer; |
|
|
|
pW = mediaPlayer; |
|
|
|
} |
|
|
|
} |
|
|
|