diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 23:48:16 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 23:48:16 +0100 |
commit | 459abaa2386fd1935abf8b763aee046222b13a01 (patch) | |
tree | a1d44001169eeed40c107a21d6308f370ce3ade8 /bin/files.php | |
parent | 228e192f64c073afe8e3cd1523d0a975dcf26557 (diff) | |
download | istreamdev-459abaa2386fd1935abf8b763aee046222b13a01.tar.gz istreamdev-459abaa2386fd1935abf8b763aee046222b13a01.tar.bz2 |
Fixed video streaming
Diffstat (limited to 'bin/files.php')
-rwxr-xr-x | bin/files.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/bin/files.php b/bin/files.php index ba82d21..d87d332 100755 --- a/bin/files.php +++ b/bin/files.php @@ -11,9 +11,18 @@ function mediagetinfostream($stream) $info['name'] = basename($stream); $info['desc'] = ""; $info['duration'] = sec2hms($fileinfo['playtime_seconds']); - $info['format'] = $fileinfo['fileformat']; - $info['video'] = $fileinfo['video']['codec']; - $info['audio'] = $fileinfo['audio']['codec']; + if ($fileinfo['fileformat']) + $info['format'] = $fileinfo['fileformat']; + else + $info['format'] = "unkown"; + if ($fileinfo['video']['codec']) + $info['video'] = $fileinfo['video']['codec']; + else + $info['video'] = "unkown"; + if ($fileinfo['audio']['codec']) + $info['audio'] = $fileinfo['audio']['codec']; + else + $info['audio'] = "unkown"; $info['resolution'] = $fileinfo['video']['resolution_x'] ."x" .$fileinfo['video']['resolution_y']; return $info; |