The WebFM API provides access to the device FM radio.
You can set the frequency with FMRadio.setFrequency()
.
Does the WebFM API for Firefox OS support LF
and MF
too, or does it only work with VHF
?
- LF Low Frequency 30–300 kHz
- MF Medium Frequency 0,3–3 MHz
- VHF Very High Frequency 30–300 MHz
Unfortunately, the specification at MDN is not clear enough.
It's depend on a Gecko pref, which is set by the hardware vendor, so, yes, it's device dependent.
http://dxr.mozilla.org/mozilla-central/source/dom/fmradio/FMRadioService.cpp#64-78