AWS : how to play a video file from s3 bucket in browser
URI all you have to do is to sign a request like: https://s3.amazonaws.com/yourbucket/key? response-content-disposition=inline& X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAJWWH7EGSUBWE34IQ/20181228/us-east-1/s3/aws4_request& X-Amz-Date=20181228T074135Z& X-Amz-Expires=86400&X-Amz-SignedHeaders=host& X-Amz-Signature=b3143f8442812e176fd61838813a33f53cfd7e198e1c6e68fab5d03d4a642403 and set it as src attribue to a video element. Player component import React, { Component } from 'react'; import PropTypes from 'prop-types'; const AWS_SERVICE = 's3'; const crypto = require('crypto'); Date.prototype.toYMDString = function() { let year = this.getFullYear().toString(); let month = this.getUTCMonth() + 1; if (month < 10) month = "0" + month; let day = this.getUTCDate(); if (day < 10) day = "0" + day; return String(year) + String(month) + S