From 8c72258879858fb461595d4b84b1a73c20be884c Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 31 Dec 2023 23:08:58 -0500 Subject: [PATCH] Add TODO --- playlet-lib/src/components/VideoPlayer/VideoContentTask.bs | 1 + playlet-lib/src/components/VideoPlayer/VideoPlayer.bs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs b/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs index 4ad56342..c896921d 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs @@ -165,6 +165,7 @@ function SetCaptions(metadata as object, service as object, contentNode as objec return end if ' TODO:P2 we don't need to read and parse this every time + ' TODO:P2 filter out languages that can't render properly on Roku isoLanguageList = ParseJson(ReadAsciiFile("libpkg:/config/ISO-639-1-to-ISO-639-2T.json5")) instance = service.GetInstance() diff --git a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs index 2a7d6ef8..1002f637 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs @@ -139,6 +139,9 @@ function OnControlChange() end if end function +' TODO:P2 investigate timeouts caused by control="stop" being synchrounous and too slow +' See if `asyncStopSemantics` would fix this +' Test if stopping a video asynchrnously and loading another one immediately works or not function OnVideoPlayerStateChange() as void state = m.top.state content = m.top.content