douban / DOUAudioStreamer

A Core Audio based streaming audio player for iOS and macOS
BSD 3-Clause "New" or "Revised" License
2.77k stars 556 forks source link

初始化_streamer的时候设置currentTime值无效 #102

Open duxinfeng opened 8 years ago

duxinfeng commented 8 years ago

Hi, 我初始化_streamer的时候去设置currentTime值为10.56,但是打印_streamer.currentTime依然为0. 我该如何处理,谢谢。

_streamer = [DOUAudioStreamer streamerWithAudioFile:track]; _streamer.currentTime = 10.56; [_streamer play];

NSLog(@"--->%f",_streamer.currentTime);

syxiaqj commented 8 years ago

确实,第一次设置currentTime的时候确实不起作用

johnlui commented 8 years ago

要在 kStatusKVOKey 的 Playing 触发之后调整 currentTime 才可以。