Skip to main content

Type Alias: LivestreamViewProps

LivestreamViewProps: object

Defined in: packages/react-native-client/src/components/LivestreamView.tsx:10

Props of the LivestreamView component

Type declaration

autoStartPip?

optional autoStartPip: boolean

A variable deciding whether the Picture-in-Picture mode should be started automatically after the app is backgrounded. Defaults to false.

autoStopPip?

optional autoStopPip: boolean

A variable deciding whether the Picture-in-Picture mode should be stopped automatically on iOS after the app is foregrounded. Always enabled on Android as PiP is not supported in foreground. Defaults to false.

orientation?

optional orientation: "landscape" | "portrait"

Used to override the orientation of the video (from metadata). Defaults to "portrait".

pipEnabled?

optional pipEnabled: boolean

A variable deciding whether the Picture-in-Picture is enabled. Defaults to true.

pipSize?

optional pipSize: object

A variable deciding the size of the Picture-in-Picture mode.

pipSize.height

height: number

pipSize.width

width: number

ref?

optional ref: Ref<LivestreamViewRef>

style?

optional style: StyleProp<ViewStyle>

Styles of the LivestreamView component