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(mpAudioOutput);
DELETEPTR(mpVideoWidget);
DELETEPTR(mpVideoContainer);
DELETEPTR(mpMediaObject);
}

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

Loading…
Cancel
Save