forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add signal parameter AVPlayer.seekFinished(qint64)
The position() you get in the slot is not exactly the video seek finish timestamp, but the clock value. You must use the signal parameter. So if audio stream seeking is not finished, the value can be very different from video timestamp. TODO: emit seekFinished when all streams done the seeking?
- Loading branch information
Showing
6 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/****************************************************************************** | ||
QtAV: Media play library based on Qt and FFmpeg | ||
Copyright (C) 2013-2015 Wang Bin <[email protected]> | ||
Copyright (C) 2013-2016 Wang Bin <[email protected]> | ||
* This file is part of QtAV | ||
|
@@ -235,7 +235,7 @@ public Q_SLOTS: | |
void stopped(); | ||
void playing(); | ||
void seekableChanged(); | ||
void seekFinished(); | ||
void seekFinished(); //WARNING: position() now is not the seek finished video timestamp | ||
void fastSeekChanged(); | ||
void bufferProgressChanged(); | ||
void videoCodecPriorityChanged(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/****************************************************************************** | ||
QtAV: Media play library based on Qt and FFmpeg | ||
Copyright (C) 2013-2015 Wang Bin <[email protected]> | ||
Copyright (C) 2013-2016 Wang Bin <[email protected]> | ||
* This file is part of QtAV | ||
|
@@ -82,7 +82,7 @@ void QmlAVPlayer::classBegin() | |
connect(mpPlayer, SIGNAL(stopped()), SLOT(_q_stopped())); | ||
connect(mpPlayer, SIGNAL(positionChanged(qint64)), SIGNAL(positionChanged())); | ||
connect(mpPlayer, SIGNAL(seekableChanged()), SIGNAL(seekableChanged())); | ||
connect(mpPlayer, SIGNAL(seekFinished()), this, SIGNAL(seekFinished()), Qt::DirectConnection); | ||
connect(mpPlayer, SIGNAL(seekFinished(qint64)), this, SIGNAL(seekFinished()), Qt::DirectConnection); | ||
connect(mpPlayer, SIGNAL(bufferProgressChanged(qreal)), SIGNAL(bufferProgressChanged())); | ||
connect(this, SIGNAL(channelLayoutChanged()), SLOT(applyChannelLayout())); | ||
// direct connection to ensure volume() in slots is correct | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters