Merge branch 'feature/PSDK-1152/autostart' into 'develop'
PSDK-1152 - Правка автостарта See merge request mobile/Flutter/nut_player!88
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user