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/session.php | |
parent | 228e192f64c073afe8e3cd1523d0a975dcf26557 (diff) | |
download | istreamdev-459abaa2386fd1935abf8b763aee046222b13a01.tar.gz istreamdev-459abaa2386fd1935abf8b763aee046222b13a01.tar.bz2 |
Fixed video streaming
Diffstat (limited to 'bin/session.php')
-rwxr-xr-x | bin/session.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/session.php b/bin/session.php index ccf12fe..09d793f 100755 --- a/bin/session.php +++ b/bin/session.php @@ -122,21 +122,23 @@ function sessiongetinfo($session) $info['type'] = $type; $info['mode'] = $mode; + // Get info + $getid3 = new getID3; + $fileinfo = $getid3->analyze('../ram/' .$session .'/thumb.png'); + $info['thumbwidth'] = $fileinfo['video']['resolution_x']; + $info['thumbheight'] = $fileinfo['video']['resolution_y']; + // Type info switch ($type) { case 'tv': $info['name'] = $channame; - $info['thumbwidth'] = 80; - $info['thumbheight'] = 80; $channum = vdrgetchannum($channame); list($info['now_time'], $info['now_title'], $info['now_desc']) = vdrgetchanepg($channum, 1); list($info['next_time'], $info['next_title'], $info['next_desc']) = vdrgetchanepg($channum, 0); break; case 'rec': $info['channel'] = $channame; - $info['thumbwidth'] = 80; - $info['thumbheight'] = 80; list($channame, $info['name'], $info['desc'], $info['recorded']) = vdrgetrecinfo($url); break; case 'vid': @@ -146,7 +148,7 @@ function sessiongetinfo($session) $info['format'] = $infovid['format']; $info['video'] = $infovid['video']; $info['audio'] = $infovid['audio']; - $info['resiolution'] = $infovid['resiolution']; + $info['resolution'] = $infovid['resolution']; break; } |