Setting Slider Value to Set SeekToTime in AVPlayer

前端 未结 2 1814
谎友^
谎友^ 2021-01-24 19:44

I am using Player library, that is using AVPlayer & AVFoundation, which is quiet convenient for my case. I successfully managed to play the video and add a slider. I set the

2条回答
  •  长发绾君心
    2021-01-24 19:59

    I solved my problem. I created an instance of Player so I was able to send the data from the view controller back to Player class. Then I simply applied seekToTime(). At this point, visually, it was seeming poor but then I noticed that I can use stop(), setCurrentTime() and then play() in order to make it look nicer.

提交回复
热议问题