Android Question Switching between various live Internet streams while using Exoplayer

Exoplayer is little, simple and very effective library for B4A. But I Am helpless to tune between various live streams. Try to imagine The situation, that you are listenning one Live internet radio and you want to switch to other station. And you do not want to use build in Exoplayer engine GUI with buttons play, Pause or Stop. You simply want to use simple B4A created GUi based on buttons. And every button will play different live INternet radio station. But how to achieve this goal? Exoplayer library lack stop command support, so Pause or Exoplayer release function can release The stream. Who will have some idea how to reach my goal with Exoplayer library?
Pause really work. Release function also work. But. Where should I add initialization code for Exoplayer?
If eevery sub related to every button will always contain The following code:
player1.Initialize("player")
Dim sources As List
sources.Initialize
sources.Add(player1.CreateUriSource(streamdirectlink""))
player1.Prepare(player1.CreateListSource(sources))
player1.Play

It will be very uneasy to Pause The stream playback.
 
Top