Audio Sequence 0.1 Beta
Submitted by Mohamed Feddad on Wednesday, January 3, 2018 - 20:47.
Language
jQuery based script that allows you to control, monitor and play multiple audio files in sequences at a time.
Live Demo
features:
- Repeat whole: allows you to repeat a list of audio files as whole for a given number of repeats
- Repeat each: allows you to repeat each file of list of audio files for a certain number of repeats
- Repeat forever: allows you to repeat a list of audio files as whole forever !
- Repeat delay: allows you to add a delay in-between repeats
- Log: gives music player like interface from the console
Setup:
- <script src='audio_sequence.js' type='text/javascript'></script>
- <script type='text/javascript'>
- var player = audio_sequence({
- files: ['1.mp3', '2.mp3', '4.mp3'],
- repeat_forever: 'true'
- })
- </script>
Options:
- this.options = {
- files: [], // audio files inserted will be stored in
- repeats: 0, // number of repeats to obey with some adjustments later
- repeat_whole: 'true', // repeat all files as whole for the number of repeats
- repeat_each: 'false', // repeat each file for the number of repeats [You can not select both !]
- repeat_forever: 'false', // to keep repeating endlessly, only works on repeat whole
- repeat_delay: 0, // to add a time delay between each repeat in seconds
- reverse_order: 'false', // to reverse the order list of audio files
- shuffle_order: 'false', // to randomly shuffle the order of the files list
- volume: options.volume || 0.5, // to set the default volume > 0 && < 1
- auto_start: 'true', // to auto start playing as the module loads
- cleanup: 'true' // to clean up after existing
- }
Full documentation here
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Add new comment
- 67 views