非標準
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.
概要
enabled
プロパティの値は、ラジオが再生中 (true
) か、そうでない (false
) かを示します。
構文
var playing = instanceOfFMRadio.enabled
値
真偽値を返します。
例
window.addEventListener('enabled', function () { if (navigator.mozFMRadio.enabled) { console.log("ラジオは再生中です"); } else { console.log("ラジオは OFF です"); } });
仕様書
仕様はありません。