Commit 4c4d569b authored by shibakaneki's avatar shibakaneki

Enabled UBMediaMidget

parent 78562cd4
...@@ -49,7 +49,6 @@ UBMediaWidget::~UBMediaWidget() ...@@ -49,7 +49,6 @@ UBMediaWidget::~UBMediaWidget()
DELETEPTR(mpPlayStopButton); DELETEPTR(mpPlayStopButton);
DELETEPTR(mpAudioOutput); DELETEPTR(mpAudioOutput);
DELETEPTR(mpVideoWidget); DELETEPTR(mpVideoWidget);
DELETEPTR(mpVideoContainer);
DELETEPTR(mpMediaObject); DELETEPTR(mpMediaObject);
} }
......
...@@ -1235,8 +1235,8 @@ QWidget* UBTBMediaContainer::generateMediaWidget(const QString& url) ...@@ -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;
} }
......
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