Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 5b674f8..7407e4e 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -3,4 +3,5 @@ | |||
3 | #include "mediaplayerstate.h" | 3 | #include "mediaplayerstate.h" |
4 | 4 | ||
5 | |||
5 | extern MediaPlayerState *mediaPlayerState; | 6 | extern MediaPlayerState *mediaPlayerState; |
6 | 7 | ||
@@ -23,8 +24,16 @@ void XineControl::play( const QString& fileName ) { | |||
23 | mediaPlayerState->setPlaying( true ); | 24 | mediaPlayerState->setPlaying( true ); |
24 | // default to audio view until we know how to handle video | 25 | // default to audio view until we know how to handle video |
25 | mediaPlayerState->setView('a'); | 26 | // MediaDetect mdetect; |
26 | // determines of slider is shown | 27 | char whichGui = mdetect.videoOrAudio( fileName ); |
27 | // mediaPlayerState->setIsStreaming( false ); | 28 | if (whichGui == 'f') { |
28 | // hier dann schaun welcher view | 29 | qDebug("Nicht erkannter Dateityp"); |
30 | return; | ||
31 | } | ||
32 | |||
33 | // which gui (video / audio) | ||
34 | mediaPlayerState->setView( whichGui ); | ||
35 | |||
36 | // determine if slider is shown | ||
37 | mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); | ||
29 | } | 38 | } |
30 | 39 | ||
@@ -32,5 +41,5 @@ void XineControl::stop( bool isSet ) { | |||
32 | if ( !isSet) { | 41 | if ( !isSet) { |
33 | libXine->stop(); | 42 | libXine->stop(); |
34 | mediaPlayerState->setNext(); | 43 | mediaPlayerState->setList(); |
35 | //mediaPlayerState->setPlaying( false ); | 44 | //mediaPlayerState->setPlaying( false ); |
36 | } else { | 45 | } else { |
@@ -40,5 +49,4 @@ void XineControl::stop( bool isSet ) { | |||
40 | 49 | ||
41 | void XineControl::pause( bool isSet) { | 50 | void XineControl::pause( bool isSet) { |
42 | |||
43 | libXine->pause(); | 51 | libXine->pause(); |
44 | } | 52 | } |