github daily-co/daily-js daily-js-2021-04-05-0.11.0
0.11.0

latest releases: daily-js-2024-09-12-0.71.2, daily-js-2024-08-07-0.70.0, daily-js-2024-07-25-0.69.0...
3 years ago

Features

  • participants()[id].tracks.audio.off and participants()[id].tracks.video.off may now include byRemoteRequest: true when a participant is explicitly muted by a meeting owner invoking updateParticipant(id, { setAudio: false }) or updateParticipant(id, { setVideo: false }) or the updateParticipants()(plural) equivalent calls. Note that when byRemoteRequest: true is set, byUser: true will also be set, so that you don't have to change any existing code and can continue treating meeting-owner-triggered mutes as regular mutes. When a user unmutes themselves, byRemoteRequest disappears along with byUser.
  • You can now specify max_cam_streams when using the default layout in startLiveStreaming() (e.g. startLiveStreaming({ rtmpUrl, backgroundColor, layout: { preset: 'default', max_cam_streams: 4 } }). This will limit the number of camera streams included in the live stream to the specified number. The current default value is 9, which is also the maximum number that may be specified.

Other improvements

  • The TypeScript definition of the 'recording-started' event payload now includes local (a boolean) and recordingId.

Don't miss a new daily-js release

NewReleases is sending notifications on new releases.