2013-08-16 3 views
0

로컬에서 이전에 비디오 파일에 액세스하고 있었으므로 이제 aws s3에있는 비디오 파일에 액세스하려고합니다.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 
} 

답변

0

I 설치 Amazon CloudFront에서 다음과 같은 방법 그러면 URL과 키를 통해 액세스 할 수있는 도메인이 제공됩니다.

<source class="video-source" type="video/mp4" src="https://myUrl.cloudfront.net/myKey" /> 
관련 문제