You are here

function videojs_hls_deliver in Video.js (HTML5 Video Player) 7.2

Same name and namespace in other branches
  1. 7.3 modules/videojs_hls/videojs_hls.pages.inc \videojs_hls_deliver()

Delivery callback for the m3u8/% path.

1 string reference to 'videojs_hls_deliver'
videojs_hls_menu in modules/videojs_hls/videojs_hls.module
Implements hook_menu().

File

modules/videojs_hls/videojs_hls.pages.inc, line 30
Menu callbacks for the Video.js HTTP Live Streaming module.

Code

function videojs_hls_deliver($page_callback_result) {
  if (is_int($page_callback_result)) {
    drupal_deliver_html_page($page_callback_result);
    return;
  }
  drupal_add_http_header('Content-Type', 'application/vnd.apple.mpegurl; charset=utf-8');
  echo $page_callback_result;
}