Matt Scott
Posts: 0
Joined: Wed Jun 19, 2013 7:05 am

using the HTML5 video component to play a video from Device Storage (Video Not in App package file)

Thanks Max, again for your reply.

Exactly - finding and coding the solution is where I am stuck. That is why I linked the code examples in my previous post - asking if those examples of code that I already searched for and found would work for me in my situation. (This is where I have a lot still to learn. I know virtually nothing about coding possibilities, but I am trying).

I'll link those code examples here again, and perhaps if anyone else happens upon this topic, who knows the answer, then you could join in the conversation and assist.

http://stackoverflow.com/questions/10...

http://jsfiddle.net/dsbonev/cCCZ2/

http://stackoverflow.com/questions/88...

http://developer.appcelerator.com/que...

Thanks again Max, for your help. And thanks to anyone else who may read this topic and be able to point me in the right direction.

Still stuck, but hopeful.
Matt

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

using the HTML5 video component to play a video from Device Storage (Video Not in App package file)

Hi,
1) while loading app you need to check if video file name saved. If so - check this file exists http://stackoverflow.com/questions/10... . If file exists go to item 3, otherwise - item 2.
2) download file from internet to your device and save path to that file in local storage https://gist.github.com/nathanpc/2464060
3) as source for video component use file name from local storage variable.

or instead local storage variable with file name use method described on link you've posted. Then the algorithm is the following:

1) page with links to download files (download here https://gist.github.com/nathanpc/2464060)
2) page with button to choose file, after you choose file it starts playing http://jsfiddle.net/dsbonev/cCCZ2/

Matt Scott
Posts: 0
Joined: Wed Jun 19, 2013 7:05 am

using the HTML5 video component to play a video from Device Storage (Video Not in App package file)

Thanks so much for helping to answer my question!!

i did a quick copy and paste into an html element using this code:
http://jsfiddle.net/dsbonev/cCCZ2/

and that worked just fine when testing on my pc. didn't work when testing on my phone just yet - either in the browser or using the appery.io tester. i don't know why right now, but i think i need to read a bit more and research on those links that you referred me to.

i'm assuming it didn't work because of something about android permissions possibly? or perhaps i need to activate another phonegap plugin of some sort in the backend of my app? just my guesses at this point. so....

in any case - i'm going to do be away for a few days on a mission, but hopefully i will be able to do some more reading and see how much more I can learn about all this.

also - the finished product of this video player does not even need the functionality of allowing the user to choose the video file (as in the example above). it is even more simple than that.

the design for this app, is that a specific video would be played on each page, and therefore that video would already be coded into the app. no option to change the video or select it. just a simple page with only one video to download from the cloud the first time the user uses the app, then to save that video on device storage, then simply for the user to play and pause that one video per page each time they use the app to give a presentation.

thank you very much, Marina!! I'll be back in a few days

Matt Scott
Posts: 0
Joined: Wed Jun 19, 2013 7:05 am

using the HTML5 video component to play a video from Device Storage (Video Not in App package file)

still haven't been able to get this to work sadly. i think i'll take a break on this part of the project and come back to it after everything else is finished.

thanks again for your help.
to be continued...

Return to “Issues”