FMRadio.seekDown()

This API is available on Firefox or Firefox OS for installed or higher privileged applications.

Summary

The seekDown method is used to tell the radio to seek down to the next radio channel. The search circles back to upper frequencies when the lowest frequency has been reached.

If the frequency is successfully changed, the frequencychange event is triggered.

Only one seek is allowed at a time: If the radio is already seeking when seekDown is called the request will fail.

Syntax

JavaScript
var request = instanceOfFMRadio.seekDown();

Returns

It returns a DOMRequest to handle the success or error of the operation.

Example

JavaScript
var request = navigator.mozFMRadio.seekDown();
 
request.onsuccess = function () {
  console.log("Searching...");
}

request.onerror = function () {
  console.log("I guess we are already seeking.");
}

Specification

Not part of any specification.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/fmradio/seekdown

API Firefox OS FMRadio API Method Reference Référence WebFM