Sub Globals
Dim FullScreen As Boolean = False
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim x As XmlLayoutBuilder
'load the layout
x.LoadXmlLayout(Activity, "layout1")
FFMpegVideoView1 = x.GetView("videoViewRelative")
FFMpegVideoView1.SetVideoPath("http://url.com/video")
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Select Case KeyCode
Case KeyCodes.KEYCODE_DPAD_CENTER
If (FullScreen = False) Then
'SET - FullScreen
FFMpegVideoView1.Width = 100%x
FFMpegVideoView1.Height = 100%y
FullScreen = True
Log("Full...")
Else
'SET - SmallScreen
FFMpegVideoView1.Width = 579dip
FFMpegVideoView1.Height = 320dip
FullScreen = False
Log("Small...")
End If
End Select
End Sub