You are here

function videojs_hls_render_dynamic in Video.js (HTML5 Video Player) 7.3

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

Menu callback for the m3u8/% path.

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

File

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

Code

function videojs_hls_render_dynamic($filedata) {
  if (empty($filedata)) {
    drupal_not_found();
    exit;
  }
  $files = explode('|', rawurldecode($filedata));
  $content = videojs_hls_create_index($files);
  if (!$content) {
    drupal_not_found();
    exit;
  }
  return $content;
}