_sounds = new ResourceManager();
_sounds
..addCustomObject(data.title, AudioElementSound.load(data.songPaths[0], new SoundLoadOptions(alternativeUrls:data.songPaths, mp3:true, ogg:true, wav:true)))
..load().then((_)
{
Sound sound = _sounds.getCustomObject(data.title);
print("${sound.length}");
});
--
You received this message because you are subscribed to the Google Groups "StageXL" group.
Visit this group at http://groups.google.com/group/stagexl.
To view this discussion on the web visit https://groups.google.com/d/msgid/stagexl/a244f654-24d3-4ae3-8658-9f92f2808eab%40googlegroups.com.
Thanks for the reply! I thought maybe the id3 tags could have been the problem, but If I run this exact code in chrome or Firefox the length is correctly calculated. The length is not correctly calculated on safari for desktops or mobile.
It's weird to me that it would happen in safari for ios 7.x & 8.x and for safari 6 on Mac osx 10.8 when I have no problems with it working in Chrome or Firefox. Is there another way to pull the length from the song other than using the .length property? I suppose I could try the ac3 format.
It's weird to me that it would happen in safari for ios 7.x & 8.x and for safari 6 on Mac osx 10.8 when I have no problems with it working in Chrome or Firefox. Is there another way to pull the length from the song other than using the .length property? I suppose I could try the ac3 format.
SoundChannel.onComplete; // An event that fires as soon as the SoundChannel completed the playback.
SoundChannel.loop; // Getter if the SoundChannel is looping.
SoundChannel.stopped; // Getter if the SoundChannel is stopped.
SoundChannel.position; // Getter of the playback position in seconds.
SoundChannel.sound; // Getter of the parent Sound.
SoundChannel.paused; // Getter/Setter to pause the SoundChannel.
SoundChannel.soundTransform; // Getter/Setter to set the sound transformation of the SoundChannel.
SoundChannel.stop(); // Stop the playback of the SoundChannel. Can't be resumed!
SoundChannel.pause(); // Pause playback of the SoundChannel.
SoundChannel.resume(); // Resume playback of the SoundChannel.
--
You received this message because you are subscribed to the Google Groups "StageXL" group.
Visit this group at https://groups.google.com/group/stagexl.
To view this discussion on the web visit https://groups.google.com/d/msgid/stagexl/f2bdd607-278a-4e72-9c4b-e5710a9915eb%40googlegroups.com.
It looks like the position getter is not taking startTime into account during it's calculations.
--
You received this message because you are subscribed to the Google Groups "StageXL" group.
Visit this group at https://groups.google.com/group/stagexl.
To view this discussion on the web visit https://groups.google.com/d/msgid/stagexl/f6eb68dd-5922-44bc-a3cf-f0a05023c104%40googlegroups.com.