Buffer audio when waiting data in streaming.

This commit is contained in:
John Preston
2019-02-21 17:40:09 +04:00
parent e5cd7e6d40
commit 3b369fc98e
20 changed files with 188 additions and 49 deletions
+2 -1
View File
@@ -326,7 +326,8 @@ void StartStreaming(
auto options = Media::Streaming::PlaybackOptions();
options.speed = 1.;
options.position = (document->duration() / 2) * crl::time(1000);
//options.syncVideoByAudio = false;
//options.position = (document->duration() / 2) * crl::time(1000);
player->init(options);
player->updates(
) | rpl::start_with_next_error_done([=](Update &&update) {