NSMutableDictionary * headers = [NSMutableDictionary dictionary];
RequestType = @"http://"
BaseUrl =@"video.haohaohao.com" 这个是你的header
[headers setObject:[NSString stringWithFormat:@"%@%@",RequestType,BaseUrl] forKey:@"Referer"];
self.urlAsset = [AVURLAsset URLAssetWithURL:self.videoURL options:@{@"AVURLAssetHTTPHeaderFieldsKey" : headers}];
网友评论