function brightcove_video_cache_set in Brightcove Video Connect 7.2
Same name and namespace in other branches
- 6.2 brightcove.module \brightcove_video_cache_set()
- 6 brightcove.module \brightcove_video_cache_set()
Caches the status of a video for faster validation.
This function also helps work around the lag in Brightcove API when videos are uploaded.
Parameters
$id: The Brightcove identifier for the video.
$video: The video object to be cached.
2 calls to brightcove_video_cache_set()
- ajax_brightcove_media_upload_callback in brightcove_media/
brightcove_media.module - Ajax callback for upload form
- ajax_upload_dialog_close_callback in brightcove_field/
brightcove_field.module
File
- ./
brightcove.module, line 435 - 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_video_cache_set($id, $video) {
if (!isset($_SESSION['brightcove'])) {
$_SESSION['brightcove'] = array();
}
$id = (int) $id;
$_SESSION['brightcove']["video_{$id}"] = $video;
}