@@ -7,6 +7,7 @@ import VideoReceiveStats from './VideoReceiveStats';
77export const FunctionalStreamRenderer = forwardRef ( ( {
88 remoteParticipant,
99 stream,
10+ isPinningActive,
1011 isPinned,
1112 dominantRemoteParticipant,
1213 dominantSpeakerMode,
@@ -144,35 +145,42 @@ export const FunctionalStreamRenderer = forwardRef(({
144145
145146 if ( stream . isAvailable ) {
146147 return (
147- < div id = { componentId } ref = { componentContainer } className = { `stream-container stream-count-${ streamCount } ${ stream . mediaStreamType === 'ScreenSharing' ? `ms-xxl12` : `` } ${ stream . isAvailable ? 'rendering' : '' } ${ isPinned ? 'pinned' : '' } ` } >
148- < div className = { `remote-video-container ${ isSpeaking && ! isMuted ? `speaking-border-for-video` : `` } ` } id = { videoContainerId } ref = { videoContainer } >
149- < h4 className = "video-title" >
150- { displayName ? displayName : remoteParticipant . displayName ? remoteParticipant . displayName : utils . getIdentifierText ( remoteParticipant . identifier ) }
151- </ h4 >
152- < CustomVideoEffects
153- stream = { stream }
154- buttons = { {
155- add : {
156- label : "Set B/W effect" ,
157- disabled : false
158- } ,
159- remove : {
160- label : "Remove B/W effect" ,
161- disabled : false
148+ < div id = { componentId }
149+ ref = { componentContainer }
150+ className = { `stream-container stream-count-${ streamCount }
151+ ${ stream . mediaStreamType === 'ScreenSharing' ? `ms-xxl12` : `` }
152+ ${ stream . isAvailable ? 'rendering' : '' }
153+ ${ isPinned ? 'pinned' : ( isPinningActive ? 'pinning-is-active' : '' ) } ` } >
154+ < div className = { `remote-video-container ${ isSpeaking && ! isMuted ? `speaking-border-for-video` : `` } ` }
155+ id = { videoContainerId }
156+ ref = { videoContainer } >
157+ < h4 className = "video-title" >
158+ { displayName ? displayName : remoteParticipant . displayName ? remoteParticipant . displayName : utils . getIdentifierText ( remoteParticipant . identifier ) }
159+ </ h4 >
160+ < CustomVideoEffects
161+ stream = { stream }
162+ buttons = { {
163+ add : {
164+ label : "Set B/W effect" ,
165+ disabled : false
166+ } ,
167+ remove : {
168+ label : "Remove B/W effect" ,
169+ disabled : false
170+ }
171+ } }
172+ isLocal = { false }
173+ videoContainerId = { videoContainerId } />
174+ {
175+ isLoading && < div className = "remote-video-loading-spinner" > </ div >
162176 }
163- } }
164- isLocal = { false }
165- videoContainerId = { videoContainerId } />
177+ </ div >
166178 {
167- isLoading && < div className = "remote-video-loading-spinner" > </ div >
179+ videoStats && showMediaStats &&
180+ < h4 className = "video-stats" >
181+ < VideoReceiveStats videoStats = { videoStats } transportStats = { transportStats } />
182+ </ h4 >
168183 }
169- </ div >
170- {
171- videoStats && showMediaStats &&
172- < h4 className = "video-stats" >
173- < VideoReceiveStats videoStats = { videoStats } transportStats = { transportStats } />
174- </ h4 >
175- }
176184 </ div >
177185 ) ;
178186 }
0 commit comments