Search...
isPlaying
Indicates if the element is currently playing.
Description
Type:
booleanRead Only
Was this helpful?
Get an element's current playing status
Copy Code
1let isPlaying = $w("#myElement").isPlaying; // false
Toggle an element's current playing state
Copy Code
1if( $w("#myElement").isPlaying ) {2 $w("#myElement").pause();3}4else {5 $w("#myElement").play();6}