AVPlayer自动播放(AVPlayer Autoplay)
如何在osx自动播放中制作avplayer?
我试过这个:
NSURL *videoURL = [[NSBundle mainBundle] URLForResource:@"video name" withExtension:@"mp4"]; self.movieView.player = [AVPlayer playerWithURL:videoURL];它不会自动播放?
How to make avplayer in osx autoplay?
I've tried this:
NSURL *videoURL = [[NSBundle mainBundle] URLForResource:@"video name" withExtension:@"mp4"]; self.movieView.player = [AVPlayer playerWithURL:videoURL];it doesn't autoplay?
最满意答案
你还没有调用play方法。
[self.movieView.player play]You haven't called the play method.
[self.movieView.player play]更多推荐
发布评论