summaryrefslogtreecommitdiff
path: root/includes/inc_files.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_files.php')
-rwxr-xr-xincludes/inc_files.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/inc_files.php b/includes/inc_files.php
index abbbb3d..c3cda85 100755
--- a/includes/inc_files.php
+++ b/includes/inc_files.php
@@ -66,6 +66,15 @@ function mediagetinfostream($stream = "")
return array($title, $info);
}
+function mediagetwidth($file)
+{
+
+ $getid3 = new getID3;
+ $fileinfo = $getid3->analyze($file);
+
+ return $fileinfo['video']['resolution_x'];
+}
+
function mediagettype($file)
{
global $videotypes, $audiotypes;