stop

HTML (DHTML)

stop Method

Internet Development Index

Stops playback of the media that is currently playing.

Syntax

mediaBar.stop()

Return Value

No return value.

Remarks

When the current instance of the Media Bar behavior is unloaded—in other words, during dynamic navigation in the Media Bar HTML content area, or when the content area is refreshed—the currently playing media stops. This design helps protect user privacy. However, developers should be aware of this functionality when designing dynamic content for the Media Bar content area, and consider other strategies to maintain the currently playing instance of the behavior. The iframe and XMLHttpRequest objects provide a couple of possibilities.

If a second call to the stop method is made within 10 seconds of the first call, the media pane loads a default page. This occurs even when the stop method call is made because the current instance of the Media Bar behavior is unloaded.

Applies To

mediaBar