You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have added a playlist with a single item in the menu items that contain a media item with contentType hub. I have tested a custom playlist screen that redirects to the hub page when the playlist contains a single hub item.
constPlaylistHubRedirect: ScreenComponent<Playlist>=({ data, isLoading })=>{constmedia=getHubMediaFromPlaylist(data);if(data&&!isLoading&&media){return<Navigateto={mediaURL({ media })}replace={true}></Navigate>;}if(!media){return<PlaylistGriddata={data}isLoading={isLoading}/>;}return<Loading/>;};
screenMapping.ts
exportdefaultfunctionregisterCustomScreens(){// Hub is an example screen for the media routermediaScreenMap.registerByContentType(MediaHub,MEDIA_CONTENT_TYPE.hub);playlistScreenMap.register(PlaylistHubRedirect,isHubOnlyPlaylist);// ...
The text was updated successfully, but these errors were encountered:
We have added a playlist with a single item in the menu items that contain a media item with contentType
hub
. I have tested a custom playlist screen that redirects to the hub page when the playlist contains a single hub item.utils/hub.ts
PlaylistHubRedirect.tsx
screenMapping.ts
The text was updated successfully, but these errors were encountered: