fix LivePhotos not playing
This commit is contained in:
@@ -148,8 +148,10 @@ class _ChewieControllerHookState
|
|||||||
hook.onPaused?.call();
|
hook.onPaused?.call();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.position == value.duration) {
|
if (value.position != const Duration() &&
|
||||||
|
value.position == value.duration) {
|
||||||
WakelockPlus.disable();
|
WakelockPlus.disable();
|
||||||
|
|
||||||
hook.onVideoEnded?.call();
|
hook.onVideoEnded?.call();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user