import {
StreamVideo,
LivestreamPlayer,
} from '@stream-io/video-react-native-sdk';
const LivestreamScreen() {
return (
<StreamVideo client={client}>
<LivestreamPlayer callType="livestream" callId={callId} />
</StreamVideo>
);
}
LivestreamPlayer
The LivestreamPlayer
is a UI component that plays a WebRTC livestream given the call ID and the call type. Under the hood, it uses the ViewerLivestream
component.
General usage
Let’s see how to show the LivestreamPlayer
UI:
Props
callType
The call type. Usually livestream
.
callId
The call ID.
ViewerLivestream
Component to override the ViewerLivestream component that is used under the hood.
Type | Default Value |
---|---|
ComponentType | undefined | ViewerLivestream |
On this page: