forked from perrystreetsoftware/react-native-rtmpview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
32 lines (27 loc) · 1.01 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
declare module 'react-native-rtmpview' {
import * as React from 'react';
import * as ReactNative from 'react-native';
export type RtmpViewScalingModeValue = 'MovieScalingModeAspectFill' | 'MovieScalingModeResize';
export interface RtmpViewProps {
backgroundPlay?: boolean;
shouldMute?: boolean;
url?: string;
scalingMode?: {
MovieScalingModeAspectFill?: RtmpViewScalingModeValue;
MovieScalingModeResize?: RtmpViewScalingModeValue;
};
onLoadState: () => ReactNative.NativeSyntheticEvent;
onBitrateRecalculated: () => ReactNative.NativeSyntheticEvent,
onPlaybackState: () => ReactNative.NativeSyntheticEvent;
onFirstVideoFrameRendered: () => ReactNative.NativeSyntheticEvent;
}
export class RtmpView extends React.Component<RtmpViewProps> {
initialize(): any;
play(): any;
stop(): any;
pause(): any;
mute(): any;
unmute(): any;
}
export default RtmpView;
}