Thread: Kvs s3
View Single Post
Old 10-23-2023, 05:59 PM  
Azamat
Confirmed User
 
Azamat's Avatar
 
Industry Role:
Join Date: Dec 2018
Location: Ulaanbaatar, Mongolia
Posts: 59
U will basically setup the minio and copy your files to that storage server with your file naming. Then can use s3 presigned url php file as a class or function.

1. Create a file with aws s3 presigned url function. For example awss3.php, and use your credentials to create presigned url, this is the example link, and u can also search github. https://docs.aws.amazon.com/sdk-for-...igned-url.html
2. Include or require the awss3.php inside kvs blocks/list_videos/list_videos.php
3. Pass video id or name to as param to presigned url function to retrieve temporary link for your storage videos.
4. Adjust kvs template file to show only presigned url's for videos link and preview.
__________________
KVS, Mechbunny, API's, Elevatedx, NATS, dating sites, Symfony, Laravel, LAMP stack development.
Azamat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote