-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
解决:
var moviePath : String?{
didSet{
if let iPath = moviePath {
moviePlayer.contentURL = NSURL(fileURLWithPath: iPath, isDirectory: false)
moviePlayer.prepareToPlay()
// 移除上次复用的cell的image,防止显示错乱
imageView.removeFromSuperview()
// 再重新add上更换完图片的当前cell对应的image
moviePlayer.view.addSubview(imageView)
}
}
}
func playerDisplayChange()
{
// 准备播放时[预览图加载出来时] 移除封面image
if moviePlayer.readyForDisplay {
imageView.removeFromSuperview()
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels