Bug fixes
This commit is contained in:
1 parent
3312bbc56e
commit
9e47d4d42e
3 files changed
+32
-7
No files matched your search
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- User interface for the Queue: Press and hold `Options (*)` to show the queue
|
- User interface for the Queue: Press and hold `Options (*)` to show the queue
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Crash when video player has no content
|
||||||
|
- Execution timeout on cirlce posters
|
||||||
|
|
||||||
## [0.15.1] - 2023-11-10
|
## [0.15.1] - 2023-11-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -7,17 +7,27 @@ function UpdateMaskSize()
|
|||||||
width = m.top.width
|
width = m.top.width
|
||||||
height = m.top.height
|
height = m.top.height
|
||||||
|
|
||||||
m.top.maskSize = [width * GetScaleFactor(), height * GetScaleFactor()]
|
m.top.maskSize = [width * GetUIScaleFactor(), height * GetUIScaleFactor()]
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' MaskGroup component do not scale with with UI resolution
|
' MaskGroup component do not scale with with UI resolution
|
||||||
function GetScaleFactor() as float
|
function GetUIScaleFactor() as float
|
||||||
if m.scaleFactor <> invalid
|
if m.uiScaleFactor <> invalid
|
||||||
return m.scaleFactor
|
return m.uiScaleFactor
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m.global.uiScaleFactor <> invalid
|
||||||
|
return m.global.uiScaleFactor
|
||||||
|
end if
|
||||||
|
|
||||||
deviceInfo = CreateObject("roDeviceInfo")
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
uiResolutionWidth = deviceInfo.GetUIResolution().width
|
uiResolutionWidth = deviceInfo.GetUIResolution().width
|
||||||
' divide by 1280 because we have ui_resolutions=hd in manifest
|
' divide by 1280 because we have ui_resolutions=hd in manifest
|
||||||
m.scaleFactor = uiResolutionWidth / 1280
|
m.uiScaleFactor = uiResolutionWidth / 1280
|
||||||
return m.scaleFactor
|
|
||||||
|
if not m.global.hasField("uiScaleFactor")
|
||||||
|
m.global.addField("uiScaleFactor", "float", false)
|
||||||
|
end if
|
||||||
|
m.global.uiScaleFactor = m.uiScaleFactor
|
||||||
|
return m.uiScaleFactor
|
||||||
end function
|
end function
|
||||||
@@ -185,8 +185,18 @@ function OnVideoPlayerStateChange() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if state = "finished"
|
if state = "finished"
|
||||||
|
if content = invalid
|
||||||
|
m.container@.watchedVideosClear(invalid)
|
||||||
|
VideoUtils.CloseVideo()
|
||||||
|
end if
|
||||||
|
|
||||||
metadata = content.metadata
|
metadata = content.metadata
|
||||||
if metadata <> invalid and not PlayNext(metadata.recommendedVideos)
|
if metadata = invalid
|
||||||
|
m.container@.watchedVideosClear(invalid)
|
||||||
|
VideoUtils.CloseVideo()
|
||||||
|
end if
|
||||||
|
|
||||||
|
if not PlayNext(metadata.recommendedVideos)
|
||||||
m.container@.watchedVideosClear(invalid)
|
m.container@.watchedVideosClear(invalid)
|
||||||
VideoUtils.CloseVideo()
|
VideoUtils.CloseVideo()
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user