static function getInfo( $file, $prop, $result, $thumbParams = null, $version = 'latest' ) { $vals = parent::getInfo( $file, $prop, $result, $thumbParams = null ); if( isset( $prop['derivatives'] ) ){ $vals['derivatives'] = WebVideoTranscode::getSources( $file, array( 'nodata', 'fullurl') ); } return $vals; }
function getMediaSources(){ if( !$this->sources ){ // Generate transcode jobs ( and get sources that area already transcoded) // At a minimum this should return the source video file. $this->sources = WebVideoTranscode::getSources( $this->file ); // Check if we have "start or end" times and append the temporal url fragment hash foreach( $this->sources as &$source ){ $source['src'].= $this->getTemporalUrlHash(); } } return $this->sources; }