summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.cpp
authorharlekin <harlekin>2002-07-09 12:33:52 (UTC)
committer harlekin <harlekin>2002-07-09 12:33:52 (UTC)
commit2fa8959b269c51bb40d1f03bbd7c55fdaa9da0dd (patch) (unidiff)
tree8ce99f4cde91c9346a4cd6f7029ec1d1308cfb30 /noncore/multimedia/opieplayer2/xinecontrol.cpp
parentc0d304c69f6c42328472cd1328d9cad7c2ed4dfb (diff)
downloadopie-2fa8959b269c51bb40d1f03bbd7c55fdaa9da0dd.zip
opie-2fa8959b269c51bb40d1f03bbd7c55fdaa9da0dd.tar.gz
opie-2fa8959b269c51bb40d1f03bbd7c55fdaa9da0dd.tar.bz2
more gui work
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp20
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
@@ -4,2 +4,3 @@
4 4
5
5extern MediaPlayerState *mediaPlayerState; 6extern MediaPlayerState *mediaPlayerState;
@@ -24,6 +25,14 @@ void XineControl::play( const QString& fileName ) {
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}
@@ -33,3 +42,3 @@ void XineControl::stop( bool isSet ) {
33 libXine->stop(); 42 libXine->stop();
34 mediaPlayerState->setNext(); 43 mediaPlayerState->setList();
35 //mediaPlayerState->setPlaying( false ); 44 //mediaPlayerState->setPlaying( false );
@@ -41,3 +50,2 @@ void XineControl::stop( bool isSet ) {
41void XineControl::pause( bool isSet) { 50void XineControl::pause( bool isSet) {
42
43 libXine->pause(); 51 libXine->pause();