metaeditor
Version:
The Pixel Streaming library for ReactJS facilitates the integration of Unreal Engine v.5 into a web browser. It enables the transmission of commands and receipt of callbacks from the stream server once Unreal Engine is launched.
27 lines (26 loc) • 1.18 kB
TypeScript
import { StateProps } from './initial';
import { PlayerConfigProps, WebrtcStatus, StreamStatus, CommandsListItem } from './types';
declare const actions: () => {
readonly state: StateProps;
readonly commandsList: CommandsListItem[];
dispatch(payload: unknown): void;
readonly isStreamActive: boolean;
readonly isWebrtcError: boolean;
setWebrtcStatus(status: WebrtcStatus, message?: string | boolean): void;
setStreamStatus(status: WebrtcStatus, message?: string | boolean): void;
setFreezeFrame(freezeFrame: boolean): void;
addCommand(payload: CommandsListItem): void;
saveConfig(playerConfig: PlayerConfigProps): void;
};
export interface ActionProps {
state: StateProps;
commandsList: CommandsListItem[];
isStreamActive: boolean;
isWebrtcError: boolean;
setWebrtcStatus: (status: WebrtcStatus, message?: string | boolean) => void;
setStreamStatus: (status: StreamStatus, message?: string | boolean) => void;
setFreezeFrame: (freezeFrame: boolean) => void;
addCommand: (payload: CommandsListItem) => void;
saveConfig: (config: PlayerConfigProps) => void;
}
export default actions;