2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Play notification sound using Media::Audio::Track.

This commit is contained in:
John Preston
2017-05-03 16:01:15 +03:00
parent 6f89d01452
commit 2e816f2a67
22 changed files with 169 additions and 293 deletions

View File

@@ -1562,7 +1562,7 @@ void MediaView::restartVideoAtSeekPosition(TimeMs positionMs) {
Media::Player::TrackState state;
state.state = Media::Player::State::Playing;
state.position = _videoPositionMs;
state.duration = _videoDurationMs;
state.length = _videoDurationMs;
state.frequency = _videoFrequencyMs;
updateVideoPlaybackState(state);
}
@@ -1606,7 +1606,7 @@ void MediaView::onVideoPlayProgress(const AudioMsgId &audioId) {
}
auto state = Media::Player::mixer()->currentVideoState(_gif->playId());
if (state.duration) {
if (state.length) {
updateVideoPlaybackState(state);
}
@@ -1635,7 +1635,7 @@ void MediaView::updateSilentVideoPlaybackState() {
state.state = Media::Player::State::Playing;
}
state.position = _videoPositionMs;
state.duration = _videoDurationMs;
state.length = _videoDurationMs;
state.frequency = _videoFrequencyMs;
updateVideoPlaybackState(state);
}