photo/video-slideshow getting content from webserver
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
photo/video-slideshow getting content from webserver
Hi there!
I stumbled upon livecode and now i am curious. I plan to develop an app and would like to know if it is possible to do with livecode and how difficult it would be to create it. I have some experience in javascript but it is far from professional level.
The app should be running on android. Its task would be to display photos and videos which are in a folder on a server. The device, which the app would be running on, will be connected to the internet via wlan.
I would be happy, if you experts give me your opinions on this.
Have a nice day!
I stumbled upon livecode and now i am curious. I plan to develop an app and would like to know if it is possible to do with livecode and how difficult it would be to create it. I have some experience in javascript but it is far from professional level.
The app should be running on android. Its task would be to display photos and videos which are in a folder on a server. The device, which the app would be running on, will be connected to the internet via wlan.
I would be happy, if you experts give me your opinions on this.
Have a nice day!
Re: photo/video-slideshow getting content from webserver
Hi propeller,
welcome to the forum!
Yep, that's an easy one, in LC you can do something like this:
So the answer to your question is: Yes, doable!
Best
Klaus
welcome to the forum!
Yep, that's an easy one, in LC you can do something like this:
Code: Select all
...
set the filename of img "your_image" to "https://www.a_server.com/a_folder_with_images/image666.jpg"
...
Best
Klaus
Re: photo/video-slideshow getting content from webserver
Thank you Klaus. So i guess, i would have to read out the folder to get all the filenames, store it in an array or something which declares if it is an image or a video and then play it. Seems doable
Re: photo/video-slideshow getting content from webserver
Hum. Well, actually, you don't have to do the storing in an array, Lc has 2 functions that already do this, the files and the folders.
You can loop through those and put them directly into a text field for selection. Example for the folders would look like :
Code: Select all
// code using a field to visibly show the list, could just as easily be any variable or custom property...
repeat with x = 1 to the number of lines of the folders
put line x of the folders & cr after field "dirList"
end repeat
Code: Select all
repeat with x = 1 to the number of lines of the files
// this is only one way to filter, there are a *lot* of other ways...
if line x of the files contains ".jpg" or (line x of the files contains ".png") or (line x of the files contains ".bmp") then
put line x of the files & cr after field "dirList"
end if
end repeat
Re: photo/video-slideshow getting content from webserver
Hi propeller,
@ Bogs,
we are talking about:
Best
Klaus
yes, any PHP (or even LC server) script that fetches the files from a folder on the server will do.Thank you Klaus. So i guess, i would have to read out the folder to get all the filenames, store it in an array or something which declares if it is an image or a video and then play it. Seems doable.
@ Bogs,
we are talking about:
so LCs "files" command will not work here.... display photos and videos which are in a folder on a server.
Best
Klaus
Re: photo/video-slideshow getting content from webserver
files and folders don't work with server addresses? Huh, I thought it was just like any other url folder
I apologize for the mistake, propeller.
I apologize for the mistake, propeller.