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.
精彩评论