libraries and files in app properties - Page 2 - Forum

Forum Navigation
You need to log in to create posts and topics.

libraries and files in app properties

PreviousPage 2 of 2

@kazem please do this:

  1. Add your videos FOLDER to Project > Properties > Libraries / Files
  2. Do not select your video files directly in CreateVideoPlayer:
SetVar [mypath] "./foldername/"
CreateVideoPlayer "Container1" "[mypath]myvideo.mp4" true false false false

This way you can include your videos easily.
If you need to test your app without compiling it just change [mypath] with your local absolute path:

SetVar [mypath] "file://C:/myfolder/"

Best regards.

YASIN has reacted to this post.
YASIN

Great thank

in Farsi mochakeram

YASIN has reacted to this post.
YASIN
Quote from kazem on January 27, 2021, 8:04 pm

Great thank

in Farsi mochakeram

Dear luishp, I did what you said (using videos in libraries/files)it works, but when I used neophp server in localhost no videos are not played. Again I changed the program and used the direct folders of videos (which shows the videos in the root folder) and it was ok. Is it a bug in the program? can I do anything else? Because in this manner the root folder becomes messy (I have many videos in my app.)

again thank you very much

@kazem I have tested it and it works fine.
Please take a look at the attached sample app.
Once compiled it will work double-clicking index.html file or under localhost with neoPhp Server.

IMPORTANT: Remember to change the folder path on Project > Properties > Libraries/Files

Regards

Uploaded files:
  • You need to login to have access to uploads.

great job! thank you

I only inform you that after doing so the app doesn't work by clicking in vnweb application, you have to click out of vnweb the index.html.

any way God bless you

@kazem, great! :)

If you need to test your app without compiling it just change [path] with your local absolute path and remember to change it back before compiling:

Local:

SetVar [path] "file://C:/myfolder/"

Compiled:

SetVar [path] "./media/"

 

Best regards.

PreviousPage 2 of 2