Merge branch 'feature/PSDK-1152/autostart' into 'develop'

PSDK-1152 - Правка автостарта

See merge request mobile/Flutter/nut_player!88
This commit is contained in:
Андрей Геращенко
2023-12-06 17:19:35 +03:00
@@ -179,7 +179,6 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
errorDescription: null,
);
_applyVolume();
_applyPlayPause();
break;
case VideoEventType.completed:
pause().then((void pauseResult) => seek(value.duration));
@@ -196,8 +195,7 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
break;
case VideoEventType.isPlayingStateUpdate:
if (event.isPlaying ?? false) {
value =
value.copyWith(isPlaying: event.isPlaying, isCompleted: false);
value = value.copyWith(isPlaying: event.isPlaying, isCompleted: false);
} else {
value = value.copyWith(isPlaying: event.isPlaying);
}