Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Video1 As MediaPlayerStream
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")
Video1.Initialize("Video1")
'load streaming
Video1.Load("http://www.sample.com/videos/flv/1/c/4/sample.com_1c455f3ca57a7292f214731a5e957947.flv?e=1389555728&ri=1024&rs=85&h=9149ffa7e5277a0ab82bba1750a59ce5")
End Sub
Sub Video1_StreamReady
Log("starts playing")
Video1.Play
End Sub
Sub Video1_StreamError (ErrorCode As String, ExtraData As Int)
Log("Error: " & ErrorCode & ", " & ExtraData)
ToastMessageShow("Error: " & ErrorCode & ", " & ExtraData, True)
End Sub
Sub Video1_StreamBuffer(Percentage As Int)
Log(Percentage)
End Sub