function brightcove_player_load in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_player_load()
- 7.2 brightcove.module \brightcove_player_load()
- 7.3 brightcove.module \brightcove_player_load()
- 7.4 brightcove.module \brightcove_player_load()
- 7.5 brightcove.module \brightcove_player_load()
Load a player.
Parameters
string $id:
string $client_id:
Return value
bool|\Brightcove\Object\Player\Player
File
- ./
brightcove.module, line 2777 - 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_load($id, $client_id = NULL) {
$players = brightcove_player_load_all($client_id);
foreach ($players as $player) {
if ($player
->getId() === $id) {
return $player;
}
}
return FALSE;
}