diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeVideoQueue.bs b/playlet-lib/src/components/Services/LoungeService/LoungeVideoQueue.bs index 96971834..03ee5b56 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeVideoQueue.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeVideoQueue.bs @@ -77,6 +77,16 @@ namespace LoungeVideoQueue end if if StringUtils.IsNullOrEmpty(videoId) + ' TODO:P1 - Handle the case where a video is removed from the queue + ' with an index lower than the current index. In this case, the + ' video queue index is not updated, and we end up highlighting the wrong + ' video in the queue (the next video in the queue is highlighted instead of + ' the video that was previously highlighted). This also leads to skipping + ' a video that's supposed to play next. + ' When a video is removed from the queue: + ' - There's no videoId + ' - There's no currentIndex + ' - eventDetails is of the form {"eventType":"VIDEO_REMOVED","videoId":""} eventDetails = playlistData[FIELD_EVENT_DETAILS] if IsString(eventDetails) eventDetails = ParseJson(eventDetails)