54
1
SW
7.2.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 54
•
require "PLAYER"
•
ep = PLAYER.new()
•
ep.PLAYER_open{url="mmc://"}