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
Configure a new menu entry in the menuConfig.js file with the following entries :
(see explanation in file)
main entry : Videos
sub-entry : edit
Add a page showing a list of videos :
configure a new endpoint in the api list : /utils/api/api.js (gateway path : 'main-api' , gateway entity name : 'videos') and remove the unused ones
videos must be displayed as table showing the following data : name, status, publication date
⚠️ warning : you need to use pagination and lazy loading, and do not fetch all data
To do so, you need to pass a query to the request : limit=10
The api reply will consist in an object with 2 keys : {items : [] , cursor : {before : string, after : string}}
In order to get the following items, you'll need to additionally add a query 'after' with the received cursor.after data
If there is no more data, after will be null
example : /videos?limit=10&after=NRBdvsdzZA
on a click on a row, we will navigate to the details of the video
Add a page for showing videos details :
use the previous configured endpoint
display the following data using forms input :
text inputs => name, description
date input => publication date
radio => visibility (can be 'public' or 'private')
image => poster (if poster is null, use placeholder of your own)
video player => you will be able to play the url as it is protected, so add a player to play the below url, and display the video url at the bottom of the player
add a submit button that will open a modale displaying the stringified JSON payload that should be posted to API. ⚠️ warning : DO NOT POST TO API ! you might break someone's work
The text was updated successfully, but these errors were encountered:
Steps :
(see explanation in file)
To do so, you need to pass a query to the request : limit=10
The api reply will consist in an object with 2 keys : {items : [] , cursor : {before : string, after : string}}
In order to get the following items, you'll need to additionally add a query 'after' with the received cursor.after data
If there is no more data, after will be
null
example :
/videos?limit=10&after=NRBdvsdzZA
text inputs => name, description
date input => publication date
radio => visibility (can be 'public' or 'private')
image => poster (if poster is null, use placeholder of your own)
video player => you will be able to play the url as it is protected, so add a player to play the below url, and display the video url at the bottom of the player
video url to use : https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8
The text was updated successfully, but these errors were encountered: