You are here

function brightcove_player_list in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.2 brightcove.module \brightcove_player_list()
  2. 7.3 brightcove.module \brightcove_player_list()
  3. 7.4 brightcove.module \brightcove_player_list()
  4. 7.5 brightcove.module \brightcove_player_list()
  5. 7.6 brightcove.module \brightcove_player_list()

Get players list.

Parameters

null|string $client_id:

Return value

array

4 calls to brightcove_player_list()
brightcove_media_file_formatter_video_settings in brightcove_media/brightcove_media.module
The brightcove_media_video file formatter settings callback.
_brightcove_field_playlist_widget_form in ./brightcove_field.playlist.inc
Helper function to return the playlist widget form.
_brightcove_field_video_widget_form in ./brightcove_field.video.inc
Helper function to return the video widget form.
_filter_brightcove_settings in ./brightcove.module
Settings callback for the brightcove filter.

File

./brightcove.module, line 2825
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_player_list($client_id = NULL) {
  $players = brightcove_player_load_all($client_id);
  $return = [];
  foreach ($players as $player) {
    $return[$player
      ->getId()] = $player
      ->getName();
  }
  return $return;
}