stop

 

Stops playing the current track and resets the media controller (rewinds and clears the info display area and restores the original "startUpText").

stop(clearTag)

 

Parameters

clearTag boolean (optional)

When true, the media controller will completely destroy the <audio> or <video> or flash <object>, which can be usefull when connecting to streaming servers to completely reset the connection.

Default Value: null

 

Return Value

none

 

See Also

 

Examples

 

<div id="myPlayer" data-wimpyplayer></div>
<script> // Create variable on "this" object, so it will be available to the stopPlayer function. var myPlayerObject; // When wimpy is ready, grab a handle to the player's javascript object.
wimpy.onReady(function(){ myPlayerObject = wimpy.getPlayer("myPlayer"); }); function stopPlayer(){ myPlayerObject.stop(); } </script> <p onclick="stopPlayer()">click to stop player</p>