如何倒帶5秒流?將AVPlayer倒帶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];
謝謝您的回答...
的可能的複製[ AVPlayer - 快速向後/向前流](http://stackoverflow.com/questions/15094948/avplayer-fast-backward-forward-stream) – Pangu 2016-03-11 00:19:56