Skip to content
Snippets Groups Projects
Commit b1b18734 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

#173 - Do not unbind position and duration properties of content player pad on loop

parent 1606265b
No related branches found
No related tags found
No related merge requests found
...@@ -67,10 +67,12 @@ class ContentPlayerMediaContainer(val content: ContentPlayerPadContent, private[ ...@@ -67,10 +67,12 @@ class ContentPlayerMediaContainer(val content: ContentPlayerPadContent, private[
def stop(): Unit = { def stop(): Unit = {
ContentPluginMain.playerViewController.stop(this) ContentPluginMain.playerViewController.stop(this)
if (!content.getPad.getPadSettings.isLoop) {
content._durationProperty.bind(content.totalDurationBinding()) content._durationProperty.bind(content.totalDurationBinding())
content._positionProperty.unbind() content._positionProperty.unbind()
content._positionProperty.set(Duration.ZERO) content._positionProperty.set(Duration.ZERO)
} }
}
override def toString: String = f"MediaPlayerContainer: $mediaPath" override def toString: String = f"MediaPlayerContainer: $mediaPath"
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment