summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp4
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
18XineControl::~XineControl() { 18XineControl::~XineControl() {
19 delete libXine; 19 delete libXine;
20} 20}
21 21
22void XineControl::play( const QString& fileName ) { 22void 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
41void XineControl::stop( bool isSet ) { 41void 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
51void XineControl::pause( bool isSet) { 51void XineControl::pause( bool isSet) {
52 libXine->pause(); 52 libXine->pause();
53} 53}
54 54
55int XineControl::currentTime() { 55int 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}