Viblast / ios-player-sdk

Viblast Player iOS SDK - native video playback of MPEG-DASH and HLS for live streaming. Extendable with P2P delivery through Viblast PDN.
http://viblast.com/player/
Other
91 stars 17 forks source link

What's the default tolerance for the seekToTime methods? #2

Closed xezero closed 8 years ago

xezero commented 8 years ago

I'm trying to port over some code in AVPlayer and I require both a precise seek (toleranceAfter and toleranceBefore of kCMTimeZero) as well as a no-tolerance seek (i.e. when I'm scrubbing through the video).

Thanks!

ivermolaev commented 8 years ago

Hey @xezero,

There is no default tolerance because the actual seek point is highly dependent on the stream segments. If the segments are ~ 10 s. long the tolerance can vary up to 10 s, e.g. if you seek the 27th second (having segment length of 10 s.), the actual seek point will be at the 20th second. Currently we do not support precise seek but it's something we are aware of and wish to improve if the player proves to be useful for more people!

Cheers!

ivermolaev commented 8 years ago

Added seek with tolerance API