|
|
@@ -1,10 +1,8 @@
|
|
1
|
1
|
// @flow
|
|
2
|
2
|
|
|
3
|
|
-import React from 'react';
|
|
4
|
3
|
import { openDialog } from '../../../base/dialog';
|
|
5
|
4
|
import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
|
|
6
|
5
|
import { getLocalParticipant } from '../../../base/participants';
|
|
7
|
|
-import { Container, Text } from '../../../base/react';
|
|
8
|
6
|
import {
|
|
9
|
7
|
AbstractButton,
|
|
10
|
8
|
type AbstractButtonProps
|
|
|
@@ -14,7 +12,6 @@ import { getActiveSession } from '../../functions';
|
|
14
|
12
|
|
|
15
|
13
|
import StartLiveStreamDialog from './StartLiveStreamDialog';
|
|
16
|
14
|
import StopLiveStreamDialog from './StopLiveStreamDialog';
|
|
17
|
|
-import styles from './styles';
|
|
18
|
15
|
|
|
19
|
16
|
/**
|
|
20
|
17
|
* The type of the React {@code Component} props of
|
|
|
@@ -47,26 +44,6 @@ export default class AbstractLiveStreamButton<P: Props>
|
|
47
|
44
|
label = 'dialog.startLiveStreaming';
|
|
48
|
45
|
toggledLabel = 'dialog.stopLiveStreaming';
|
|
49
|
46
|
|
|
50
|
|
- /**
|
|
51
|
|
- * Helper function to be implemented by subclasses, which returns
|
|
52
|
|
- * a React Element to display (a beta tag) at the end of the button.
|
|
53
|
|
- *
|
|
54
|
|
- * @override
|
|
55
|
|
- * @protected
|
|
56
|
|
- * @returns {ReactElement}
|
|
57
|
|
- */
|
|
58
|
|
- _getElementAfter() {
|
|
59
|
|
- return (
|
|
60
|
|
- <Container
|
|
61
|
|
- className = { 'beta-tag' }
|
|
62
|
|
- style = { styles && { ...styles.betaTag } }>
|
|
63
|
|
- <Text style = { styles && { ...styles.betaTagText } }>
|
|
64
|
|
- { this.props.t('recording.beta') }
|
|
65
|
|
- </Text>
|
|
66
|
|
- </Container>
|
|
67
|
|
- );
|
|
68
|
|
- }
|
|
69
|
|
-
|
|
70
|
47
|
/**
|
|
71
|
48
|
* Handles clicking / pressing the button.
|
|
72
|
49
|
*
|