import React from 'react'; import { Sdp } from 'media-stream-library'; import { VideoProperties } from './PlaybackArea'; interface WsRtspCanvasProps { readonly forwardedRef?: React.Ref; /** * The _intended_ playback state. */ readonly play?: boolean; /** * The source URI for the WebSocket server. */ readonly ws?: string; /** * The RTSP URI. */ readonly rtsp?: string; /** * Callback to signal video is playing. */ readonly onPlaying: (props: VideoProperties) => void; /** * Callback when SDP data is received. */ readonly onSdp?: (msg: Sdp) => void; /** * Start playing from a specific offset (in seconds) */ readonly offset?: number; /** * Activate automatic retries on RTSP errors. */ readonly autoRetry?: boolean; } /** * Properties: * * play: indicated the _intended_ playback state * ws/rtsp: src URIs for WebSocket/RTP server * * Internal state: * canplay: there is enough data on the video element to play * playing: the video element playback is progressing */ export declare const WsRtspCanvas: React.FC; export {};