我想从需要 OAuth2 身份验证的源流式传输音频文件,这是我的代码,但它不起作用。
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url];
[req setValue:[NSString stringWithFormat:@"Bearer %@", accessToken] forHTTPHeaderField:@"Authorization"];
player = [AVPlayer playerWithURL:req.URL];
[player play];
你能帮忙吗?