闪光CS4+ AS3、SoundChannel.position 不准确
编辑:很抱歉问题被改写,但我只是简化问题。我没有获得正在播放的外部 MP3 的 SoundChannel.position 的准确值。我尝试了各种音频比特率,并且始终如一地得到一个 SoundChannel.position ,它比实际音频播放的位置要少(约 250 毫秒)。同样,位置永远不等于持续时间。即使生成 SOUND_COMPLETE 事件,它也总是落后完成。
Adobe 表示,任何声音位置/持续时间问题都已通过最新的 Flash Player 得到解决。我显然没有得到相同的结果。我需要非常准确的位置值,以便拥有自定义的可拖动时间线和提示点。我应该尝试一些替代方法吗?我不知道该怎么办。谢谢。
EDIT: Sorry for the question being reworded, but I am just simplifying the issue. I am not getting accurate values for SoundChannel.position for an external MP3 that is playing. I've tried a variety of audio bitrates and consistently, i am getting a SoundChannel.position that is less (~250 ms) then where the actual audio has played to. As well, the position never equals the duration. It always finishes behind, even when the SOUND_COMPLETE event is generated.
Adobe says any Sound position/duration issues are fixed with the latest Flash Player. I am obviously not getting the same results. I need very accurate position values in order to have a custom draggable timeline and cue points. Is there some alternative method I should try? I'm not sure what to do. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用
TimerEvent.TIMER
而不是ENTER_FRAME
作为 此处:帧之间的实际间隔几乎永远不会1000 / fps
try to use a
TimerEvent.TIMER
instead ofENTER_FRAME
as here : real interval between frames is almost never1000 / fps