WARNING: This API has been deprecated and should not be used for new projects. Support for write methods were discontinued on June 30, 2017, and read methods will be discontinued on December 31, 2017. Click here for more information.
Media API Sample: find_playlists_for_player_id
This example uses the
find_playlists_for_player_id() READ method, which allows you to retrieve data for the playlists assigned to a particular player.
Note: making this call from the client side exposes your read token, which could allow a developer to access all video data from your account. If you use the READ token with URL access, that developer could even download copies of all your video files. Brightcove recommends making all Media API calls from a server-side application if possible.
ID of the player you want to find playlists for: (required)
For the video fields to appear in the response data, you must select the
videos field in the Playlist fields to return selection.
Playlist fields to return: Video fields to return:
You must use a read token with URL access to return
The following fields are not returned unless they are explicityly included in the
Media API Request
Below is the request sent to the Media API service:
Below is the JSON data returned by the request:
Below is simple HTML output of the playlist data using the Handlebars templating system: