end Method

Requests that play of this Switch be terminated. If an optional error text string is provided, the Switch will be considered to have ended in error. If the Switch is not currently playing, no action is taken.

Note that this is not an “abort” – play will be ended after any currently playing item in the Switch completes.

void end(String optionalErrorText)