hi,
i have simple code using audio lib 1.60 (default b4a 3.5)
the code is compiled successfully without any errors. i installed to genymotion emulator and a real device. unfortunately, i can't get the video played. there is only a blank screen without any errors.
i checked the log, and i got many 100 and starts playing.
something missing?
please kindly help. the 3gp link is fine and working.
i have simple code using audio lib 1.60 (default b4a 3.5)
B4X:
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://118.97.77.157/m/video/JICT.3gp")
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
the code is compiled successfully without any errors. i installed to genymotion emulator and a real device. unfortunately, i can't get the video played. there is only a blank screen without any errors.
i checked the log, and i got many 100 and starts playing.
something missing?
please kindly help. the 3gp link is fine and working.