-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 16 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.h | 2 |
2 files changed, 12 insertions, 6 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,2 +1,2 @@ - +#include <qtimer.h> #include "xinecontrol.h" @@ -14,3 +14,3 @@ XineControl::XineControl( QObject *parent, const char *name ) connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); - + connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); } @@ -32,7 +32,8 @@ void XineControl::play( const QString& fileName ) { - // which gui (video / audio) - mediaPlayerState->setView( whichGui ); - // determine if slider is shown mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); + + // which gui (video / audio) + mediaPlayerState->setView( whichGui ); + } @@ -69,2 +70,7 @@ int XineControl::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 @@ -18,3 +18,3 @@ public slots: void pause( bool ); - + void setFullscreen( bool ); int currentTime(); |