- put this on top:
object GlobalVariable {
var mp = MediaPlayer()
}
use it everywhere
GlobalVariable.mp
so you won't have to worry about open too many MediaPlayer at the same time
object GlobalVariable {
var mp = MediaPlayer()
}
use it everywhere
GlobalVariable.mp
so you won't have to worry about open too many MediaPlayer at the same time