mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix streaming from the middle of the file.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user