I am trying to utilize HTML5 to show MP4 videos. The files are located within an AWS S3 Bucket without public access. Through the use of Roles, in AWS, the website is allowed access to the S3 bucket. I have enabled Encrypt file path and have the following in Custom View Tag
where table = help_app, field = file1_private
following is the generated output
Unfortunately the video does not load. Any help would be greatly appreciated.
Does the file name you save in the field have .mp4 extension? You may press F12 in Chrome, check the HTTP response of the API action, see if data is returned and check the content type.
//location of private application help mp4 files in aws s3
$folder_file = “app_help_files/” . $this->file1_private->CurrentValue;
$bucket = “bucket_name”;
//replace HrefValue with presigned url from global function in order to load private s3 file
$this->file1_private->HrefValue = PreSignUrl($folder_file,$bucket);