Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

FMRadio.seekUp()

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

Summary

The seekUp method is used to tell the radio to seek up to the next radio channel. The search circles back to lower frequencies when the highest 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 seekUp is called the request will fail.

Syntax

var request = instanceOfFMRadio.seekUp();

Returns

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

Example

var request = navigator.mozFMRadio.seekUp();
 
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

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli, kscarfone, Jeremie
 Last updated by: chrisdavidmills,