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.
20 lines (19 loc) • 708 B
TypeScript
import { ReactNode } from 'react';
export declare type Settings = {
webrtcStatus: null | 'connected' | 'autoConnect' | 'connecting' | 'failed';
};
export declare type WebrtcContextValue = {
settings: Settings;
saveSettings: (updatedSettings: Settings) => void;
};
interface WebrtcProviderProps {
children: ReactNode;
pageSettings?: object;
}
export declare const initialSettings: Settings;
export declare const WebrtcContext: import("react").Context<WebrtcContextValue>;
export declare const WebrtcProvider: ({ children }: WebrtcProviderProps) => JSX.Element;
export declare const WebrtcConsumer: ({ children }: {
children: ReactNode;
}) => JSX.Element;
export {};