Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

How to view videos and photos stored in the files database

Hi Sergiy

You say it is possible to view a video stored in the _files collection through the html video component. I have created a direct link as follows but the video is not playing. Is this the correct code?

var vid = "https://api.appery.io/rest/1/db/files..." + filename;
Appery('video_41').attr("src", vid);

I have double checked the URL and it is correct. I have for this purpose modified my db id for security reasons.

Can you also explain what happens. Is the video streamed or downloaded to the device?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

Sorry, we can't reproduce it. Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

How to view videos and photos stored in the files database

Hi Sergiy

  1. App Name - Bad Behaviour

  2. Username: a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a Password: support
    3.Detailed Steps.
    a. Login with above credentials.
    b. On Home Page Click Menu Button (Top Right)
    c. Select My Draft Incidents from Group Buttons menu.
    d. Select Video from Menu at top of My Drafts Page.
    e.Select Video (This Incident) from List.

    You will see the HTML video is blank.

    Please can you also explain to me. Is the video streamed from Appery database or Downloaded?

    Thank you.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

How to view videos and photos stored in the files database

Hi

Any news here?

Thx

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

I get empty server's response: http://prntscr.com/9jhjde
It seems like a reason of the empty video component

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

How to view videos and photos stored in the files database

My apologies. The videos were assigned to another user. I have re-assigned to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a. Could you please try now.

Thank you.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

Deon, please add mapping to the source attribute of the video component: http://prntscr.com/9jxmw8 instead of video component directly.

Also, please check 'Show Controls' on the properties panel of the video component

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

How to view videos and photos stored in the files database

Hi Sergiy

Thank you for that. There are no mappings. I update the video component via jscript.

it was working all the time. I only needed to enable the controls. I was being dumb. Thank you for your assistance here and pointing me in the right direction.

I still need to understand how the video is played back. Is it streamed from your server or downloaded? Please can you explain this.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

It downloads and plays if it is downloaded. You don't have to wait end of the downloading. It plays even only part of the file is downloaded.
More information you can find online. It is plain HTML5 video tag.
https://developer.mozilla.org/en-US/d...

Return to “Issues”