Add Channel support (#144)

* Add Channel support

* Cross fade

* add todo
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-09-15 17:34:07 -04:00
1 parent 38a054a46a
commit f452bf23de
16 files changed
+347 -60

No files matched your search

@@ -9,7 +9,6 @@ import "pkg:/components/VideoFeed/FeedLoadState.bs"
import "pkg:/source/utils/ErrorUtils.bs"
import "pkg:/components/Dialog/DialogUtils.bs"
' TODO:P2 use already loaded thumbnail, and crossfade to highres version (using same Poster)
function Init()
m.log = new log.Logger("PlaylistView")
@@ -47,7 +46,8 @@ function OnContentSet() as void
m.updatedLabel.text = content.updatedText
m.descriptionLabel.text = content.description
' TODO:P2 cross fade
' We use two Posters to cross fade from the low res thumbnail to the high res thumbnail.
' We can't use a single Poster because we're using the blendColor. There's no loadingBitmapBlendColor.
m.backgroundSmall.uri = content.thumbnail
m.background.uri = content.thumbnailBackground