Closed magic-thomas closed 1 year ago
I just made function to replace URI.
function replace_encryption_key_path($v_key, $filename) {
$content = File::get($filename);
$org = '#EXT-X-KEY:METHOD=AES-128,URI="';
$replace = $org . "/keys/" . $v_key . "/" ;
if( ! Str::contains( $content, $replace ) ) {
$replaced = Str::replace( $org , $replace, $content);
File::put($filename, $replaced);
}
}
I wish It can be done with FFMPEG chain method.
Hi
I would like not to use laravel route for playing video.
I want to use just nginx rtmp hls module because of performance issue.
Now I can get this kind of m3u8 file content.
But I want to get the full URI something like this.
How can I do insert 'http://domain.com/keys/' in the m3u8 file for all key's URI ?
Is it possible with this package ?