Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a page to display user's videos #5

Open
StephaneL-OR opened this issue Aug 10, 2021 · 0 comments
Open

Add a page to display user's videos #5

StephaneL-OR opened this issue Aug 10, 2021 · 0 comments
Labels
enhancement New feature or request must have

Comments

@StephaneL-OR
Copy link
Contributor

Steps :

  1. Configure a new menu entry in the menuConfig.js file with the following entries :
    (see explanation in file)
  • main entry : Videos
  • sub-entry : edit
  1. 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
  1. 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

video url to use : https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8

  • 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
@StephaneL-OR StephaneL-OR added enhancement New feature or request must have labels Aug 10, 2021
@netcosports netcosports deleted a comment from ClementCHA Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request must have
Projects
None yet
Development

No branches or pull requests

1 participant