playing Video from a list

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

playing Video from a list

Post by aebki » Wed Mar 18, 2015 12:28 pm

Hi, I want to make one little and personal ( for my couple and me ) app.
So each one with his device ( one iPad and one samsung galaxy s5 phone ) can see the videos we have in our PC at home.

My idea is very simple i think. So, show one list of the videos we have in the server, once we choose one then show it in the screen (the half of the available screen), and below put some information about this video, so the name, the date and the location.
The name's format of each video is (Summer_07082015_Rome).

And that's all!

My questions:

1.- First of all i need to create one list of all the videos i have in my PC. And i don't know how :-(
2.- Do i have to download the video or can i only play it?

I saw that i have to use the instruction "play video", for example like this

Code: Select all

   play video videoName
But i don't know how i have to make the assignation to my variable "videoName".

Thanks for your help.

aebki

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: playing Video from a list

Post by aebki » Wed Mar 18, 2015 12:53 pm

Hi,

In fact my couple has some videos on vimeo too.
So, this will be possible for these videos too? With html i should use iframes i think, but in this case how should i do it?

Regards.

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: playing Video from a list

Post by aebki » Wed Mar 18, 2015 9:07 pm

Hi,

I am trying things and also looking at some post in this forum, but i still don't manage.
How i can put as the folder where to search one precise one i have in my PC?

I have one folders "Videos" in my pc.
So, how can i make one

Code: Select all

answer file "Select one video"

Like this should work, no?
And if yes, then my first question. How can i put that my 'default folder' where to look is the folder 'videos' in my PC?

Regards.

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: playing Video from a list

Post by aebki » Thu Mar 19, 2015 9:58 am

Hi,

I managed put with the folder...
So in 'local' using the instruction "set the defaultFolder" it is opening the folder i want and then i can choose the video i want! :-)

Then i tried this the iPhone simulator, but it is working. I think it is because of the path.
Someone can tell me how it should be this address? Now testing, i tried directly from my mac. So i looked for the ip public address
and then i put 'set the defaultFolder to "//myPublicIp/Users/aebki/Downloads/" ' and in this folder i have one video named video2.mp4

In local it worked like this 'set the defaultFolder to "/Users/aebki/Downloads/" ' and then with one 'answer file' i could reach the video example.

Regards.

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: playing Video from a list

Post by Klaus » Thu Mar 19, 2015 1:24 pm

Hi aebki,

you are aware that "answer file..." and "ask file..." are NOT supported on
the mobile platform due to the sandboxing mechanism?


Best

Klaus

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: playing Video from a list

Post by aebki » Thu Mar 19, 2015 1:52 pm

Hi Klaus,

Thanks for your answer! :-)

So, it is evident that i didn't know this!:-(

As 'answer' is working in mobile i thought that 'answer file' too...

So my question now is changing a little bit...
May i open one folder ( to can choose one file, in my case one video ) i have in my PC from one iPad / android phone?

regards.

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: playing Video from a list

Post by Klaus » Thu Mar 19, 2015 4:33 pm

Hi aebki,

no, iOS is a closed system, so no file related actions like "answer file..." are not possible.

The only thing you may do is to list the files of any accessible! -> specialfoderpath("xyz") and let the user chose one.
See the dictionary for all specialfolderpaths you can access on the mobile platform.


Best

Klaus

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: playing Video from a list

Post by aebki » Thu Mar 19, 2015 4:53 pm

Hi Klaus,

Thanks for your answer!

Ok, so i didn't imagine that the iOS system was so much restrictive...:-(

I didn't understand the meaning of this sentence! :-(
The only thing you may do is to list the files of any accessible!
What do you mean with "accessible"??? Sorry if the question it seems so simple...:-)

So, if i can't access to one folder in my PC to can select the video i want, maybe i can do this.
Put in one database all the names of the videos i have and with one datagrid show the user this list to can choose one ( all what is concerning to database and datagrids of my example i am able to do it ).

But once he made the selection how can i download it? This video will be in this location: "/Users/aebki/Downloads/"

And if we use one public Ip it should be something like this:
"//myPublicIp/Users/aebki/Downloads/" '

So how can i download this to the iPad or the android phone?

Regards.

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: playing Video from a list

Post by Klaus » Thu Mar 19, 2015 5:41 pm

Hi aebki,

yes, thanks to Steve J. we even have to pay 99,- US Dollar to test our apps on our OWN iDevice!
Now that is the PROTOTYPE of "restrictiveness" 8)

Sorry, I meant all supported specialfolderpaths on mobile.
But I am not sure if we can access our PC or Mac with a device at all, but I am surely no mobile expert.

Maybe you should ask in the dedicated iOS and/or Android forum.


Best

Klaus

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: playing Video from a list

Post by aebki » Thu Mar 19, 2015 6:56 pm

Hi Klaus,

Thanks for the answer.

I will ask in the iOS forum.

Regards.

Post Reply

Return to “Multimedia”