Enabled UBMediaMidget

preferencesAboutTextFull
shibakaneki 13 years ago
parent 78562cd421
commit 4c4d569b35
  1. 1
      src/customWidgets/UBMediaWidget.cpp
  2. 4
      src/gui/UBTeacherBarWidget.cpp

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

Loading…
Cancel
Save