michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: */ michael@0: michael@0: /* michael@0: * Allow application can control acoustic sound output through speaker. michael@0: * Reference https://wiki.mozilla.org/WebAPI/SpeakerManager michael@0: */ michael@0: [Constructor()] michael@0: interface MozSpeakerManager : EventTarget { michael@0: /* query the speaker status */ michael@0: readonly attribute boolean speakerforced; michael@0: /* force device device's acoustic sound output through speaker */ michael@0: attribute boolean forcespeaker; michael@0: /* this event will be fired when device's speaker forced status change */ michael@0: attribute EventHandler onspeakerforcedchange; michael@0: };