Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-07-28 01:32:37 +03:00
parent eb7d7ce1be
commit ab5d37068d
5 changed files with 37 additions and 24 deletions

View File

@@ -290,7 +290,12 @@ final class SharedMediaPlayer {
player.play()
}
case let .instantVideo(node):
node.playOnceWithSound(playAndRecord: controlPlaybackWithProximity)
if let scheduledStartTime = scheduledStartTime {
node.seek(scheduledStartTime)
node.playOnceWithSound(playAndRecord: controlPlaybackWithProximity)
} else {
node.playOnceWithSound(playAndRecord: controlPlaybackWithProximity)
}
}
case .pause:
playbackItem.pause()