Model/EncodeEpisodeJob.php
private function createNewCacheAssetForResolution($episode, $resolution) {
        $asset = $this->getContainer()->get('bprs.asset')->createAsset();
        $asset->setFilekey(
            sprintf('%s.%s',$asset->getFilekey(), $resolution['container'])
        );
        $asset->setAdapter(
            $this->getContainer()->getParameter(
                'oktolab_media.encoding_filesystem'
            )
        );
        $asset->setName($episode->getVideo()->getName());
        $asset->setMimetype($resolution['mimetype']);

        return $asset;
    }
private function createNewCacheAssetForResolution($episode, $resolution) {
        $asset = $this->getContainer()->get('bprs.asset')->createAsset();
        $asset->setFilekey(
            sprintf('%s.%s',$asset->getFilekey(), $resolution['container'])
        );
        $asset->setAdapter(
            $this->getContainer()->getParameter(
                'oktolab_media.encoding_filesystem'
            )
        );
        $asset->setName($episode->getVideo()->getName());
        $asset->setMimetype($resolution['mimetype']);

        return $asset;
    }
private function createNewCacheAssetForResolution ( $ episode , $ resolution ) { $ asset = $ this -> getContainer ( ) -> get ( 'bprs.asset' ) -> createAsset ( ) ; $ asset -> setFilekey ( sprintf ( '%s.%s' , $ asset -> getFilekey ( ) , $ resolution [ 'container' ] ) ) ; $ asset -> setAdapter ( $ this -> getContainer ( ) -> getParameter ( 'oktolab_media.encoding_filesystem' ) ) ; $ asset -> setName ( $ episode -> getVideo ( ) -> getName ( ) ) ; $ asset -> setMimetype ( $ resolution [ 'mimetype' ] ) ; return $ asset ; }
returns an empty asset to be used in an encoding situation.
the filekey, mimetype and adapter are already set for ffmpeg
returns an empty asset to be used in an encoding situation . the filekey mimetype and adapter are already set for ffmpeg