media-stream-player
Version:
Player built on top of media-stream-library
78 lines (77 loc) • 2.44 kB
TypeScript
import React from 'react';
interface InitialAttributes {
readonly variant: string;
readonly hostname: string;
readonly autoplay: boolean;
readonly autoretry: boolean;
readonly format: string;
readonly compression: string;
readonly resolution: string;
readonly rotation: string;
readonly camera: string;
readonly fps: string;
readonly audio: string;
readonly clock: string;
readonly date: string;
readonly text: string;
readonly textstring: string;
readonly textcolor: string;
readonly textbackgroundcolor: string;
readonly textpos: string;
readonly secure: boolean;
}
type SetStateType = React.Dispatch<React.SetStateAction<InitialAttributes>>;
/**
* Create a custom element that uses React to mount the actual Player component.
*
* Note that this does not use a shadow DOM to avoid certain issues with React.
*/
export declare class MediaStreamPlayer extends HTMLElement {
private _setState?;
private _root?;
attributeChangeSubscriber(cb: SetStateType): void;
static get observedAttributes(): string[];
private get allAttributes();
get variant(): string;
set variant(value: string);
get hostname(): string;
set hostname(value: string);
get autoplay(): boolean;
set autoplay(value: boolean);
get autoretry(): boolean;
set autoretry(value: boolean);
get format(): string;
set format(value: string);
get compression(): string;
set compression(value: string);
get resolution(): string;
set resolution(value: string);
get rotation(): string;
set rotation(value: string);
get camera(): string;
set camera(value: string);
get fps(): string;
set fps(value: string);
get audio(): string;
set audio(value: string);
get clock(): string;
set clock(value: string);
get date(): string;
set date(value: string);
get text(): string;
set text(value: string);
get textstring(): string;
set textstring(value: string);
get textcolor(): string;
set textcolor(value: string);
get textbackgroundcolor(): string;
set textbackgroundcolor(value: string);
get textpos(): string;
set textpos(value: string);
get secure(): boolean;
set secure(value: boolean);
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(attrName: string, _: string, value: string): void;
}
export {};