AWS Community Day CPH - Three problems of Terraform
Play audio-continuously
1. PLAY MP3 MUSIC CONTINUOUSLY
The adress of this web: http://pvhung20.url.ph/audio/audioplayer.html
This site used to hear music mp3 online, continuously. It consists of 3 audio players obtained from the
following website:
1 - http://nhacso.net
2 - http://www.woim.net
3 - http://mp3.zing.vn
You need not to remember those address, just use google with the keywords "nhac so", "woim", "zing
mp3".
At the top of the page there is a slideshow of 24 images 419x629 pixels. Mainly photos of tropical fish.
Next is "working list", where you will see buttons marked with "Play 1", “Play 2”. Click on the buttons
to start listening.
For the web works properly, you must give it 3 arrays. Among them the most important is the vid array
(video identifier).
2. There are 2 ways to create music list:
a- Complete list, for example:
t("nso# Take Me Home Country Road");
v("X1pXWkpbZg=="); d(227);
b- Incomplete list, for example:
t("nso# ?");
v("X1pXWkpbZg=="); d(200);
In incomplete list, you write for duration the same value 200 seconds. After that, while listning, you will
see on the audio player title and duration of the song. You have enough time to type in the title
(instead of question marker “?”) and correct the value of song duration.
After typing and correcting, click the button “Show Javascript”.
You will see in the beneath text area field the content of song list. Select all of it (by dragging mouse or
using mouse with pressing “Shift” keyboard button). Right click mouse, choose copy.
Paste the content in a new text file created by using “Notepad”.
3. Save the file with some name with the extention js, for example “myList1.js” (Choose Save as type: “All
file”, Encoding: “UTF-8”). In the web, at the end of head area, insert this line to use your newly created
javascript:
<script type=”text/javascript”>myList1.js</script>
In the web you will also see some images, showing how to get title, id, duration from the three mp3
music sites. Open Fire Fox or Chrome and Notepad to build the song list.
Note don’t use Ms. IE as browser because it does not run video player with google api. If you create zip
file to upload all needed files (html, swf, xml, jpg) into the same folder at a some server (e.g.
“hostinger.in”, “hostinger.co.uk” …) then you can use “Opera” to watch this web.
You can click on the button “Random” to change the order of playing songs