简体   繁体   English

使用 AVKit AVPlayerViewController

[英]Working with AVKit AVPlayerViewController

I want to know more about AVPlayerViewController from AVKit ,like its delegate methods and all.我想从AVKit了解更多关于AVPlayerViewControllerAVKit ,比如它的委托方法等等。 I read about it from Apple doc , but I don't understand it.我从Apple doc 中读到了它,但我不明白。 Can anybody provide some other links,tutorials or sample code for the same.任何人都可以提供一些其他链接、教程或示例代码。 Thank you.谢谢你。

Best way to learn about a component in iOS are Apple docs itself, you should try and follow Apple docs.了解 iOS 组件的最佳方式是Apple 文档本身,您应该尝试遵循 Apple 文档。 Here is a short tutorial on playing video using AVPlayerViewController . 是使用AVPlayerViewController播放视频的简短教程。

Although, you can find a sample project of AVPlayerViewController here .虽然,您可以在此处找到AVPlayerViewController的示例项目。

Hope this will help.希望这会有所帮助。

I would suggest that you start with some actual working AVPlayerViewController source code and go from there.我建议你从一些实际工作的 AVPlayerViewController 源代码开始,然后从那里开始。 It is easier than just looking at Apple docs.这比只查看 Apple 文档更容易。 I wrote up this blog post showing a video of the Sun compiled from NASA sources.我写了这篇博客文章,展示了从 NASA 来源编译的太阳视频。 A link to the github source is included and you can checkout and run the example easily.包含指向 github 源代码的链接,您可以轻松检出并运行该示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM