Android Question Play file via network

Bossolo

Member
I had try with a DLNA but ExoPlayer can't load the media, so i create an apache http server and it works.
Last question: when the event "Ready" will be raise?
Because after the player load the file i notice that it raise "TrackChange" event

B4X:
Sub TryPlaylist
    PathPromoSrv="http://192.168.1.2/promo/"
    MPPromo.Prepare(MPPromo.CreateUriSource(PathPromoSrv & "Nero_2021.mp3"))
End Sub

Sub MPPromo_Ready
    Log("Ready MPPRomo")
    'MPPromo.Play
End Sub

Sub MPPromo_Complete
    Log("Complete")
End Sub

Sub MPPromo_TrackChanged
    Log("Cambio traccia")
    MPPromo.Play
End Sub
 
Top