javascript - Soundmanager 2 on Iphone 5 not playing -
i have been trying test soundmanager 2 on iphone 5 no luck getting player play file. debug output displaying following:
mysound: suspend mysound: loadstart mysound: waiting soundmanager.load(): current url assigned. mysound: load (rain.mp3) mysound: play(): loading - attempting play... mysound: play(): playing (multi-shot) soundmanager.load(): current url assigned. mysound: load (rain.mp3) mysound: ignoring request load again soundmanager.load(): current url assigned. mysound: load (rain.mp3) mysound: play(): loading - attempting play... soundmanager.load(): current url assigned. mysound: load (rain.mp3) soundmanager.load(): current url assigned. mysound: load (rain.mp3) mysound: load (rain.mp3) mysound: load (rain.mp3) mysound: using html5 mysound: merged options: soundmanager.createsound(): mysound (rain.mp3) soundmanager 2: ready. soundmanager 2 html5 support: mp3 = true, mp4 = true, ogg = true, opus = true, wav = true soundmanager 2: using singleton html5 audio() pattern device. soundmanager v2.97a.20130512 (html5-only mode)
i have simple test page:
<html> <head> <title> </title> <script type="text/javascript" src="assets/js/controls/soundmanager2.js?<?php echo time(); ?>"></script> <script> soundmanager.setup({ url: '/path/to/swf-files/', flashversion: 9, // optional: shiny features (default = 8) // optional: ignore flash possible, use 100% html5 mode preferflash: false, onready: function() { // ready use; soundmanager.createsound() etc. can called. soundmanager.createsound({ id: 'mysound', url: 'rain.mp3', autoload: true, autoplay: true, onload: function() { alert('the sound '+this.id+' loaded!'); }, volume: 50 }); } }); </script> </head> <body></body> </html>
their demo site works find on iphone, set differently make work.
thanks.
Comments
Post a Comment