Android Question About Videos Vita - VideoView

Douglas Farias

Expert
Licensed User
Longtime User
hi i found a many tutorials and helps for play videos
but i try use vitamino and audio library.
with vitamino my video run on the emulator but not in real devices i have tested in 4 devices 2 phones and 2 tablets

and i try audio and mediaplayer dont run too

i make one teste i take the video and try run it in my tablet without apk only video
and my tablet run normal 3gp wmv mp4
only in apk dont run

i try many ways but all give me same error and my tablet run videos normal. and i have a app in my tablet with video. i download it from google play and run fine.

how can i run a video local without download. i really dont want download is a simple video
3gp or mp4 3 mb i need put this local in my apk same mp3 player

i dont find any tutorials with this working only questions more questions and youtube tutorials but i need offline without download any files to run *-* = my tablet media player.

my project i need a simple buton with click. when u click run a simple video and done. no downloads no more only this can anyone show me how to make this?

thx to all sory for my english im Brasilian

i try this codes but dont work too only on the emulador
B4X:
Sub Globals
    Dim vv As VideoView
End Sub

Sub Activity_Create(FirstTime As Boolean)
        vv.Initialize("vv")
        Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)
        vv.LoadVideo(File.DirRootExternal, "somefile.mp4")
End Sub

Sub vv_Complete
        Log("Playing completed")
End Sub

B4X:
Sub Globals
    Dim vv As VideoView
End Sub
Sub Activity_Create(FirstTime As Boolean)
    vv.Initialize("vv")
    vv.MediaControllerEnabled = False
    Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)
    vv.LoadVideo(File.DirRootExternal & "/Movies", "IMAG0018.MOV")
    vv.play
End Sub
  
Sub vv_Complete
'        vv.LoadVideo(File.DirRootExternal & "/Movies", "IMAG0018.MOV")
        vv.Play
End Sub

B4X:
vv.Initialize("vv")
Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)
 vv.LoadVideo(File.DirRootExternal, "video.mp4")
 vv.Play
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
yes but i need offline
with any downloads and no internet conection but dont work :(

work on the emulator but not on real devices and tablets cant play video =(
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
yes i try 3gp , mp4 and wmv dont work too audio library or vit4mino dont work too
in emulator work fine with VideoView - Audio library but on my device dont work and my tablet too
for exemple
B4X:
Dim vv As VideoView
vv.Initialize("vv")
Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)
vv.LoadVideo(File.DirRootExternal, "video.mp4")
vv.Play

this stil working at emulador but in my devices show me cant play video
and i have make a download for test another app on google play with video and work
only my app dont work this code on my device


this app work fine at my tablet and phone i need this a local video no downloads

https://play.google.com/store/apps/details?id=com.xero.lookatmyhorse
 
Upvote 0
Top