From b1b187349f101e875b813d62244984393583fc7c Mon Sep 17 00:00:00 2001 From: tobias <thinkdifferent055@gmail.com> Date: Tue, 23 Nov 2021 19:29:57 +0100 Subject: [PATCH] #173 - Do not unbind position and duration properties of content player pad on loop --- .../plugin/content/pad/ContentPlayerMediaContainer.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerMediaContainer.scala b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerMediaContainer.scala index e7399c9e..63002be0 100644 --- a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerMediaContainer.scala +++ b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerMediaContainer.scala @@ -67,9 +67,11 @@ class ContentPlayerMediaContainer(val content: ContentPlayerPadContent, private[ def stop(): Unit = { ContentPluginMain.playerViewController.stop(this) - content._durationProperty.bind(content.totalDurationBinding()) - content._positionProperty.unbind() - content._positionProperty.set(Duration.ZERO) + if (!content.getPad.getPadSettings.isLoop) { + content._durationProperty.bind(content.totalDurationBinding()) + content._positionProperty.unbind() + content._positionProperty.set(Duration.ZERO) + } } override def toString: String = f"MediaPlayerContainer: $mediaPath" -- GitLab