0
我使用来自播放器的声音对象http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Sound.html。 它的方法play
以毫秒为单位获得第一个参数startTime
。 我怎么能得到的位置在字节的时间。声音对象位置字节
我使用来自播放器的声音对象http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Sound.html。 它的方法play
以毫秒为单位获得第一个参数startTime
。 我怎么能得到的位置在字节的时间。声音对象位置字节
var song:SoundChannel=new SoundChannel();
var mp3:Sound=new Sound(new URLRequest("http://localhost/file.mp3"));
var positionInBytes:int=0;
song=mp3.play();
positionInBytes=song.position/mp3.length*mp3.bytesTotal;