diff --git a/extensions/SGDEX/Views/OtherNodes/ItemComponents/StandardGridItemComponent/StandardGridItemComponent.brs b/extensions/SGDEX/Views/OtherNodes/ItemComponents/StandardGridItemComponent/StandardGridItemComponent.brs index 8225c33..09cdc98 100644 --- a/extensions/SGDEX/Views/OtherNodes/ItemComponents/StandardGridItemComponent/StandardGridItemComponent.brs +++ b/extensions/SGDEX/Views/OtherNodes/ItemComponents/StandardGridItemComponent/StandardGridItemComponent.brs @@ -18,7 +18,7 @@ sub onContentSet() ' contentSetLine is field to check if text is set to label setLabelDataOrHide(m.line1, content.shortDescriptionLine1) setLabelDataOrHide(m.line2, content.shortDescriptionLine2) - setDurationBarData(content.length, content.bookmarkposition, content.hideItemDurationBar <> true) + setDurationBarData(content.length, content.playStart, content.hideItemDurationBar <> true) updateLabelsLayout() end if end sub @@ -103,10 +103,10 @@ sub setLabelDataOrHide(label as Object, text as String) end if end sub -sub setDurationBarData(length as Integer,BookmarkPosition as Integer, showDurationBar as Boolean) - if showDurationBar and length > 0 and BookmarkPosition > 0 and bookmarkPosition < length +sub setDurationBarData(length as Integer, playStart as Integer, showDurationBar as Boolean) + if showDurationBar and length > 0 and playStart > 0 and playStart < length m.durationBar.length = length - m.durationBar.BookmarkPosition = BookmarkPosition + m.durationBar.playStart = playStart m.durationBar.visible = true m.durationBar.scale = [1,1] else diff --git a/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.brs b/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.brs index c94a694..02a29f4 100644 --- a/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.brs +++ b/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.brs @@ -28,9 +28,9 @@ Sub OnBackgroundColorChanged() end Sub 'update progress on duration bar -Sub UpdateBookmark() - if m.top.length > 0 AND m.top.length > m.top.BookmarkPosition - progress = Int(m.top.BookmarkPosition / m.top.length * 100) +Sub UpdatePlayStart() + if m.top.length > 0 AND m.top.length > m.top.playStart + progress = Int(m.top.playStart / m.top.length * 100) if progress > 100 progress = 100 else if progress < 0 diff --git a/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.xml b/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.xml index 34acb30..c775b64 100644 --- a/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.xml +++ b/extensions/SGDEX/Views/OtherNodes/Views/DurationBar/DurationBar.xml @@ -13,9 +13,9 @@ - + - +