如何在IOS中播放下载进度视频文件 [英] How to play an in downloading progress video file in IOS

查看:38
本文介绍了如何在IOS中播放下载进度视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被分配来实现一个可以从服务器下载视频文件的 iphone 应用程序,并在将视频文件写入磁盘时播放该视频;喜欢的东西

I'm assigned to implement a iphone app that can download video files from a server, and to play that video while the video file is written to the disk; something likes

(电影播放器​​)<--read--[######iphone flaskdisk ######]<--write---(下载器)

(Movie player)<--read--[###### iphone flaskdisk ######]<--write---(Downloader)

我知道我会使用 HTTP 视频流播放远程视频流,但我需要的是视频文件在播放后保存在 Flask mem 中.

I know that I would use HTTP video streaming play a remote video stream, but what i need is the video file is saved in flask mem after playing.

有什么建议吗?

谢谢

推荐答案

如果您知道如何从 URL 播放视频,则可以轻松播放视频,同时在另一个线程上下载视频(如果您时间不够)...

If you know how to play a video from a URL, you can easily play the video while simultaneously download the video on another thread (if you are short on time)...

或者,您可以创建自己的视频播放器来处理此功能.App Store 中的应用程序已经这样做了(查看任何视频下载应用程序)

Alternatively, you can create your own video player that handles this function. Application sin the App Store do already do this (check out any video downloader application)

谢谢!

这篇关于如何在IOS中播放下载进度视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆