2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Support streaming playback speed 0.5 - 2.

This commit is contained in:
John Preston
2019-02-21 13:17:25 +04:00
parent 26ea6c4e63
commit ec9512899e
11 changed files with 123 additions and 33 deletions

View File

@@ -324,9 +324,9 @@ void StartStreaming(
base::take(video) = nullptr;
});
player->init(
(document->isAudioFile() ? Mode::Audio : Mode::Both),
0);
auto options = Media::Streaming::PlaybackOptions();
options.speed = 1.;
player->init(options);
player->updates(
) | rpl::start_with_next_error_done([=](Update &&update) {
update.data.match([&](Information &update) {