:sign0085:
VideoView.LoadVideo("http","http://10.210.19.120:554/sample_50kbit.3gp")
or
VideoView.LoadVideo("http","rtsp://10.210.19.120:554/sample_50kbit.3gp")
it doesn,t work.
Please tell me how to use "loadvideo" for online video.
How to add the INTERNET permission for this to work?
I have added <uses-permission android:name="android.permission.INTERNET" /> to my manifest file and tried paying several video types (.mpg, .wmv, .mov) using this code:
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("http","http://myserver.com/distribution/test,mpg")
vv.Play
End Sub
Sub vv_Complete
Log("Playing completed")
End Sub
For each file type I get the dialog "Cannot play video. Sorry, this video cannot be played. OK" in the emulator (no debug errors). Is my code wrong, am I calling a wrong file type, etc? What file types are supported and are there limitiations on resolution, bitrate, file size, etc? Thanks.