博客> swift AVPlayer
swift AVPlayer
1小时前 评论:0 阅读:1012 vipsamuel
swift init

var avPlayer : AVPlayer? = nil let url = NSURL(string: "http://7xq04a.com1.z0.glb.clouddn.com/GEM.mp3")! avPlayer = AVPlayer(playerItem: AVPlayerItem(URL: url)) avPlayer?.play()

收藏
0
sina weixin mail 回到顶部