MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

FMRadio.cancelSeek

非標準
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

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

概要

cancelSeek メソッドは、ラジオチャンネルの周波数の探索を中止するために使用します。

構文

var request = instanceOfFMRadio.cancelSeek();

戻り値

命令の成功またはエラーを扱う DOMRequest を返します。

navigator.mozFMRadio.seekUp();

window.onfrenquencychange = function () {
  var request = navigator.mozFMRadio.cancelSeek();
 
  request.onsuccess = function () {
    console.log("Ok, let's stop seeking.");
  }

  request.onerror = function () {
    console.log("Mmmh... ok, but there is actually nothing to cancel.");
  }
}

仕様書

仕様はありません。

参照

ドキュメントのタグと貢献者

 このページの貢献者: fscholz, Marsf
 最終更新者: Marsf,