2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix streaming from the middle of the file.

This commit is contained in:
John Preston
2019-02-21 15:51:22 +04:00
parent 99d05ba967
commit e5cd7e6d40
5 changed files with 16 additions and 4 deletions

View File

@@ -326,6 +326,7 @@ void StartStreaming(
auto options = Media::Streaming::PlaybackOptions();
options.speed = 1.;
options.position = (document->duration() / 2) * crl::time(1000);
player->init(options);
player->updates(
) | rpl::start_with_next_error_done([=](Update &&update) {