EmbeddedVideoPlayer(Phonon::Category category, QWidget *parent = 0) :
Phonon::VideoPlayer(category, parent)
{
- setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
}
void setSizeHint(const QSize& size)
{
m_sizeHint = size;
- setFixedHeight(size.height());
updateGeometry();
}
// Creating an audio player or video player instance might take up to
// 2 seconds when doing it the first time. To prevent that the user
- // interface gets noticable blocked, the creation is delayed until
+ // interface gets noticeable blocked, the creation is delayed until
// the play button has been pressed (see PhononWidget::play()).
}
}
}
m_media = m_audioMedia;
m_media->setCurrentSource(m_url);
+ m_media->play();
break;
case Video: