Page 1 of 1

Appery MP4 Video download fails

Posted: Mon Aug 17, 2015 4:09 pm
by Joseph Francis

Any video file uploaded to my appery "files" table fails to download correctly.

https://api.appery.io/rest/1/db/files...

https://api.appery.io/rest/1/db/files...

If you access this file in Chrome or Safari, the file will download, but something is wrong with the data, and it fails to play.

The same file hosted on a different server than appery downloads and plays with no problem.


Appery MP4 Video download fails

Posted: Mon Aug 17, 2015 5:44 pm
by Crystal Taggart

I had the same issue (I tried multiple ways through both Apperyio file system and through amazon s3.) I found it was working in the browser but not in the app.

I ended up writing a javascript to set the URL src during the page show event:
var player = document.getElementById('MyAvatar_vd_Avatar');
var src=Apperyio('vd_Avatar').find('source').first();
src.attr('src',s3Path );
src.attr('type', 'video/mp4');
player.load();


Appery MP4 Video download fails

Posted: Mon Aug 17, 2015 8:44 pm
by Joseph Francis

Thanks Crystal,

I dropped the video file in my source tree under files/resources/image for now, it basically looks like any other Appery media file inside the app.

The problem is extra simple for Appery team - either you can download a MP4 file unmangled or you can't :) I saw you had asked them earlier, and I thought I'd just make it real simple - you can't even download a video into a browser, as you can with images or other objects stored in the files.

If you're playing with images and videos, you may want to look at ImgCache from github - I use it extensively to cache the image information on the device (iPhone, Android), and it works in Chrome and Firefox browser nicely, but only Mobile Safari.

I also am using Vide from github to handle the video containers - startup, ready, play, etc. with some small extensions. Don't know your app but may make coding simpler.

-Joe


Appery MP4 Video download fails

Posted: Tue Aug 18, 2015 5:19 am
by Crystal Taggart

Thanks Joe- I'll check that out!


Appery MP4 Video download fails

Posted: Thu Aug 20, 2015 1:17 pm
by Illya Stepanov

Hi Joseph -

We have tested your use-case and for us everything works correctly.

Downloading the file and getting the link to the file inside the browser.


Appery MP4 Video download fails

Posted: Thu Aug 20, 2015 3:23 pm
by Joseph Francis

Ilya,

Quit simply it doesn't work.

https://api.appery.io/rest/1/db/files...

It displays a video player, but it will not play if you click the 'play' button. It doesn't work in Chrome, Firefox, or Safari. The video data is corrupt. If I download it from a different server from appery, it plays fine.


Appery MP4 Video download fails

Posted: Thu Aug 20, 2015 4:27 pm
by Evgene Karachevtsev

Hello Joseph,

We tested your link and it works for us in FF and Safari. But it doesn't work in Chrome. Could you please upload some other mp4 files to your db and test them? Because all the files we uploaded to our db played correctly.