new MediaRecording()
The visible indicator present in the Utility Tray indicating that the
mic/camera is active at a target app name or web url.
Members
-
isRecording :Boolean
-
To tell if the current state is using any recording device, like mic or camera. Used to control the present of statusbar status.
-
messages :Object[]
-
To store current media recording messages
Methods
-
addMessage(detail)
-
Create and append the DOM element
Parameters:
Name Type Description detail Object The event.detail.
-
createItem(detail)
-
Return Panel data container
Parameters:
Name Type Description detail Object The event.detail.
-
getFormattedTimeString(now) → {String}
-
Return the formatted time string
Parameters:
Name Type Description now Date The date/time where we receive the object.
Returns:
String -
getOrigin(detail) → {String}
-
Get the app name or url if it's not an app
Parameters:
Name Type Description detail DOMEvent The event.detail.
Returns:
String -
handleEvent(evt)
-
Event handler interface for mozChromeEvent.
Updates the informations on utility tray.Parameters:
Name Type Description evt DOMEvent The event.
-
removeMessage(detail)
-
Remove the DOM element
Parameters:
Name Type Description detail Object The event.detail.
-
start()
-
Start the MediaRecorder to init variables and listeners
-
stop()
-
Stop the MediaRecorder to reset variables and listeners
-
updateRecordingStatus()
-
Update utility tray status