80
13.7.2
Example Script02:
Automatically play uSD cards when inserted
There are applications in which the local storage medium will change depending on the user. For
example, an activity room in a gym where, for each session, different instructors will change the music.
In other words, they will connect their USB device or uSD card to play their content. This can be
automated so that users simply have to insert their device into the device, and playback starts
automatically. This avoids unauthorised tampering and/or saves them from having to read the manual
for the device.
So, the following example
script
automatically plays the uSD card as soon as it is inserted. You could
create a
script
to do the same thing with the USB device, by simply changing the trigger and the URL.
Figure 71
•
require "ePLAYER1"
•
ep = ePLAYER1.new()
•
ep.PLAYER_open{url="mmc://"}
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 ...