function brightcove_video_cache_set in Brightcove Video Connect 6
Same name and namespace in other branches
- 6.2 brightcove.module \brightcove_video_cache_set()
- 7.2 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.
1 call to brightcove_video_cache_set()
- brightcove_cck_upload_form_submit in brightcove_cck/
brightcove_cck.module - Submit callback for brightcove_cck_upload_form.
File
- ./
brightcove.module, line 413 - 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;
}