This page covers SDK playback data for rooms. Use your own player layer, such as AVPlayer, ExoPlayer, a browser video element with HLS support, or another product-approved player, after the SDK returns a playable URL.
Platform Surface
Playback Flow
1
Observe or fetch the room
Use a room live object or room query from the platform SDK. Keep the subscription alive while the viewing screen is open.
2
Choose a playback source
Use the live URL only when the room is
live or waitingReconnect. Use recorded metadata only when the room is recorded.3
Hand the URL to your player
Pass the selected URL to your app-owned player. Do not call player APIs that are not part of the social.plus SDK.
4
Track watch time if needed
Create and update a room watch session from
room.analytics() when your product considers the viewer actively watching.Parameters
Choose a Playback Source
Select a URL from SDK room state before creating or updating your player. Return no source for statuses that are not playable.Observe Playback State
Observe room state while the viewer is on a playback screen. A room can move from waiting, to live playback, to ended processing, and later to recorded playback.Refresh Recorded Playback
Refresh recorded playback data before starting a recorded video, after a long pause, or when your player reports an expired or unauthorized media URL.Status Handling
SDK and Player Boundary
Related Topics
Live Viewing
Observe live room state and hand the live URL to your player.
Recorded Playback
Wait for recorded status, read recorded metadata, and refresh URLs.
Livestream Analytics
Track room watch sessions after playback starts.