This Applet allows users to obscure their self-view and add framing crosshairs to their video elements.
selfView = {
hideView: {
enabled: false,
active: false
},
showFraming: {
enabled: false,
active: false
}
}
trackData
is also used to control the UI. Injection is only allowed if there is a media track.
REMOTE_TRACK_ADDED
- content: a remote video track has been addedREMOTE_TRACK_REMOVED
- content: a remote video track has been removedSELF_VIEW_SWITCH_ELEMENT
- dash->content: switch to the next self-view element
User inputs:
- Toggle blur for all self-view elements
- Toggle framing for all self-view elements
- Switch to the next self-view element
Button listeners:
- Blur All - toggles the blur state for all self-view elements
- Frame All - toggles the framing state for all self-view elements
- Switch Element - switches to the next self-view element
The dash context uses the StorageHandler
to listen for changes in the selfView
storage object and updates the UI accordingly.
The content script monitors video elements on the page and applies the self-view settings (obscure and framing) based on the selfView
storage object.
scanVideoElements
- scans the document for active video elements that are not remote tracks or screen sharesmodifyCurrentElement
- applies the obscure and framing settings to the current video elementswitchToNextElement
- switches to the next video element in the set of self-view elements
switchToNextElement
should only be a temporary measure until the logic for identifying the active self-view is improved.
Not applicable for this applet.
Not applicable for this applet.
Not applicable for this applet.
- Improve the logic for identifying the active self-view element or elements