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