Tag: 转发

AVPlayer – 快速向后/向前stream

这是我在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]; 我的问题: 我怎样才能创build一个button,快速向前/快速倒退stream5秒,当它被按下? 谢谢您的回答… :) 编辑:如何添加到我目前的时间… CMTime currentTime = music.currentTime; … 5秒钟?