fix: flip mode can be unsynced between tileview and large video (#15141)

- large video does not adhere to the same restriction when it comes to the flip mode, it simply respects the last cached state or the doNotFlipLocalVideo flag if it was provided
This commit is contained in:
Avram Tudor
2024-09-20 12:13:58 +03:00
committed by GitHub
parent 1152073b57
commit acc46c0c5f

View File

@@ -100,11 +100,6 @@ export interface IProps extends WithTranslation {
*/
_audioTrack?: ITrack;
/**
* Indicates whether the local video flip feature is disabled or not.
*/
_disableLocalVideoFlip: boolean;
/**
* Indicates whether enlargement of tiles to fill the available space is disabled.
*/
@@ -1024,7 +1019,6 @@ class Thumbnail extends Component<IProps, IState> {
_renderParticipant(local = false) {
const {
_audioTrack,
_disableLocalVideoFlip,
_gifSrc,
_isMobile,
_isMobilePortrait,
@@ -1043,7 +1037,7 @@ class Thumbnail extends Component<IProps, IState> {
const styles = this._getStyles();
let containerClassName = this._getContainerClassName();
const videoTrackClassName
= !_disableLocalVideoFlip && _videoTrack && !_isScreenSharing && _localFlipX ? 'flipVideoX' : '';
= _videoTrack && !_isScreenSharing && _localFlipX ? 'flipVideoX' : '';
const jitsiVideoTrack = _videoTrack?.jitsiTrack;
const videoTrackId = jitsiVideoTrack?.getId();
const videoEventListeners: any = {};
@@ -1252,7 +1246,6 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {
let _isMobilePortrait = false;
const {
defaultLocalDisplayName,
disableLocalVideoFlip,
disableTileEnlargement,
iAmRecorder,
iAmSipGateway
@@ -1375,7 +1368,6 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {
_audioTrack,
_currentLayout,
_defaultLocalDisplayName: defaultLocalDisplayName,
_disableLocalVideoFlip: Boolean(disableLocalVideoFlip),
_disableTileEnlargement: Boolean(disableTileEnlargement),
_isActiveParticipant: isActiveParticipant,
_isHidden: isLocal && iAmRecorder && !iAmSipGateway,