Hi
I try use VideoView and ExoPlayer in app without stop android music player
I use below code for resume music player if it is stoped
But i need when user login to my app and see my video,user music player dont be stop
How do i add this ability in my app?
I try use VideoView and ExoPlayer in app without stop android music player
I use below code for resume music player if it is stoped
B4X:
Dim jo As JavaObject
jo.InitializeContext
jo = jo.RunMethod("getSystemService", Array("audio"))
Dim event As Object = jo.CreateEventFromUI("android.media.AudioManager.OnAudioFocusChangeListener", _
"audio", Null)
Dim p As Phone
jo.RunMethod("requestAudioFocus", Array (event, p.VOLUME_SYSTEM, 2))
But i need when user login to my app and see my video,user music player dont be stop
How do i add this ability in my app?