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

"addPeriodicTimeObserver" not working properly.. #14

Open harifsp opened 5 years ago

harifsp commented 5 years ago

addPeriodicTimeObserver is never call after playing Video. I can't able to find the solution. have any one face this same issue???

player = VBPlayer(cdn: "http://test-inso.streaming.media.azure.net/065ef354-bc11-4076-a00a-d02a0c6cd13c/sample.ism/Manifest(format=mpd-time-csf)")
player?.delegate = self
player?.setDisplayLayer(playView.displayLayer())
let interval = CMTime(seconds: 0.1, preferredTimescale: CMTimeScale(NSEC_PER_SEC))
player?.addPeriodicTimeObserver(forInterval: interval, queue: DispatchQueue.main, using: 
{
print("TIMER START")
})
player?.play()