How to get Player ID and Player Key using Brightcove - 7.x-6.x

Created on 28 August 2018, over 6 years ago
Updated 23 January 2025, 3 months ago

This is how I got player ID and player Key for brightcove player in 7.x-5.x.

$player = db_select('brightcove_player', 'bcp')
    ->fields('bcp')
    ->condition('name', 'chromeless_video_player')
    ->execute()
    ->fetchObject();

  if (isset($player->pid)) {
    $bc_settings = array(
      'player_id' => $player->player_id,
      'player_key' => $player->player_key,
    );

    drupal_add_js(array('module_name' => $bc_settings), 'setting');
  }

This is to play the video dynamically on click from thumbnail image. Library used to play the video is https://github.com/carmineolivo/jquery.brightcove-video

After upgrade to 7.x-6.x, brightcove_player table is removed, How do I get the player Key and player ID for the player using the new version?

💬 Support request
Status

Closed: outdated

Version

6.5

Component

Code

Created by

🇮🇳India zuhair_ak Dubai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024