Permalink
Browse files

Merge pull request #66 from saltybeagle/master

Send Content-type: text/vtt for the video text track files. Closes #65
  • Loading branch information...
kabel committed Jan 23, 2012
2 parents 9ad73ac + 39e5761 commit 68b114441f4d5083c141e85ab7c114236b6f0309
Showing with 4 additions and 0 deletions.
  1. +3 −0 src/UNL/MediaHub/Controller.php
  2. +1 −0 src/UNL/MediaHub/Router.php
@@ -229,6 +229,9 @@ function preRun($cached)
case 'json':
header('Content-type: application/json');
break;
+ case 'vtt':
+ header('Content-type: text/vtt');
+ break;
default:
break;
}
@@ -32,6 +32,7 @@ public static function getRoute($requestURI)
break;
case preg_match('/^media\/([0-9]+)\/vtt$/', $requestURI, $matches):
$options['view'] = 'media_vtt';
+ $options['format'] = 'vtt';
$options['id'] = $matches[1];
break;
case preg_match('/^media\/([0-9]+)\/image(\.[\w]+)?$/', $requestURI, $matches):

0 comments on commit 68b1144

Please sign in to comment.