Member Junction
    Preparing search index...

    mj-media-stage: shows each surface where its placement says, without ever moving it in the DOM. Every surface's content is created once, in this layer, and a change of placement only changes where and how big it is, so a whiteboard keeps its view, a stream keeps playing and nothing reloads.

    The host positions the stage over the area it covers (it fills its positioned parent). A stage surface fills it, or covers StageSlot when the host gives one (such as the agent's place in a call); a tab surface covers TabSlot, an element the host's tab panel keeps for the active tab. Both slots are followed as they resize or slide; a pip surface floats in a box the user drags by its bar, resizes from its corner, or moves with the arrow keys, stacked in the bottom-right corner until moved (PipRects, PipRectChange), above the host's controls when they are in that corner (PipKeepClear); any other surface stays alive, out of sight. So does every surface while the stage itself has no size (a hidden ancestor). Each surface's template learns whether it is on screen (Visible), so the host can tell the surface to pause work nobody sees.

    Implements

    • AfterViewInit
    • OnDestroy
    Index

    Constructors

    Properties

    ActiveTabKey: string | null = null

    The key of the surface whose tab is active; only it shows over TabSlot.

    The host's template for the buttons on a picture-in-picture bar.

    PipHintId: string = ...

    The id of the hint that tells a keyboard user how to move and resize a picture-in-picture box.

    PipRectChange: EventEmitter<MediaStagePipRectChange> = ...

    The user moved or resized a picture-in-picture box: the host saves it.

    Surfaces: readonly MediaStageSurface[] = []

    The surfaces, each with its placement.

    SurfaceTemplate?: MediaStageSurfaceDirective

    The host's template for a surface's content.

    TopPipKey: string | null = null

    The picture-in-picture box the user touched last; it sits above the others.

    Accessors

    • get PipKeepClear(): HTMLElement | null

      Returns HTMLElement | null

    • set PipKeepClear(value: HTMLElement | null): void

      An element along the stage's foot that picture-in-picture boxes start clear of, such as the host's call controls, or null (the default) for none. While the box in the stage's bottom-right corner would cover any of it, the boxes the user has not moved stack upward from just above it instead; a box the user put somewhere stays there (PipRects). It is followed like TabSlot, and while it has no size it counts as none.

      Parameters

      • value: HTMLElement | null

      Returns void

    • get StageSlot(): HTMLElement | null

      Returns HTMLElement | null

    • set StageSlot(value: HTMLElement | null): void

      The element a stage surface covers instead of filling the stage, or null (the default) to fill it. It is followed like TabSlot, and while it has no size the stage surface is out of sight.

      Parameters

      • value: HTMLElement | null

      Returns void

    Methods

    • A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.

      Returns void

    • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

      Returns void

    • The pointer went down on a picture-in-picture bar (move) or its corner (resize). The box follows the pointer outside Angular and is committed once, when the pointer comes up. A press on a button in the bar is not a drag.

      Parameters

      Returns void