如何将流倒带 5 秒?
这是我在 viewDidLoad 中流式传输的代码:
AVPlayerItem* playerItem = [AVPlayerItem playerItemWithURL:[NSURL URLWithString:@"http://groove.wavestreamer.com:7321/listen.pls?sid=1"]];
[playerItem addObserver:self forKeyPath:@"timedMetadata" options:NSKeyValueObservingOptionNew context:nil];
music = [[AVPlayer playerWithPlayerItem:playerItem] retain];
[music play];
music = [[AVPlayer playerWithPlayerItem:playerItem] retain];
[music play];
谢谢你的回答...