Still struggling!
With CreateUriSource the app compiles and installs, but no video is shown, neither in debug mode nor in release mode, also no error message. When I touch the screen some indicators to start/stop, etc, appear and disappear.
I use:
B4A 8.50
android:targetSdkVersion="28" in the Manifest Editor and in the path definition of android.jar.
I tried also ExoPlayerExample downloaded from this forum, with the same result; so no success. Using ExoPlayerExample, I think that I have viewed the list, once, , I guess disabled, but this list doesn't show up at present.
Something is wrong, but what?
Once again the complete program:
#Region Project Attributes
#FullScreen: True
#IncludeTitle: False
#ApplicationLabel: Camera_View
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: landscape
#CanInstallToExternalStorage: True
#BridgeLogger:true
#End Region
Sub Process_Globals
Private player1 As SimpleExoPlayer
End Sub
Sub Globals
Private SimpleExoPlayerView1 As SimpleExoPlayerView
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Activity.LoadLayout("1")
player1.Initialize("player")
player1.Prepare(player1.CreateUriSource("http://192.168.2.4:9090/stream"))
'using this address the stream shows in FireFox and Google
End If
SimpleExoPlayerView1.Player = player1
player1.Play
End Sub
Sub Player_Ready
Log("Ready")
End Sub
Sub Player_Error (Message As String)
Log("Error: " & Message)
End Sub
Sub Player_Complete
Log("complete")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Please some suggestions
Harry