'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
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
Dim tt As Timer
Dim video As Boolean
End Sub
Sub Activity_Create(FirstTime As Boolean)
vv.Initialize( "vv")
Activity.AddView( vv, 0, 0, 100%x, 100%y)
tt.Initialize( "tt", 10000)
tt_Tick
tt.Enabled = True
End Sub
Sub tt_Tick
vv.Stop
If video Then
vv.LoadVideo( "http", "http://02.spain.unistream.tv:4444/udp/239.100.200.1:1234")
Else
vv.LoadVideo( "http", "http://02.spain.unistream.tv:4444/udp/239.100.200.2:1234")
End If
vv.Play
video = Not( video)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub