You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can open a file from a cloud by passing an array of cloud configuration to the `openFromCloud` method.
82
82
83
-
In **[this page](https://video.aminyazdanpanah.com/start/open-clouds)**, you will find some examples of opening a file from **[Amazon Web Services (AWS)](https://aws.amazon.com/)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
83
+
In **[this page](https://video.aminyazdanpanah.com/start/open-clouds)**, you will find some examples of opening a file from **[Amazon S3](https://aws.amazon.com/s3)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
->setHlsTime(5) // Set Hls Time. Default value is 10
142
142
->setHlsAllowCache(false) // Default value is true
143
143
->save();
@@ -147,7 +147,7 @@ $video->HLS()
147
147
#### Encrypted HLS
148
148
The encryption process requires some kind of secret (key) together with an encryption algorithm. HLS uses AES in cipher block chaining (CBC) mode. This means each block is encrypted using the ciphertext of the preceding block. [Learn more](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation)
149
149
150
-
You must specify a path to save a random key on your local machine and also a URL(or a path) to access the key on your website(the key you will save must be accessible from your website). You must pass both these parameters to the `generateRandomKeyInfo` method:
150
+
You must specify a path to save a random key on your local machine and also a URL(or a path) to access the key on your website(the key you will save must be accessible from your website). You must pass both these parameters to the `encryption` method:
151
151
```php
152
152
//A path you want to save a random key on your server
**NOTE:** If you open a file from cloud and did not pass a path to save a file, you will have to pass a local path to the `save` method.
209
+
**NOTE:** If you opened a file from cloud and did not pass a path to save a file, you will have to pass a local path to the `save` method.
210
210
211
211
#### 2. To Clouds
212
212
You can save your files to a cloud by passing an array of cloud configuration to the `save` method.
213
213
214
-
In **[this page](https://video.aminyazdanpanah.com/start/open-clouds)**, you will find some examples of saving files to **[Amazon Web Services (AWS)](https://aws.amazon.com/)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
214
+
In **[this page](https://video.aminyazdanpanah.com/start/open-clouds)**, you will find some examples of saving files to **[Amazon S3](https://aws.amazon.com/s3)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
* 1. Create directory path, path info array, and temporary folders(if it is required).
182
-
* 2. Build object and run FFmpeg to package media content and save on the local machine.
183
-
* 3. If the cloud is specified, entire packaged files will be uploaded to clouds.
184
-
* 4. If files were saved into a tmp folder, then they will be moved to the local path(if the path is specified).
185
-
* 5. Return all video and also streams' metadata and save as a json file on the local machine(it won't save metadata to clouds because of some security reasons).
0 commit comments