X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?p=living-lab-site.git;a=blobdiff_plain;f=application%2Fhelpers%2Fvideo_helper.php;fp=application%2Fhelpers%2Fvideo_helper.php;h=b8458985bce91f39fdb69a06a5353478a2aaa922;hp=64efee576f7a433fb1daf85584e8aa69d18b5162;hb=8269d73157518cae557446f311e1ab013aa8915c;hpb=080b37a97e93691b3ba1c4aa3982a143167115a7 diff --git a/application/helpers/video_helper.php b/application/helpers/video_helper.php index 64efee5..b845898 100644 --- a/application/helpers/video_helper.php +++ b/application/helpers/video_helper.php @@ -100,5 +100,26 @@ function get_closest_res($haystack, $needle, $access_function = NULL) return $i_min; } +/** + * Returns information about an Audio/Video file. + * + * @param string $file_name Audio/Video file + * @return dictionary a dictionary of audio/video properties with keys: + * + */ +function get_av_info($file_name) +{ + // TODO use ffprobe to return width, height, DAR, duration and size of a video + + return array('width'=> 800, 'height'=> 600, 'dar'=> '16:9', + 'duration'=> '00:10', 'size'=> 1101693); +} + /* End of file video_helper.php */ /* Location: ./application/helpers/video_helper.php */ \ No newline at end of file