GetStream / stream-video-js

GetStream JavaScript Video SDK
https://getstream.io/video/sdk/
Other
57 stars 19 forks source link

fix(state): aligns the participant state with other SDKs #1357

Closed oliverlaz closed 1 month ago

oliverlaz commented 1 month ago

Overview

Align the shape of the Participant State and docs with the one that iOS and Android have (without breaking changes). Reference: https://docs.google.com/spreadsheets/d/1W9lzP6aSjGA82uYa47Y6ntx2klRCyjd6-6iSfLPQZg0/edit#gid=0

Introduces four helpers that make it easier to work with publishedTracks.

import { hasVideo, hasAudio, hasScreenShare, hasScreenShareAudio } from '@stream-io/video-<SDK>';

SDKs and Sample Apps are updated accordingly.