author | harlekin <harlekin> | 2002-07-09 14:12:19 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-09 14:12:19 (UTC) |
commit | 2d3147a590a150773b84ce6e0aa65f7515a1f178 (patch) (unidiff) | |
tree | 944a6ad190bfe2d36d395918c70cffa998a1c5cb | |
parent | f9e07dc2c8e489c48debb31a6ae5afd46b77faee (diff) | |
download | opie-2d3147a590a150773b84ce6e0aa65f7515a1f178.zip opie-2d3147a590a150773b84ce6e0aa65f7515a1f178.tar.gz opie-2d3147a590a150773b84ce6e0aa65f7515a1f178.tar.bz2 |
isSeekable to determine if slider or not
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 497636a..7d3b1f7 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -10,50 +10,50 @@ XineControl::XineControl( QObject *parent, const char *name ) | |||
10 | libXine = new XINE::Lib(); | 10 | libXine = new XINE::Lib(); |
11 | 11 | ||
12 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); | 12 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); |
13 | connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); | 13 | connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); |
14 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); | 14 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); |
15 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); | 15 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); |
16 | } | 16 | } |
17 | 17 | ||
18 | XineControl::~XineControl() { | 18 | XineControl::~XineControl() { |
19 | delete libXine; | 19 | delete libXine; |
20 | } | 20 | } |
21 | 21 | ||
22 | void XineControl::play( const QString& fileName ) { | 22 | void XineControl::play( const QString& fileName ) { |
23 | libXine->play( fileName ); | 23 | libXine->play( fileName ); |
24 | mediaPlayerState->setPlaying( true ); | 24 | mediaPlayerState->setPlaying( true ); |
25 | // default to audio view until we know how to handle video | 25 | // default to audio view until we know how to handle video |
26 | // MediaDetect mdetect; | 26 | // MediaDetect mdetect; |
27 | char whichGui = mdetect.videoOrAudio( fileName ); | 27 | char whichGui = mdetect.videoOrAudio( fileName ); |
28 | if (whichGui == 'f') { | 28 | if (whichGui == 'f') { |
29 | qDebug("Nicht erkannter Dateityp"); | 29 | qDebug("Nicht erkannter Dateityp"); |
30 | return; | 30 | return; |
31 | } | 31 | } |
32 | 32 | ||
33 | // determine if slider is shown | 33 | // determine if slider is shown |
34 | mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); | 34 | // mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); |
35 | 35 | mediaPlayerState->setIsStreaming( libXine->isSeekable() ); | |
36 | // which gui (video / audio) | 36 | // which gui (video / audio) |
37 | mediaPlayerState->setView( whichGui ); | 37 | mediaPlayerState->setView( whichGui ); |
38 | 38 | ||
39 | } | 39 | } |
40 | 40 | ||
41 | void XineControl::stop( bool isSet ) { | 41 | void XineControl::stop( bool isSet ) { |
42 | if ( !isSet) { | 42 | if ( !isSet) { |
43 | libXine->stop(); | 43 | libXine->stop(); |
44 | mediaPlayerState->setList(); | 44 | mediaPlayerState->setList(); |
45 | //mediaPlayerState->setPlaying( false ); | 45 | //mediaPlayerState->setPlaying( false ); |
46 | } else { | 46 | } else { |
47 | // play again | 47 | // play again |
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | void XineControl::pause( bool isSet) { | 51 | void XineControl::pause( bool isSet) { |
52 | libXine->pause(); | 52 | libXine->pause(); |
53 | } | 53 | } |
54 | 54 | ||
55 | int XineControl::currentTime() { | 55 | int XineControl::currentTime() { |
56 | // todo: jede sekunde überprüfen | 56 | // todo: jede sekunde überprüfen |
57 | m_currentTime = libXine->currentTime(); | 57 | m_currentTime = libXine->currentTime(); |
58 | return m_currentTime; | 58 | return m_currentTime; |
59 | } | 59 | } |