Member Junction
    Preparing search index...

    mj-storage-media-player — an MJStorage-bound wrapper around MJMediaPlayerComponent.

    Resolves one or more MJ Storage file IDs into playable MediaTracks by minting a short-lived authenticated streaming URL per file via the CreateMediaAccessToken GraphQL mutation, and handing those URLs to the generic player. The <audio>/<video> element streams each URL natively over HTTP Range (progressive playback + seek-before-download for large video) instead of base64'ing the whole file over GraphQL. Surfaces graceful loading / no-access / empty states.

    Waveform peaks: when the recording has a peaks.json sidecar in storage, CreateMediaAccessToken returns precomputed peaks and this wrapper sets them on the MediaTrack.Peaks, so the player renders the real waveform instantly with NO client-side fetch/decode. When no sidecar exists, audio waveforms still decode client-side via the streaming URL (the waveform's one-time fetch(Url) issues a no-Range GET, which returns the full file — fine for audio). Video shows the progress bar.

    Hierarchy (View Summary)

    Implements

    • OnInit
    Index

    Constructors

    Properties

    Autoplay: boolean = false
    PlaybackRates: number[] = ...
    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    ShowFullscreen: boolean = true
    ShowSkipControls: boolean = true
    ShowSpeedControl: boolean = true
    ShowTranscript: boolean = true
    ShowTranscriptToggle: boolean = true

    Whether the transcript show/hide toggle button renders. Forwarded to the generic player.

    ShowVolume: boolean = true
    ShowWaveform: boolean = true

    Forwarded to the generic player. On by default — the streaming URL is same-origin (served by MJAPI) and a no-Range GET returns the full file, so client-side peak extraction decodes cleanly.

    SkipSeconds: number = 30
    StartAtMs: number | null = null
    Transcript: MediaTranscriptCue[] | null = null

    Transcript cues forwarded to the generic player.

    TranscriptPosition: "side" | "bottom" = 'bottom'

    Where the transcript sits. Defaults to 'bottom' (matches the generic player).

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns Promise<void>