|
@@ -32,12 +32,17 @@ class MeasureController implements IMeasureController {
|
|
|
IApplication? _application;
|
|
|
int _recursive = 0;
|
|
|
|
|
|
+ final bool enableLoopPlayback;
|
|
|
+
|
|
|
late final MeasureImagesFetchFunc _imagesFetchFunc;
|
|
|
final measureData = Get.find<MeasureDataController>();
|
|
|
final measure3DViewController = Get.find<Measure3DViewController>();
|
|
|
|
|
|
- MeasureController(String code,
|
|
|
- {required MeasureImagesFetchFunc imagesFetchFunc}) {
|
|
|
+ MeasureController(
|
|
|
+ String code, {
|
|
|
+ required MeasureImagesFetchFunc imagesFetchFunc,
|
|
|
+ this.enableLoopPlayback = false,
|
|
|
+ }) {
|
|
|
_examInfo = ExamInfo(code);
|
|
|
_imagesFetchFunc = imagesFetchFunc;
|
|
|
}
|
|
@@ -109,7 +114,9 @@ class MeasureController implements IMeasureController {
|
|
|
_playerController?.dispose();
|
|
|
Get.delete<IPlayerController>();
|
|
|
_windowSetState(index);
|
|
|
- _playerController = Get.put<IPlayerController>(VidPlayerController(url));
|
|
|
+ _playerController = Get.put<IPlayerController>(
|
|
|
+ VidPlayerController(url)..enableLoop = enableLoopPlayback,
|
|
|
+ );
|
|
|
playerController.firstFrameLoaded.addListener(_onFirstFrameLoaded);
|
|
|
playerController.frameUpdated.addListener(_onFrameUpdated);
|
|
|
playerController.eventHandler.addListener(_onPlayerEnvent);
|