AudioScheduledSourceNode

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.

The AudioScheduledSourceNode interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. Specifically, this interface defines the start() and stop() methods, as well as the ended event.

Note: You can't create an AudioScheduledSourceNode object directly. Instead, use an interface which extends it, such as AudioBufferSourceNode, OscillatorNode or ConstantSourceNode.

Unless stated otherwise, nodes based upon AudioScheduledSourceNode output silence when not playing (that is, before start() is called and after stop() is called). Silence is represented, as always, by a stream of samples with the value zero (0).

EventTarget AudioNode AudioScheduledSourceNode

Instance properties

Inherits properties from its parent interface, AudioNode.

Instance methods

Inherits methods from its parent interface, AudioNode, and adds the following methods:

start()

Schedules the node to begin playing the constant sound at the specified time. If no time is specified, the node begins playing immediately.

stop()

Schedules the node to stop playing at the specified time. If no time is specified, the node stops playing at once.

Events

Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface:

ended

Fired when the source node has stopped playing, either because it's reached a predetermined stop time, the full duration of the audio has been performed, or because the entire buffer has been played.

Specifications

Specification
Web Audio API
# AudioScheduledSourceNode

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
AudioScheduledSourceNode
Chrome – Partial support
Chrome 14 – 56 (Release date: 2011-09-16)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Partial support
Edge 12 – 18 (Release date: 2015-07-29)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – Partial support
Firefox 25 – 52 (Release date: 2013-10-29)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – Partial support
Opera 15 – 43 (Release date: 2013-07-02)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – Partial support
Safari 6 – 13.1 (Release date: 2012-07-25)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Safari – Full support
Safari 14 (Release date: 2020-09-16)
footnote Full support
Chrome Android – Partial support
Chrome Android 18 – 56 (Release date: 2012-06-27)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – Partial support
Firefox for Android 25 – 52 (Release date: 2013-10-29)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Firefox for Android – Full support
Firefox for Android 53 (Release date: 2017-04-19)
footnote Full support
Opera Android – Partial support
Opera Android 14 – 42 (Release date: 2013-05-21)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Opera Android – Full support
Opera Android 43 (Release date: 2017-09-27)
footnote Full support
Safari on iOS – Partial support
Safari on iOS 6 – 13.4 (Release date: 2012-09-10)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Safari on iOS – Full support
Safari on iOS 14 (Release date: 2020-09-16)
footnote Full support
Samsung Internet – Partial support
Samsung Internet 1 – 6.4 (Release date: 2013-04-27)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – Partial support
WebView Android 4.4 – 56 (Release date: 2013-12-09)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
WebView Android – Full support
WebView Android 57 (Release date: 2017-03-16)
footnote Full support
WebView on iOS – Partial support
WebView on iOS 6 – 13.4 (Release date: 2012-09-10)
footnote Partial support
footnote The AudioScheduledSourceNode interface itself is not present, but some of its members are available on the AudioBufferSourceNode, ConstantSourceNode and OscillatorNode interfaces.
WebView on iOS – Full support
WebView on iOS 14 (Release date: 2020-09-16)
footnote Full support
ended event
Chrome – Full support
Chrome 30 (Release date: 2013-10-01)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 25 (Release date: 2013-10-29)
footnote Full support
Opera – Full support
Opera 17 (Release date: 2013-10-08)
footnote Full support
Safari – Full support
Safari 7 (Release date: 2013-10-22)
footnote Full support
Chrome Android – Full support
Chrome Android 30 (Release date: 2013-10-02)
footnote Full support
Firefox for Android – Full support
Firefox for Android 25 (Release date: 2013-10-29)
footnote Full support
Opera Android – Full support
Opera Android 18 (Release date: 2013-11-20)
footnote Full support
Safari on iOS – Full support
Safari on iOS 7 (Release date: 2013-09-18)
footnote Full support
Samsung Internet – Full support
Samsung Internet 2 (Release date: 2014-10-17)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – Full support
WebView on iOS 7 (Release date: 2013-09-18)
footnote Full support
start
Chrome – Full support
Chrome 24 (Release date: 2013-01-10)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 25 (Release date: 2013-10-29)
footnote Full support
Opera – Full support
Opera 15 (Release date: 2013-07-02)
footnote Full support
Safari – Full support
Safari 7 (Release date: 2013-10-22)
footnote Full support
Chrome Android – Full support
Chrome Android 25 (Release date: 2013-02-27)
footnote Full support
Firefox for Android – Full support
Firefox for Android 25 (Release date: 2013-10-29)
footnote Full support
Opera Android – Full support
Opera Android 14 (Release date: 2013-05-21)
footnote Full support
Safari on iOS – Full support
Safari on iOS 7 (Release date: 2013-09-18)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1.5 (Release date: 2013-09-25)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – Full support
WebView on iOS 7 (Release date: 2013-09-18)
footnote Full support
stop
Chrome – Full support
Chrome 24 (Release date: 2013-01-10)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 25 (Release date: 2013-10-29)
footnote Full support
Opera – Full support
Opera 15 (Release date: 2013-07-02)
footnote Full support
Safari – Full support
Safari 7 (Release date: 2013-10-22)
footnote Full support
Chrome Android – Full support
Chrome Android 25 (Release date: 2013-02-27)
footnote Full support
Firefox for Android – Full support
Firefox for Android 25 (Release date: 2013-10-29)
footnote Full support
Opera Android – Full support
Opera Android 14 (Release date: 2013-05-21)
footnote Full support
Safari on iOS – Full support
Safari on iOS 7 (Release date: 2013-09-18)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1.5 (Release date: 2013-09-25)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – Full support
WebView on iOS 7 (Release date: 2013-09-18)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.

See also