2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * @package BLOBStreaming
10 require_once './libraries/common.inc.php';
13 * @var string contains media type of BLOB reference
15 $mediaType = isset($_REQUEST['media_type']) ?
$_REQUEST['media_type'] : NULL;
18 * @var string indicates whether media type is of custom type
20 $customType = isset($_REQUEST['custom_type']) ?
$_REQUEST['custom_type'] : false;
23 * @var string contains BLOB reference
25 $bsReference = isset($_REQUEST['bs_reference']) ?
$_REQUEST['bs_reference'] : NULL;
27 // if media type and BS reference are specified
28 if (isset($mediaType) && isset($bsReference)) {
29 if (isset($customType) && $customType) {
30 $bs_file_path = 'bs_disp_as_mime_type.php' . PMA_generate_common_url(array('reference' => $bsReference, 'c_type' => $mediaType));
32 // Get the BLOB streaming URL
33 $bs_file_path = PMA_BS_getURL($bsReference);
34 if (empty($bs_file_path)) {
35 die(__('No blob streaming server configured!'));
45 // supported media types
50 ?
><embed width
=620 height
=100 src
="<?php echo htmlspecialchars($bs_file_path); ?>" autostart
=true></embed
><?php
53 case 'application/x-flash-video':
55 ?
><embed width
=620 height
=460 src
="<?php echo htmlspecialchars($bs_file_path); ?>" autostart
=true></embed
><?php
64 } // end if (isset($mediaType) && isset($bsReference))