MODPATH/video/classes/Model/Video.php [ 31 ]
26
27 $response = $request->execute();
28 $body = $response->body();
29
30 $data = json_decode($body, TRUE);
31 if ($data['status'] == 2) {
32 if (isset($data['files']['mp4'])) {
33 $video = $data['files']['mp4'];
34 $orm->duration = round($video['size'] / $video['bitrate']);
35 $orm->width = $video['width'];
36 $orm->height = $video['height'];
-
{PHP internal call}