get();
Simple HTML5 based audio player, includes support for C64 SID files.
-c center
ONO::Lib::Audio::Object->get( $file, $width, $height, $switches, $BASE );
returns: $AUDIO
icon();
Icon based simple audio player
-G green led
-R red led
-Y yellow led
ONO::Lib::Audio::Object->icon( $id, $file, $size, $switches );
mime();
Return MIME code.
ONO::Lib::Audio::Object->mime( );
player();
The ONO Audio Player module.
-a autoplay
-b box with rounded corners
-B box with rounded corners, color adjusted
-C controls (save/del, currently only with -I, requires script_url)
-i info (reserved - not implemented yet, not used yet)
-I icon (currently requires name)
-L large (auto-size)
-s small
-m mini
-n show filename
-N filename: simplify (requires -n)
-U filename: uppercase (requires -n)
-X filename: no extension (requires -n)
ctrl, which allows for a second set of switches:
-d delete
-l load (not implemented yet)
-s save
ONO::Lib::Audio::Object->player( $id, $file, $switches, $ctrl, $script_url, $BLK_ref );
returns: qq~$AUDIO<script>\$('audio,video').mediaelementplayer();</script>~
player_popup();
Audio player popup feature.
ONO::Lib::Audio::Object->player_popup( $id, $file );
returns: qq~<div class="rel" style="width:28px;height:31px"> <div id="$id" class="radius5 abs" style="width:28px;overflow:hidden;background-color:#222222;z-index:9" onmouseover = "document.getElementById('$id').style.width='400px';" onmouseout = "document.getElementById('$id').style.width='28px';"> <audio id="player2" src="$file" type="$MIME" controls="controls" style="width:400px"></audio> </div> </div> <script>\$('audio,video').mediaelementplayer();</script> ~
player_script();
Embed the ONO Audio Player JS scripts.
-S no script / event listener
ONO::Lib::Audio::Object->player_script( );
returns: qq~<script src="/ono/osr/javascript/mediaelement/build/jquery.js"></script> <script src="/ono/osr/javascript/mediaelement/build/mediaelement-and-player.min.js"></script> <link rel="stylesheet" href="/ono/osr/javascript/mediaelement/build/mediaelementplayer.min.css" /> $SCRIPT ~