summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp14
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.h2
2 files changed, 11 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp
index 7407e4e..497636a 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp
@@ -1,3 +1,3 @@
-
+#include <qtimer.h>
#include "xinecontrol.h"
#include "mediaplayerstate.h"
@@ -13,5 +13,5 @@ XineControl::XineControl( QObject *parent, const char *name )
connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) );
connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) );
-
+ connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) );
}
@@ -31,9 +31,10 @@ void XineControl::play( const QString& fileName ) {
}
+ // determine if slider is shown
+ mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) );
+
// which gui (video / audio)
mediaPlayerState->setView( whichGui );
- // determine if slider is shown
- mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) );
}
@@ -68,3 +69,8 @@ int XineControl::position() {
return m_position;
emit positionChanged( m_position );
+ QTimer::singleShot( 1000, this, SLOT( position ) );
+}
+
+void XineControl::setFullscreen( bool isSet ) {
+ libXine-> showVideoFullScreen( isSet);
}
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h
index aab00cd..145cd0c 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.h
+++ b/noncore/multimedia/opieplayer2/xinecontrol.h
@@ -17,5 +17,5 @@ public slots:
void stop( bool );
void pause( bool );
-
+ void setFullscreen( bool );
int currentTime();