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
This feature should allow a user to easily implement a HTML5 production-ready video player into his own web page.
Example use case
User makes an HTTP request to POST /players player options included, to create a new player
User retrieve the newly created player if needed by making a request to GET /players/:player_uuid
User can now make a request to GET /players/:player_uuid/oembed?url=media_url&format=json to embed the player in its own page
Implementation
Routes
POST /players - Create a player
PUT /players - Edit a player
DELETE /players - Delete a player
GET /players - Retrieve all players
GET /players/:uuid - Get one player
GET /players/:uuid/oembed - Get oEmbed object
GET /players/:uuid/embed/:media_uuid - Get HTML5 player to embed
Player generation
Solution 1 : store static assets in the VCS, then embed them in the binary then serve the content as a single HTML response. Assets include : videojs-css, videojs-js. VideoJS options are altered according to the player's options.
Example oEmbed response
GET /players/fa3b3ec9-2388-4196-96cc-d7ca1a86f3da/oembed?media=fa3b3ec9-2388-4196-96cc-d7ca1a86f3da&format=json
This feature should allow a user to easily implement a HTML5 production-ready video player into his own web page.
Example use case
POST /players
player options included, to create a new playerGET /players/:player_uuid
GET /players/:player_uuid/oembed?url=media_url&format=json
to embed the player in its own pageImplementation
Routes
POST /players
- Create a playerPUT /players
- Edit a playerDELETE /players
- Delete a playerGET /players
- Retrieve all playersGET /players/:uuid
- Get one playerGET /players/:uuid/oembed
- Get oEmbed objectGET /players/:uuid/embed/:media_uuid
- Get HTML5 player to embedPlayer generation
Example oEmbed response
GET /players/fa3b3ec9-2388-4196-96cc-d7ca1a86f3da/oembed?media=fa3b3ec9-2388-4196-96cc-d7ca1a86f3da&format=json
We'll only support JSON format for now. XML will come later.
Player options
References
The text was updated successfully, but these errors were encountered: