function wp_lightbox_protected_s3_video_display($name, $bucket, $poster, $width, $height, $source)
{
    $browser = new WP_LIGHTBOX_CHECK_BROWSER();
    $platform_name = $browser->getPlatform();
    $wp_lightbox_output = '';
    if ($platform_name == "iPad" || $platform_name == "iPhone") {
        $wp_lightbox_output .= wp_lightbox_html5_protected_s3_video_display($name, $bucket, $poster, $width, $height, $source);
    } else {
        $wp_lightbox_output .= wp_lightbox_flowplayer_protected_s3_video_display($name, $bucket, $width, $height, $source);
    }
    return $wp_lightbox_output;
}
Example #2
0
function wp_lightbox_html5_protected_s3_video_handler($atts)
{
    global $wp_lightbox_config;
    if ($wp_lightbox_config->getValue('wp_lightbox_html5_checkbox') == '') {
        $wp_lightbox_output .= '<div class="wp_lightbox_error_message">';
        $wp_lightbox_output .= 'You do not have HTML5 checkbox enabled in the settings';
        $wp_lightbox_output .= '</div>';
        return $wp_lightbox_output;
    }
    extract(shortcode_atts(array('name' => '', 'bucket' => '', 'poster' => '', 'width' => '', 'height' => '', 'source' => ''), $atts));
    return wp_lightbox_html5_protected_s3_video_display($name, $bucket, $poster, $width, $height, $source);
}