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.
22 lines (21 loc) • 723 B
TypeScript
/// <reference types="react" />
export interface PlayerConfigProps {
children?: React.ReactElement;
debugMode: boolean;
showToolbar: boolean;
psHost: string;
autoPlay: boolean;
autoConnect: boolean;
startMuted: boolean;
hoveringMouse: boolean;
fakeMouseWithTouches: boolean;
matchViewportRes: boolean;
}
export interface CommandsListItem {
type: 'ui' | 'sys';
uuid: string;
date: string;
payload: object;
}
export declare type WebrtcStatus = null | 'connected' | 'autoConnect' | 'connecting' | 'failed' | 'disconnected' | 'disconnectedRestart';
export declare type StreamStatus = null | 'play' | 'initialized' | 'loading' | 'error' | 'rejected';