Skip to content

Commit

Permalink
Support for DASH and Flash Access
Browse files Browse the repository at this point in the history
  • Loading branch information
codingstyle committed Jun 26, 2014
1 parent 1ed082f commit 34a674e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CloudKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function get_stream_url($args)
$filename = '';
$protocol = null;
extract($args);
if (!in_array($protocol, array(null, "hls", "rtmp", "hps", "http", "hds", "ss"))) {
if (!in_array($protocol, array(null, "hls", "rtmp", "hps", "http", "hds", "ss", "dash"))) {
throw new CloudKey_InvalidParamException(sprintf('%s is not a valid streaming protocol', $protocol));
}
if ($extension == '')
Expand All @@ -129,7 +129,7 @@ public function get_stream_url($args)
$protocol = 'http';
}

if ($asset_name == 'abs')
if (strpos($asset_name, 'abs') === 0)
{
$extension = '';
if ($protocol == null)
Expand Down

0 comments on commit 34a674e

Please sign in to comment.