-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 9 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.h | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index eba837e..8b9413f 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp @@ -51,2 +51,3 @@ XineControl::XineControl( QObject *parent, const char *name ) connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) ); + connect( libXine, SIGNAL( stopped() ), this, SLOT( nextMedia() ) ); } @@ -77,3 +78,3 @@ void XineControl::play( const QString& fileName ) { // mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); - mediaPlayerState->setIsStreaming( libXine->isSeekable() ); + mediaPlayerState->setIsStreaming( !libXine->isSeekable() ); // which gui (video / audio) @@ -84,5 +85,9 @@ void XineControl::play( const QString& fileName ) { +void XineControl::nextMedia() { + mediaPlayerState->setNext(); +} + void XineControl::stop( bool isSet ) { if ( !isSet) { - libXine->stop(); + libXine->stop( ); mediaPlayerState->setList(); diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h index c7aefd4..712e298 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.h +++ b/noncore/multimedia/opieplayer2/xinecontrol.h @@ -57,4 +57,4 @@ public slots: long position(); - - void videoResized ( const QSize &s ); + void nextMedia(); + void videoResized ( const QSize &s ); |