82
13.7.4
Example Script04:
Play an Internet radio station when the Internet connection is restored
The following
script
loads a
preset
when an available Internet connection (WAN) is detected. It can be
good to use this in combination with the silence detection event:
The device is playing an Internet radio station, however, due to a network problem, it no longer has access
to the radio. After a few seconds without audio, the silence detection event is triggered, and the device
starts playing content from the uSD card (back-up music). However, you want the radio that was playing
to start up again automatically once the Internet connection is available again.
Figure 73
require "ePLAYER1"
ep = ePLAYER1.new()
ep.PLAYER_open({preset=2})
Summary of Contents for PLAYER ONE
Page 54: ...54 Figure 32 The action of loading and playing the specified stream is configured Figure 33 ...
Page 85: ...85 Figure 76 accessing the network configuration Figure 77 editing network parameters ...
Page 90: ...90 Figure 83 editing WiFi password ...
Page 95: ...95 A wireless connection to your WiFi network will be established Figure 88 ...
Page 112: ...112 In this example su hotels Figura 107 ...
Page 114: ...114 Figura 109 Copy from here To here ...
Page 118: ...118 THIRD PARTY CONTROL PROTOCOL PLAYER ONE JSON Commands USUER MANUAL ...
Page 153: ...HOW TO IDENTIFY INTERNET RADIO URL STREAMS 153 ...