Skip to content

Commit 317a047

Browse files
authored
Update README.md
1 parent c117899 commit 317a047

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,18 @@ FFMpeg::open('steve_howe.mp4')
734734
->withRotatingEncryptionKey($callable, 10);
735735
```
736736

737+
Some filesystems, especially on cheap and slow VPSs, are not fast enough to handle the rotating key. This may lead to encoding exceptions, like `No key URI specified in key info file`. One possible solution is to use a different storage for the keys, which you can specify using the `temporary_files_encrypted_hls` configuration key. On UNIX-based systems, you may use a `tmpfs` filesystem to increase read/write speeds:
738+
739+
```php
740+
// config/laravel-ffmpeg.php
741+
742+
return [
743+
744+
'temporary_files_encrypted_hls' => '/dev/shm'
745+
746+
];
747+
```
748+
737749
### Protecting your HLS encryption keys
738750

739751
To make working with encrypted HLS even better, we've added a `DynamicHLSPlaylist` class that modifies playlists on-the-fly and specifically for your application. This way, you can add your authentication and authorization logic. As we're using a plain Laravel controller, you can use features like [Gates](https://laravel.com/docs/master/authorization#gates) and [Middleware](https://laravel.com/docs/master/middleware#introduction).

0 commit comments

Comments
 (0)