Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim yt As YouTubePlayerView
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")
yt.Initialize("yt")
Activity.AddView(yt,0,0,100%x,50%y)
End Sub
Sub yt_ready
Log("Youtube view is ready")
yt.loadVideo("UwikLSIm1UI", 0)
yt.playVideo
End Sub
Sub Activity_Resume
End Sub
Sub yt_enterfullscreen
Log("FullScreen")
End Sub
Sub yt_exitfullscreen
Log("ExitFullScreen")
End Sub
Sub Activity_Pause (UserClosed As Boolean)
yt.release
End Sub