-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 5a69bf5..956789f 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -235,19 +235,4 @@ void VideoWidget::setLength( long max ) { | |||
235 | void VideoWidget::setView( char view ) { | 235 | void VideoWidget::setView( char view ) { |
236 | 236 | ||
237 | if ( mediaPlayerState->streaming() ) { | ||
238 | qDebug("<<<<<<<<<<<<<<file is STREAMING>>>>>>>>>>>>>>>>>>>"); | ||
239 | if( !slider->isHidden()) { | ||
240 | slider->hide(); | ||
241 | } | ||
242 | disconnect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); | ||
243 | disconnect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); | ||
244 | } else { | ||
245 | // this stops the slider from being moved, thus | ||
246 | // does not stop stream when it reaches the end | ||
247 | slider->show(); | ||
248 | connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); | ||
249 | connect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); | ||
250 | } | ||
251 | |||
252 | if ( view == 'v' ) { | 237 | if ( view == 'v' ) { |
253 | makeVisible(); | 238 | makeVisible(); |
@@ -395,5 +380,9 @@ void VideoWidget::makeVisible() { | |||
395 | showMaximized(); | 380 | showMaximized(); |
396 | setBackgroundPixmap( *pixBg ); | 381 | setBackgroundPixmap( *pixBg ); |
397 | slider->show(); | 382 | if ( mediaPlayerState->streaming() ) { |
383 | slider->hide(); | ||
384 | } else { | ||
385 | slider->show(); | ||
386 | } | ||
398 | videoFrame->setGeometry( QRect( 0, 30, 240, 170 ) ); | 387 | videoFrame->setGeometry( QRect( 0, 30, 240, 170 ) ); |
399 | qApp->processEvents(); | 388 | qApp->processEvents(); |
@@ -486,5 +475,5 @@ void VideoWidget::keyReleaseEvent( QKeyEvent *e) { | |||
486 | setToggleButton( i, TRUE ); | 475 | setToggleButton( i, TRUE ); |
487 | mediaPlayerState->setPaused( TRUE ); | 476 | mediaPlayerState->setPaused( TRUE ); |
488 | } | 477 | } |
489 | #endif | 478 | #endif |
490 | break; | 479 | break; |