@api.stream/studio-kit
Version:
Client SDK for building studio experiences with API.stream
37 lines (36 loc) • 1.28 kB
TypeScript
import React from 'react';
import { CompositorSettings } from '../core/types';
/**
* Render the output compositor displaying the stream canvas, which will be used
* to display the live feed once a user starts their broadcast. Renders into a
* supplied HTML element.
*
* This compositor may double as an interactive editor with optional settings.
*
* _Note: The compositor will automatically render at the largest possible size
* accomodated by the element that is passed as its container. If the container
* is smaller than the project resolution (e.g. 720px x 1280px), all of the canvas
* elements will scale down automatically to fit._
*/
export declare const render: (settings: CompositorSettings) => void;
type CompositorContext = {
draggingNodeId: string | null;
setDraggingNodeId: (id: string) => void;
} & CompositorSettings;
export declare const CompositorContext: React.Context<CompositorContext>;
export declare enum LogoPosition {
TopLeft = "top-left",
TopRight = "top-right",
BottomLeft = "bottom-left",
BottomRight = "bottom-right"
}
export declare enum BannerStyle {
DEFAULT = "default",
MINIMAL = "minimal",
BUBBLE = "bubble"
}
export declare enum PlatformType {
TWITCH = "twitch",
YOUTUBE = "youtube"
}
export {};