Video issues when creating phone App - Forum

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

Video issues when creating phone App

When I compile as a phone app, for whatever reason there is a full path "c:\users\..." to the video file in the zip folder and it is making it so I can't play my video once I create and install the app on my phone.  Is there a way to fix this?  It doesn't do it with images just MP4 files.

@neal-stone how are you adding the video file to your app?

Using a container using an On Click option.

ObjectToFront "Container1"
CreateVideoPlayer "Container1" "Flame2.mp4" false true false false

@neal-stone if you want VisualNEO Web to include the video files automatically you should include the full path in CreateVideoPlayer:

CreateVideoPlayer "Container1" "c:\yourpath\Flame2.mp4" false true false false

Use the yellow folder icon on the command wizard window.
Let me know if it works.

Regards.

Sorry let me clarify.  With or without the full path the video plays just fine when I preview it on the PC.  But once I create an APK file using Volt Builder it fails to load on the phone.  Adding the video file to the root of the www folder fixes it, but it still loads a copy with the full path to the video used on my PC.

Hi @Neal Stone: Try like this, put this code to your video container:

<video controls width="310">
    <source src="video/flower.mp4" type="video/mp4">
    Sorry, your browser doesn't support embedded videos.
</video>

then create a folder beside index.html with the name of "video", put your video inside that as my example I put flower.mp4.

 

Uploaded files:
  • You need to login to have access to uploads.
Neal Stone has reacted to this post.
Neal Stone

@neal-stone I'm not sure why it's happening but you can allways add the video files to Project > Properties > Files (even a whole folder) and then use relative paths with CreateVideoPlayer. It should work fine once compiled.

Hi @luis, adding video to properties>files, in a newer version of VisualNEO Web, is a little confusing, it creates three extra folders: as I have tested it creates User folder> asmat folder>Desktop folder>flower.mp4.

Sorry meant thumbs up not down.  LOL.  I will try out these suggestions and than you for all the help.