Player icon indicating copy to clipboard operation
Player copied to clipboard

Playback loop - 0.5 sec black screen between loops?

Open ghost opened this issue 9 years ago • 7 comments

Anybody else experiencing this? Happens 90% of the time.

ghost avatar Oct 06 '16 19:10 ghost

@piemonte Care to comment on this? :)

ghost avatar Nov 06 '16 09:11 ghost

hey @danieldelouya. thanks for the feedback. have you verified the video doesn't have black frames when played locally?

piemonte avatar Nov 06 '16 18:11 piemonte

@piemonte Yes I have indeed :)

ghost avatar Nov 06 '16 21:11 ghost

Hi @piemonte! Any updates on this?

mahmutpinarbasi avatar Nov 27 '16 16:11 mahmutpinarbasi

hey @mahmutpinarbasi thanks for the interest. i currently don't have the time to look into this but PR's are welcome.

i will probably pick this up for a new project soon and will address some of the open issues. my guess is that it's related to:

📎 https://github.com/piemonte/Player/issues/75

piemonte avatar Nov 27 '16 19:11 piemonte

Made a hack for this by seeking to 10 miliseconds after the playback has ended and, then start playing the video again:

  func playerPlaybackDidEnd(_ player: Player) {
        let t1 = CMTimeMake(10, 100)
        self.videoPlayer.seekToTime(t1)
        self.videoPlayer.playFromCurrentTime()        
    }

ghost avatar Dec 14 '16 10:12 ghost

📎 https://github.com/piemonte/Player/issues/123

piemonte avatar Jan 02 '17 18:01 piemonte