progressive-download

Stream video while downloading iOS

强颜欢笑 提交于 2019-12-02 14:58:24
I am using iOS 7 and I have a .mp4 video that I need to download in my app. The video is large (~ 1 GB) which is why it is not included as part of the app. I want the user to be able to start watching the video as soon as is starts downloading. I also want the video to be able to be cached on the iOS device so the user doesn't need to download it again later. Both the normal methods of playing videos (progressive download and live streaming) don't seem to let you cache the video, so I have made my own web service that chunks up my video file and streams the bytes down to the client. I start

MPMoviePlayerController: when will I know that the downloading of the file reaches 10 percent?

喜夏-厌秋 提交于 2019-12-02 02:45:01
问题 I am playing videos from our web server and I'm using the MPMoviePlayerController to play it. It first, downloaded the file while simultaneously playing it. I need to post a log back in our web server every time a video reaches the 10% mark while downloading the file. How would I know that the downloading of the file reaches 10%? By the way, I already got the file size and already computed the 10th percent of any file, All I want to know is when will I be able to know that it already

WPF Image control to progressively load multipage tiff

99封情书 提交于 2019-12-01 18:57:50
I'm wondering if there's an existing control or if it would be straightforward to develop a control allowing a multipage tiff to be progressively loaded over a network? I'm working with some tiff images that are up to thousands of pages, and it would be great to have the image start to appear as soon as a page or pages are downloaded, and only retrieve additional pages of the image as needed, or download on demand or when bandwidth is available. I realise that a TIFF image has certain structural requirements and surrounding metadata, but expect that this should be possible. Adriaan I suggest

How do I display a progressive JPEG in an UIImageView while it is being downloaded?

僤鯓⒐⒋嵵緔 提交于 2019-11-28 21:53:26
Downloading an image from the net and showing it in an UIImageView is fairly easy. However, this requires the image to be completely downloaded before it is shown to the user, completely defeating progressive JPEG (and PNG) images. How can I render the partially downloaded images while the transfer is being done? I would imagine the SDK to have some callback function which would update the image, but I can't find such a function. Is it possible at all with the current iOS SDK? Did you try to render the UIImage partially as didReceiveData gets called … ? Something like … -(void)connection:

Using WinInet to identify total file size before downloading it

随声附和 提交于 2019-11-28 09:18:51
I got the source below from a third-party site explaining how to download a file from the internet using WinInet . I'm not too familiar with API, and I took at look at the WinInet unit but did not see any API calls like what I need. What I'm doing is adding the ability to report back progress of downloading a file. This procedure I've already wrapped inside of a TThread and everything works fine. However, just one missing piece: Finding the total size of the source file before downloading. See below where I have a comment //HOW TO GET TOTAL SIZE? This is where I need to find out what is the

Using WinInet to identify total file size before downloading it

我们两清 提交于 2019-11-27 02:49:29
问题 I got the source below from a third-party site explaining how to download a file from the internet using WinInet . I'm not too familiar with API, and I took at look at the WinInet unit but did not see any API calls like what I need. What I'm doing is adding the ability to report back progress of downloading a file. This procedure I've already wrapped inside of a TThread and everything works fine. However, just one missing piece: Finding the total size of the source file before downloading.