こんにちは、Amazon Web サービスで S3 サービスを使用しています。次のコードを実行して、サーバーからデータ ビデオを取得します。
S3GetObjectRequest *getObjectRequest = [[S3GetObjectRequest alloc] initWithKey:video1 withBucket:@"videoFolder"];
S3GetObjectResponse *getObjectResponse = [[AmazonClientManager s3] getObject:getObjectRequest];
それから私は:
NSString *urlString = [[NSString alloc] initWithData:getObjectResponse.body encoding:NSUTF8StringEncoding];
NSURL *url = [[NSURL alloc] initWithString:[urlString autorelease]];
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:url];
player.view.frame = CGRectMake(184, 200, 400, 300);
[self.view addSubview:player.view];
[player play];
これを行った後、黒い画面が表示されました。何か提案があれば、助けてください