author | harlekin <harlekin> | 2002-08-03 13:24:19 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-03 13:24:19 (UTC) |
commit | d3c13036415713932f1706e46fa7c99ef38188df (patch) (unidiff) | |
tree | 26c940287edab58089491d09896e97eb4e96bddf | |
parent | c703646da474df28651ec49d5d649d07f994c614 (diff) | |
download | opie-d3c13036415713932f1706e46fa7c99ef38188df.zip opie-d3c13036415713932f1706e46fa7c99ef38188df.tar.gz opie-d3c13036415713932f1706e46fa7c99ef38188df.tar.bz2 |
update
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index cc1a608..878cd4a 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -92,37 +92,39 @@ void XineControl::stop( bool isSet ) { | |||
92 | // play again | 92 | // play again |
93 | } | 93 | } |
94 | } | 94 | } |
95 | 95 | ||
96 | void XineControl::pause( bool isSet) { | 96 | void XineControl::pause( bool isSet) { |
97 | libXine->pause(); | 97 | libXine->pause(); |
98 | } | 98 | } |
99 | 99 | ||
100 | int XineControl::currentTime() { | 100 | int XineControl::currentTime() { |
101 | // todo: jede sekunde überprüfen | 101 | // todo: jede sekunde überprüfen |
102 | m_currentTime = libXine->currentTime(); | 102 | m_currentTime = libXine->currentTime(); |
103 | return m_currentTime; | 103 | return m_currentTime; |
104 | QTimer::singleShot( 1000, this, SLOT( currentTime() ) ); | ||
104 | } | 105 | } |
105 | 106 | ||
106 | void XineControl::length() { | 107 | void XineControl::length() { |
107 | m_length = libXine->length(); | 108 | m_length = libXine->length(); |
108 | mediaPlayerState->setLength( m_length ); | 109 | mediaPlayerState->setLength( m_length ); |
109 | } | 110 | } |
110 | 111 | ||
111 | long XineControl::position() { | 112 | long XineControl::position() { |
112 | qDebug("<<<<<<<<<<<< xinecontrol setPostion>>>>>>>>>"); | 113 | qDebug("<<<<<<<<<<<< xinecontrol setPostion>>>>>>>>>"); |
113 | m_position = (m_currentTime/m_length*100); | 114 | m_position = (m_currentTime/m_length*100); |
114 | mediaPlayerState->setPosition( m_position ); | 115 | mediaPlayerState->setPosition( m_position ); |
115 | long emitPos = (long)m_position; | 116 | long emitPos = (long)m_position; |
116 | emit positionChanged( emitPos ); | 117 | emit positionChanged( emitPos ); |
118 | // needs to be stopped the media is stopped | ||
117 | QTimer::singleShot( 1000, this, SLOT( position() ) ); | 119 | QTimer::singleShot( 1000, this, SLOT( position() ) ); |
118 | qDebug("POSITION : " + m_position); | 120 | qDebug("POSITION : " + m_position); |
119 | return m_position; | 121 | return m_position; |
120 | } | 122 | } |
121 | 123 | ||
122 | void XineControl::setFullscreen( bool isSet ) { | 124 | void XineControl::setFullscreen( bool isSet ) { |
123 | libXine->showVideoFullScreen( isSet); | 125 | libXine->showVideoFullScreen( isSet); |
124 | } | 126 | } |
125 | 127 | ||
126 | void XineControl::seekTo( long second ) { | 128 | void XineControl::seekTo( long second ) { |
127 | // libXine-> | 129 | // libXine-> |
128 | } | 130 | } |