You are here

public function video_ffmpeg_php::get_playtime in Video 7

Return the playtime seconds of a video

Overrides video_ffmpeg::get_playtime

1 call to video_ffmpeg_php::get_playtime()
video_ffmpeg_php::generate_thumbnails in transcoders/video_ffmpeg_php.inc
Generate video thumbs.

File

transcoders/video_ffmpeg_php.inc, line 95

Class

video_ffmpeg_php

Code

public function get_playtime($video) {
  $movie = new ffmpeg_movie($video);
  return $movie
    ->getDuration();
}