author | harlekin <harlekin> | 2002-08-09 20:11:31 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-09 20:11:31 (UTC) |
commit | 46eb53b1fd042d2591933a7d89a0e65b79140f16 (patch) (unidiff) | |
tree | c5304881a9597b98f05adb04216b8042ca0d78b6 /noncore/multimedia/opieplayer2/xinecontrol.cpp | |
parent | d8e5c405aa6bf33b8b1d59443926876e8f056e5b (diff) | |
download | opie-46eb53b1fd042d2591933a7d89a0e65b79140f16.zip opie-46eb53b1fd042d2591933a7d89a0e65b79140f16.tar.gz opie-46eb53b1fd042d2591933a7d89a0e65b79140f16.tar.bz2 |
autoadvance to next media when current is finished (playlist)
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 9 |
1 files changed, 7 insertions, 2 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 | |||
@@ -46,12 +46,13 @@ XineControl::XineControl( QObject *parent, const char *name ) | |||
46 | connect ( videoUI, SIGNAL( videoResized ( const QSize & )), this, SLOT( videoResized ( const QSize & ))); | 46 | connect ( videoUI, SIGNAL( videoResized ( const QSize & )), this, SLOT( videoResized ( const QSize & ))); |
47 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); | 47 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); |
48 | connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( updatePosition( long ) ) ); | 48 | connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( updatePosition( long ) ) ); |
49 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); | 49 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); |
50 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); | 50 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); |
51 | connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) ); | 51 | connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) ); |
52 | connect( libXine, SIGNAL( stopped() ), this, SLOT( nextMedia() ) ); | ||
52 | } | 53 | } |
53 | 54 | ||
54 | XineControl::~XineControl() { | 55 | XineControl::~XineControl() { |
55 | delete libXine; | 56 | delete libXine; |
56 | } | 57 | } |
57 | 58 | ||
@@ -72,22 +73,26 @@ void XineControl::play( const QString& fileName ) { | |||
72 | } else { | 73 | } else { |
73 | libXine->setShowVideo( true ); | 74 | libXine->setShowVideo( true ); |
74 | } | 75 | } |
75 | 76 | ||
76 | // determine if slider is shown | 77 | // determine if slider is shown |
77 | // mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); | 78 | // mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); |
78 | mediaPlayerState->setIsStreaming( libXine->isSeekable() ); | 79 | mediaPlayerState->setIsStreaming( !libXine->isSeekable() ); |
79 | // which gui (video / audio) | 80 | // which gui (video / audio) |
80 | mediaPlayerState->setView( whichGui ); | 81 | mediaPlayerState->setView( whichGui ); |
81 | length(); | 82 | length(); |
82 | position(); | 83 | position(); |
83 | } | 84 | } |
84 | 85 | ||
86 | void XineControl::nextMedia() { | ||
87 | mediaPlayerState->setNext(); | ||
88 | } | ||
89 | |||
85 | void XineControl::stop( bool isSet ) { | 90 | void XineControl::stop( bool isSet ) { |
86 | if ( !isSet) { | 91 | if ( !isSet) { |
87 | libXine->stop(); | 92 | libXine->stop( ); |
88 | mediaPlayerState->setList(); | 93 | mediaPlayerState->setList(); |
89 | //mediaPlayerState->setPlaying( false ); | 94 | //mediaPlayerState->setPlaying( false ); |
90 | } else { | 95 | } else { |
91 | // play again | 96 | // play again |
92 | } | 97 | } |
93 | } | 98 | } |