Skip to content

Commit

Permalink
feat: add view only mode to peer
Browse files Browse the repository at this point in the history
  • Loading branch information
tyohan committed Sep 15, 2024
1 parent 20ea6fc commit 39d90a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/room/peer/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export const createPeer = ({ api, createStream, event, streams, config }) => {

/**
* Get all stored streams
* @returns {import('../stream/stream-types.js').RoomStreamType.InstanceStream[]}
*/
getAllStreams = () => {
return this._streams.getAllStreams()
Expand Down Expand Up @@ -1092,6 +1093,7 @@ export const createPeer = ({ api, createStream, event, streams, config }) => {
updateVideoSize: peer.updateVideoSize,
unobserveVideo: peer.unobserveVideo,
negotiate: peer.negotiate,
startViewOnly: peer.startViewOnly,
pendingNegotiation: peer.pendingNegotiation,
}
},
Expand Down

0 comments on commit 39d90a9

Please sign in to comment.