Skip to content

Commit 7da6b4f

Browse files
author
evgeny-nadymov
committed
Disable fix for rotation
Fix video full screen
1 parent bbcd6b7 commit 7da6b4f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"homepage": "https://evgeny-nadymov.github.io/telegram-react",
33
"name": "telegram_react",
4-
"version": "0.0.992",
4+
"version": "0.0.995",
55
"private": true,
66
"dependencies": {
77
"@material-ui/core": "^4.9.7",

src/Components/Calls/CallPanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import LStore from '../../Stores/LocalizationStore';
3232
import UserStore from '../../Stores/UserStore';
3333
import './CallPanel.css';
3434

35-
const SUPPORTS_ROTATION = true;
35+
const SUPPORTS_ROTATION = false;
3636

3737
class CallPanel extends React.Component {
3838
constructor(props) {
@@ -259,7 +259,7 @@ class CallPanel extends React.Component {
259259
let screenSharing = currentCall && Boolean(currentCall.screenStream);
260260

261261
let outputVideoStyle = null;
262-
if (SUPPORTS_ROTATION && outputMediaState && isFirefox()) {
262+
if (SUPPORTS_ROTATION && outputMediaState && isFirefox() && !is_outgoing) {
263263
outputVideoStyle = {
264264
transform: `rotate(${outputMediaState.videoRotation}deg)`
265265
};

src/Components/Calls/GroupCallPanel.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
.full-screen #call-output-video {
1515
max-width: unset;
1616
max-height: unset;
17+
position: absolute;
18+
left: 0;
19+
top: 0;
1720
width: 100%;
1821
height: 100%;
1922
}
@@ -98,6 +101,7 @@
98101
.full-screen .call-panel-content {
99102
margin: 0;
100103
border-radius: 0;
104+
position: relative;
101105
}
102106

103107
.call-panel-content {

src/Stores/CallStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,13 +1653,13 @@ class CallStore extends EventEmitter {
16531653
}
16541654

16551655
p2pSendCallSignalingData(callId, str) {
1656-
LOG_P2P_CALL('[tdlib] sendCallSignalingData', callId, str);
16571656
const { currentCall } = this;
16581657
if (currentCall) {
16591658
const { encryptor } = currentCall;
16601659
if (encryptor) {
16611660
const data = encryptor.encryptToBase64(str);
16621661

1662+
LOG_P2P_CALL('[tdlib] sendCallSignalingData', callId, str);
16631663
TdLibController.send({
16641664
'@type': 'sendCallSignalingData',
16651665
call_id: callId,

0 commit comments

Comments
 (0)