2016-03-25 20 views
0

私はuisliderを使いたくないのですが、ボトムを確認するのと同じように、進行状況表示を使って曲の進行状況を表示したいのです。uisliderなしでストリームの進行状況を表示するにはどうすればよいですか?

@IBOutlet weak var progressbar: UIProgressView! 

func playSong(){ 
self.player = AVPlayer(URL: NSURL(string: url)!) 
     print(url) 
     print("time \(CMTimeGetSeconds((self.player.currentItem?.asset.duration)!))") //I Get the correct time printed 

     self.player.volume = 1.0 
     self.player.rate = 1.0 
     self.player.play() 

} 

答えて

0

スライダーではなく進捗表示を使用する必要があります。 hereから始めることができます。

Hereは、プログレスバーのための良いobjective-cフレームワークです。

関連する問題