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.

Preview of the LivestreamPlayer component.

General usage

Let’s see how to show the LivestreamPlayer UI:

import {
  StreamVideo,
  LivestreamPlayer,
} from '@stream-io/video-react-native-sdk';

const LivestreamScreen() {
  return (
    <StreamVideo client={client}>
      <LivestreamPlayer callType="livestream" callId={callId} />
    </StreamVideo>
  );
}

Props

callType

The call type. Usually livestream.

callId

The call ID.

ViewerLivestream

Component to override the ViewerLivestream component that is used under the hood.

TypeDefault Value
ComponentType| undefinedViewerLivestream
© Getstream.io, Inc. All Rights Reserved.