Android Question How do I play videos?

Omid Rashidi

New Member
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim vv As VideoView


End Sub

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
vv.Initialize("vv")
Activity.AddView(vv,0,15%y,100%x,85%y)
vv.LoadVideo(File.DirDefaultExternal,"Salavat shomar-B4A_By Omid Rashidi_Part1.MP4")
vv.Play
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…