OK been playing with this for just under a week and still have not got it to play videos properly in full screen.
What I have found is when i run my app for the 1st time i ALWAYS get a full screen picture, its only when i try to change the stream to another one it fails.
I have check over 50 channels, 50 restarts and always i get the right video size.
So my init code
then my change streams
So I was wondering is there a way to delete the vv object and do a vv.initialise every channel change
joolz
What I have found is when i run my app for the 1st time i ALWAYS get a full screen picture, its only when i try to change the stream to another one it fails.
I have check over 50 channels, 50 restarts and always i get the right video size.
So my init code
B4X:
Sub Globals
...
Dim vv As VideoView
...
End Sub
B4X:
Sub Activity_Create(FirstTime As Boolean)
...
vv.Initialize( "vv")
Activity.AddView( vv, 0, 0, Activity.Width, Activity.Height)
End Sub
then my change streams
B4X:
If vv.IsPlaying Then
vv.Stop
End If
If show Then
ShowChannelInfo
End If
If cCurrent.cRadio Then
vv.SetBackgroundImage( radioBackground)
Else
vv.SetBackgroundImage( Null)
End If
vv.LoadVideo( "http", cCurrent.cUrl)
vv.MediaControllerEnabled = cCurrent.cVOD
So I was wondering is there a way to delete the vv object and do a vv.initialise every channel change
joolz