Add a TODO
This commit is contained in:
1 parent
2d55569614
commit
87e50e713f
1 file changed
+10
@@ -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":"<videoId>"}
|
||||
eventDetails = playlistData[FIELD_EVENT_DETAILS]
|
||||
if IsString(eventDetails)
|
||||
eventDetails = ParseJson(eventDetails)
|
||||
|
||||
Reference in new issue
Block a user