Platform docs
Auth, users, webhooks & more
Info:
This is beta documentation for Stream Video React Native SDK v2. For the latest stable version, see the latest version (v1).

LivestreamPlayer

Play WebRTC livestreams with call ID and type. Uses ViewerLivestream internally.

Preview of the LivestreamPlayer component.

General usage

Show 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.

Type Default Value
ComponentType| undefined ViewerLivestream

joinBehavior

Determines when the viewer joins the call. Can have one of these two values: "asap" (by default) or "live".

Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Video React Native v2: <Your Question>