以前はローカルからビデオ ファイルにアクセスしていました。現在、aws s3 にあるビデオ ファイルにアクセスしようとしています。
私の古いhtml要素は
<source class="video-source" type="video/mp4" src="~/Content/videos/MyVideo.mp4" />
私は次のようなことができるはずです
<source class="video-source" type="video/mp4" src="AwsInfo" />
また、コントローラーに次のメソッドがあります
using (AmazonS3Client client = new AmazonS3Client())
{
var bucketObject = new GetObjectRequest
{
BucketName = "MyBucketName",
Key = "MyKey"
};
var v = client.GetObject(bucketObject); //I believe this would give me any information I need
}