function wp_lightbox_mp4_video_display($link, $poster, $width, $height, $source) { $browser = new WP_LIGHTBOX_CHECK_BROWSER(); $platform_name = $browser->getPlatform(); $wp_lightbox_output = ''; $anchor_type = "image"; if ($platform_name == "iPad" || $platform_name == "iPhone") { $wp_lightbox_output .= get_html5_video_embed_code($link, $poster, $width, $height, $source, $anchor_type); } else { $wp_lightbox_output .= wp_lightbox_flowplayer_video_display($link, $width, $height, $source); } return $wp_lightbox_output; }
function wp_lightbox_flowplayer_video_handler($atts) { global $wp_lightbox_config; if ($wp_lightbox_config->getValue('wp_lightbox_flowplayer_checkbox') == '') { $wp_lightbox_output .= '<div class="wp_lightbox_error_message">'; $wp_lightbox_output .= 'You do not have flowplayer checkbox enabled in the settings'; $wp_lightbox_output .= '</div>'; return $wp_lightbox_output; } extract(shortcode_atts(array('link' => '', 'width' => '', 'height' => '', 'source' => ''), $atts)); return wp_lightbox_flowplayer_video_display($link, $width, $height, $source); }