You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
@@ -66,7 +66,7 @@ export default class VideoFeed extends React.Component<IProps, IState> {
|
|||||||
this.playMedia();
|
this.playMedia();
|
||||||
}
|
}
|
||||||
|
|
||||||
playMedia() {
|
private playMedia() {
|
||||||
const audioOutput = CallMediaHandler.getAudioOutput();
|
const audioOutput = CallMediaHandler.getAudioOutput();
|
||||||
const currentMedia = this.getCurrentMedia();
|
const currentMedia = this.getCurrentMedia();
|
||||||
|
|
||||||
@@ -117,11 +117,11 @@ export default class VideoFeed extends React.Component<IProps, IState> {
|
|||||||
// seem to be necessary - Šimon
|
// seem to be necessary - Šimon
|
||||||
}
|
}
|
||||||
|
|
||||||
getCurrentMedia() {
|
private getCurrentMedia() {
|
||||||
return this.audio.current || this.video.current;
|
return this.audio.current || this.video.current;
|
||||||
}
|
}
|
||||||
|
|
||||||
onNewStream = () => {
|
private onNewStream = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
audioMuted: this.props.feed.isAudioMuted(),
|
audioMuted: this.props.feed.isAudioMuted(),
|
||||||
videoMuted: this.props.feed.isVideoMuted(),
|
videoMuted: this.props.feed.isVideoMuted(),
|
||||||
@@ -129,7 +129,7 @@ export default class VideoFeed extends React.Component<IProps, IState> {
|
|||||||
this.playMedia();
|
this.playMedia();
|
||||||
}
|
}
|
||||||
|
|
||||||
onResize = (e) => {
|
private onResize = (e) => {
|
||||||
if (this.props.onResize && !this.props.feed.isLocal()) {
|
if (this.props.onResize && !this.props.feed.isLocal()) {
|
||||||
this.props.onResize(e);
|
this.props.onResize(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user