summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-08-03 13:24:19 (UTC)
committer harlekin <harlekin>2002-08-03 13:24:19 (UTC)
commitd3c13036415713932f1706e46fa7c99ef38188df (patch) (side-by-side diff)
tree26c940287edab58089491d09896e97eb4e96bddf
parentc703646da474df28651ec49d5d649d07f994c614 (diff)
downloadopie-d3c13036415713932f1706e46fa7c99ef38188df.zip
opie-d3c13036415713932f1706e46fa7c99ef38188df.tar.gz
opie-d3c13036415713932f1706e46fa7c99ef38188df.tar.bz2
update
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp2
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
@@ -56,74 +56,76 @@ XineControl::~XineControl() {
delete libXine;
}
void XineControl::play( const QString& fileName ) {
libXine->play( fileName );
mediaPlayerState->setPlaying( true );
// default to audio view until we know how to handle video
// MediaDetect mdetect;
char whichGui = mdetect.videoOrAudio( fileName );
if (whichGui == 'f') {
qDebug("Nicht erkannter Dateityp");
return;
}
if (whichGui == 'a') {
libXine->setShowVideo( false );
} else {
libXine->setShowVideo( true );
}
// determine if slider is shown
// mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) );
mediaPlayerState->setIsStreaming( libXine->isSeekable() );
// which gui (video / audio)
mediaPlayerState->setView( whichGui );
length();
position();
}
void XineControl::stop( bool isSet ) {
if ( !isSet) {
libXine->stop();
mediaPlayerState->setList();
//mediaPlayerState->setPlaying( false );
} else {
// play again
}
}
void XineControl::pause( bool isSet) {
libXine->pause();
}
int XineControl::currentTime() {
// todo: jede sekunde überprüfen
m_currentTime = libXine->currentTime();
return m_currentTime;
+ QTimer::singleShot( 1000, this, SLOT( currentTime() ) );
}
void XineControl::length() {
m_length = libXine->length();
mediaPlayerState->setLength( m_length );
}
long XineControl::position() {
qDebug("<<<<<<<<<<<< xinecontrol setPostion>>>>>>>>>");
m_position = (m_currentTime/m_length*100);
mediaPlayerState->setPosition( m_position );
long emitPos = (long)m_position;
emit positionChanged( emitPos );
+ // needs to be stopped the media is stopped
QTimer::singleShot( 1000, this, SLOT( position() ) );
qDebug("POSITION : " + m_position);
return m_position;
}
void XineControl::setFullscreen( bool isSet ) {
libXine->showVideoFullScreen( isSet);
}
void XineControl::seekTo( long second ) {
// libXine->
}