muhku / FreeStreamer

A low-memory footprint streaming audio player for iOS and OS X
http://muhku.github.io/FreeStreamer/
Other
2.11k stars 434 forks source link

seekToPosition 总是从头开始播放 #413

Open long-YC opened 6 years ago

long-YC commented 6 years ago

FSStreamPosition sp; sp.position = sender.value; [_audioStream seekToPosition:sp]; 在滑动滑动条时,以上代码总是让_audioStream从头开始播放当前音频,若是已经将音频缓存到了本地,就会从滑动到的位置开始播放,是什么地方少写代码了吗

TZCoding commented 6 years ago
Hsf818 commented 4 years ago

` FSStreamPosition position = {}; postion.postion = sender.value; [self.audioPlayer seekToPosition:position];

FSSeekByteOffset offset = {};
offset.position = sender.value;
[self.audioPlayer playFromOffset:offset];

` 我这么加了,但是播放网上音频的时候还是会从头开始

rays77 commented 4 years ago

我也发现了,跟播放源有关系,换一个播放源就好了,请问您解决了吗?是怎么解决的