1

I have a SerialElement with two MediaElements and I want to jump in second element after I click the next button.

dc_
  • 64
  • 2

1 Answers1

0

From SerialElement documentation:

The only way that the "current" status can pass from one child to another is when the state of one of the current child's traits changes in such a way that the SerialElement knows that it needs to change its current child. For example, if each child in the sequence has the PlayTrait, the "current" status advances from one child to the next when a child finishes playing and its PlayTrait's PlayState property changes from PLAYING to STOPPED.

So you can force the current child's state to change:

(serialElement.currentChild.getTrait("PlayTrait") as PlayTrait).stop();
Kodiak
  • 5,978
  • 17
  • 35