开发者

how to crossfade two AudioElements in OSMF?

I'd like to crossfade two AudioElements inside a SerialElement but I don't know where to start. Any cl开发者_StackOverflow社区ue?


So far I've found that the only way is to put them in a parallel element. Have the 2nd audio element wrapped in a serial element along with a duration element.

Like so:

Parallel Element ->
    Audio Element
    Serial Element ->
         DurationElement
         Audio Element

You can then set up event listeners using their time and audio traits to perform a fade effect for each element.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜