Website download small MP4 video to IOS mobile device to store and play
$250-750 USD
Cerrado
Publicado hace casi 10 años
$250-750 USD
Pagado a la entrega
I have a small utility programming project for an existing website that needs to download a MP4 video to both Android and IOS mobile devices and store on the drive for playback, usually in the "movies" folder.
The Android works fine as it is part of that operating system, the Iphones IOS will default to streaming rather than downloading. I require a fix to the website that is similar to this solution, (although this may be out of date).
Please let me know if you can be of assistance and potential cost of the project.
Regards,
Dean Hadlock
[login to view URL] is the active website with just one area for a download
EXAMPLE FIX
Preload video
The HTML5 video element have a preload attribute, which is used to specify if any data of the media element should be loaded before an user interaction[1], unfortunately Apple decided to not support this attribute on iOS to reduce bandwidth usage[2].
Here is an example of the code required to preload a video after user interaction on iOS 3.2+:
/*
* Example how to preload HTML5 video on the iPad (iOS 3.2+)
* @author Miller Medeiros
* Released under WTFPL
*/
var vid = [login to view URL]('video');
[login to view URL] = '[login to view URL]';
[login to view URL]('video-holder').appendChild(vid);
//this function should be called on a click event handler otherwise video won't start loading
function initVideo(){
[login to view URL](); //start loading, didn't used `[login to view URL]()` since it causes problems with the `ended` event
if([login to view URL] !== 4){ //HAVE_ENOUGH_DATA
[login to view URL]('canplaythrough', onCanPlay, false);
[login to view URL]('load', onCanPlay, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
setTimeout(function(){
[login to view URL](); //block play so it buffers before playing
}, 1); //it needs to be after a delay otherwise it doesn't work properly.
}else{
//video is ready
}
}
function onCanPlay(){
[login to view URL]('canplaythrough', onCanPlay, false);
[login to view URL]('load', onCanPlay, false);
//video is ready
[login to view URL]();
Thanks for your post on Freelancer, firstly I would like to say that we DO NOT ASK TO RELEASE PAYMENT till the entire project is complete. Only thing that we request is that you put in an escrow deposit that you do not release till the end of the project. We are based out of Los Angeles with branch offices in Chicago, San Jose and New Jersey. I would like to discuss your vision for your project in detail whenever you have a chance so please do let me know if you would like to proceed. Thanks and I hope to speak to you soon