-
-
Save viggin543/170cc1ed2c2f83da634e2416c9fc422b to your computer and use it in GitHub Desktop.
omfg.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| calculateSubscriberVideoPanelElement(stream: any, isMemberStream: boolean) { | |
| const { callModel, cameraModel, medium, isSupervisor } = this.props; | |
| if (isNil(stream)) { | |
| if (isMemberStream) { | |
| if (callModel && callModel.sirenEndTime) { | |
| return <SirenCounter callModel={callModel} withTokboxWrapper={true} />; | |
| } else { | |
| return <NoVideo medium={medium} cameraModel={cameraModel} />; | |
| } | |
| } else { | |
| this.logger.error(`Stream is null in subscriber component`); | |
| return <NoVideo medium={medium} cameraModel={cameraModel} />; | |
| } | |
| } else { | |
| if (isSupervisor) return this.renderTokboxSubscriber(stream); | |
| if (!stream.hasVideo && !stream.streamTgMetadata.isSip) { | |
| if (callModel && callModel.sirenEndTime) { | |
| return <SirenCounter callModel={callModel} withTokboxWrapper={true} />; | |
| } else { | |
| return ( | |
| <React.Fragment> | |
| <NoVideo medium={medium} cameraModel={cameraModel} /> | |
| <HiddenDiv>{this.renderTokboxSubscriber(stream)}</HiddenDiv> | |
| </React.Fragment> | |
| ); | |
| } | |
| } | |
| return this.renderTokboxSubscriber(stream); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment