seektotime

I want to make a sound play starting from the 15th second [closed]

牧云@^-^@ 提交于 2020-06-18 11:59:10
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Improve this question I want to make a sound play starting from the 15th second. How can I do it programmatically? Thanks! 回答1: As I can understand you are trying to start your audio not from the beginning. In this case: You need to use seekToTime import UIKit import AVFoundation class

I want to make a sound play starting from the 15th second [closed]

巧了我就是萌 提交于 2020-06-18 11:59:08
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Improve this question I want to make a sound play starting from the 15th second. How can I do it programmatically? Thanks! 回答1: As I can understand you are trying to start your audio not from the beginning. In this case: You need to use seekToTime import UIKit import AVFoundation class

SeekToTime in AVPlayer stops playing streaming audio, when forward

谁说胖子不能爱 提交于 2019-12-19 03:16:22
问题 I am streaming audio by using AVPlayer. It is working well. But Now i need to make a slider to move audio forward and backward, like typical music player. I used the function seekToTime which works great with local audio file. But when i stream song from web url, the function stops audio when I forward slider with a large range. My guess is that the song is being downloaded and if i move slider forward with large range then may be system has not downloaded the song data packets for that time,

SeekToTime in AVPlayer stops playing streaming audio, when forward

让人想犯罪 __ 提交于 2019-11-30 21:17:00
I am streaming audio by using AVPlayer. It is working well. But Now i need to make a slider to move audio forward and backward, like typical music player. I used the function seekToTime which works great with local audio file. But when i stream song from web url, the function stops audio when I forward slider with a large range. My guess is that the song is being downloaded and if i move slider forward with large range then may be system has not downloaded the song data packets for that time, so it halts player. Lets say i just hit a button to stream song but now i move slider immediately at 0