Sub Process_Globals
Dim MPS As MediaPlayerStream
Dim MPS1 As MediaPlayerStream
Dim MPS2 As MediaPlayerStream
Dim MPS3 As MediaPlayerStream
Dim MPS4 As MediaPlayerStream
End Sub
Sub Globals
Dim Button1 As Button
Dim Button2 As Button
Dim Button3 As Button
Dim Button4 As Button
Dim Button5 As Button
Dim Button6 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
MPS.Initialize("MPS")
MPS1.Initialize("MPS1")
MPS2.Initialize("MPS2")
MPS3.Initialize("MPS3")
MPS4.Initialize("MPS4")
MPS.SetVolume(0,0)
MPS1.SetVolume(0,0)
MPS2.SetVolume(0,0)
MPS3.SetVolume(0,0)
MPS4.SetVolume(0,0)
MPS.Load("http://sc16.frf.llnw.net:80/stream/ndrstream_n-joy_hi_mp3")
MPS1.Load("http://62.27.44.59:8000/ostseewellelive/livestream.mp3")
MPS2.Load("http://85.239.108.31:80/antennemv-mp3")
MPS3.Load("http://edge.live.mp3.mdn.newmedia.nacamar.net/harmonyfm/hqschlager.mp3")
MPS4.Load("http://onair.krone.at:80/kronehit-charts.mp3")
End If
Activity.LoadLayout("1")
End Sub
Sub MPS_StreamReady
MPS.Play
End Sub
Sub MPS1_StreamReady
MPS1.Play
End Sub
Sub MPS2_StreamReady
MPS2.Play
End Sub
Sub MPS3_StreamReady
MPS3.Play
End Sub
Sub MPS4_StreamReady
MPS4.Play
End Sub
Sub MPS_StreamError(ErrorCode As String, ExtraData As Int)
MPS.Load("http://sc16.frf.llnw.net:80/stream/ndrstream_n-joy_hi_mp3")
End Sub
Sub MPS1_StreamError(ErrorCode As String, ExtraData As Int)
MPS1.Load("http://62.27.44.59:8000/ostseewellelive/livestream.mp3")
End Sub
Sub MPS2_StreamError(ErrorCode As String, ExtraData As Int)
MPS2.Load("http://85.239.108.31:80/antennemv-mp3")
End Sub
Sub MPS3_StreamError(ErrorCode As String, ExtraData As Int)
MPS3.Load("http://edge.live.mp3.mdn.newmedia.nacamar.net/harmonyfm/hqschlager.mp3")
End Sub
Sub MPS4_StreamError(ErrorCode As String, ExtraData As Int)
MPS4.Load("http://onair.krone.at:80/kronehit-charts.mp3")
End Sub
Sub Button1_Click
MPS.SetVolume(1,1)
MPS1.SetVolume(0,0)
MPS2.SetVolume(0,0)
MPS3.SetVolume(0,0)
MPS4.SetVolume(0,0)
End Sub
Sub Button2_Click
MPS.SetVolume(0,0)
MPS1.SetVolume(0,0)
MPS2.SetVolume(0,0)
MPS3.SetVolume(0,0)
MPS4.SetVolume(0,0)
End Sub
Sub Button4_Click
MPS.SetVolume(0,0)
MPS1.SetVolume(1,1)
MPS2.SetVolume(0,0)
MPS3.SetVolume(0,0)
MPS4.SetVolume(0,0)
End Sub
Sub Button3_Click
MPS.SetVolume(0,0)
MPS1.SetVolume(0,0)
MPS2.SetVolume(1,1)
MPS3.SetVolume(0,0)
MPS4.SetVolume(0,0)
End Sub
Sub Button5_Click
MPS.SetVolume(0,0)
MPS1.SetVolume(0,0)
MPS2.SetVolume(0,0)
MPS3.SetVolume(1,1)
MPS4.SetVolume(0,0)
End Sub
Sub Button6_Click
MPS.SetVolume(0,0)
MPS1.SetVolume(0,0)
MPS2.SetVolume(0,0)
MPS3.SetVolume(0,0)
MPS4.SetVolume(1,1)
End Sub