iOS Question Videoview question

megaB4x

Member
Licensed User
Longtime User
I have saved a "test.mov" in ..\B4i\Files\Special folder
I want to pack this small mov file and bundle with the app and play this video on application start
vv.LoadVideoUrl works fine but I am not sure how can I play a local file..?
How can specify the path for per example below (vv.loadVideo) for special folder location?

Also, I want the video to play in the behind buttons and controls, currently the buttons are hiding behind the video, I want to bring buttons to the foreground.

Thanks,


B4X:
Page1.Initialize("Page1")
    Page1.RootPanel.LoadLayout("1")
    vv.Initialize("vv")
    Page1.RootPanel.AddView(vv.View, 0, 0, 50%x, 50%y)
    vv.ShowControls = True
    NavControl.ShowPage(Page1)
    vv.Stop
    vv.LoadVideo(?,"test.mov")
    vv.Play
   
   btnStart.CustomLabel.Font = Font.CreateNew2("ANF", 50)
   btnStop.CustomLabel.Font = Font.CreateNew2("ANF", 50)
 

megaB4x

Member
Licensed User
Longtime User
Thanks JonPM, I tried below

B4X:
vv.LoadVideo(File.DirAssets, "Special/test.mov")

It loads a black video and is giving me warning when I hover on it the line above that
File 'Special/test.mov' is missing from the file tab. (warning #17)
I have added the file in the File manager and I can see the file is added as test.mov in the File manager.

I am using hosted builder and tried both bridge and release app builds. I tried different video file types and sizes too. Any ideas what am I missing here?
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
sorry I don't use hosted builder so I'm not sure. Is there a reason its in the Special folder anyways?
 
Upvote 0

megaB4x

Member
Licensed User
Longtime User
No there is no specific reason to put video in Special folder.
Where do you suggest putting the video file and what path should I use in the vv.LoadVideo() then?

Thanks
 
Upvote 0

Similar Threads

Top