简体   繁体   English

哪个iOS参考可以在iPad mini上播放实时视频?

[英]which iOS reference has live video playback on iPad mini?

The iPad mini app needs to live display video only uncompressed grayscale 640x480 pixel data through a TCP/IP socket through USB connection from a Windows-7 computer. iPad mini应用程序需要通过TCP / IP套接字通过Windows-7计算机的USB连接,仅通过TCP / IP套接字实时显示未压缩的640x480像素灰度数据。

Which is the best iOS framework to do this? 哪个是执行此操作的最佳iOS框架?

Either AVPlayer or MPMoviePlayerController are baked in and can play video. MPMoviePlayerController AVPlayerMPMoviePlayerController并可以播放视频。 In your case, I'd recommend MPMoviePlayerController because AVPlayer doesn't come with controls (you'd have to implement your own play/pause buttons, scrub bar, etc). 在您的情况下,我建议使用MPMoviePlayerController因为AVPlayer不附带控件(您必须实现自己的播放/暂停按钮,滑动条等)。

Both implementations will play streaming content or fixed length files. 两种实现都将播放流内容或固定长度的文件。 Since you have streaming content, you'll have to format it (transcode it) in a way iOS will understand. 由于您拥有流式传输的内容,因此必须以iOS可以理解的方式对其进行格式化(转码)。 This means HTTP Live Streaming (HLS) . 这意味着HTTP实时流(HLS)

Converting your pixel data into HLS is by far the hardest part of the problem. 到目前为止,将像素数据转换为HLS是最困难的部分。 There are cloud service providers which can do this such as Zencoder's Live Streaming service . 有云服务提供商可以做到这一点,例如Zencoder的实时流服务 That relies on an incoming RTMP stream, for example from Flash Media Live Encoder . 这依赖于传入的RTMP流,例如来自Flash Media Live Encoder的 RTMP流。

If you don't want to use HLS for encoding your stream, then you'll have to implement your own video rendering engine in C for your custom pixel data. 如果您不想使用HLS对流进行编码,则必须为自己的自定义像素数据在C中实现自己的视频渲染引擎。 I'm not exactly sure where to get started with that, but my guess would be somewhere in Core Data . 我不确定从哪里开始,但是我的猜测可能在Core Data中 Good luck! 祝好运!

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

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