vdocipher-rn-bridge 1.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/VdoPlayerSupportView.js +226 -0
- package/VdoPlayerUIView.js +271 -0
- package/VdoPlayerView.js +265 -202
- package/android/build.gradle +4 -5
- package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerUIView.java +306 -0
- package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerUIViewManager.java +156 -0
- package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerView.java +200 -61
- package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerViewManager.java +34 -38
- package/android/src/main/java/com/vdocipher/rnbridge/Utils.java +8 -0
- package/android/src/main/java/com/vdocipher/rnbridge/VdoDownloadModule.java +6 -5
- package/android/src/main/java/com/vdocipher/rnbridge/VdoEventEmitter.java +22 -2
- package/android/src/main/java/com/vdocipher/rnbridge/VdocipherRnBridgePackage.java +2 -1
- package/android/src/main/res/layout/activity_vdo_player_ui.xml +12 -0
- package/android/src/main/res/layout/activity_vdo_player_ui_custom.xml +12 -0
- package/downloadMonitor.js +2 -2
- package/package.json +4 -2
package/VdoPlayerView.js
CHANGED
|
@@ -1,208 +1,271 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VdoPlayerView component that can be dropped into a layout for video playback.
|
|
3
3
|
*/
|
|
4
|
-
import React, { Component } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
7
|
-
import { ViewPropTypes } from 'deprecated-react-native-prop-types'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
import React, { Component, Fragment } from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { BackHandler} from 'react-native';
|
|
7
|
+
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
8
|
+
import VdoPlayerSupportView from './VdoPlayerSupportView';
|
|
9
|
+
import VdoPlayerUIView from './VdoPlayerUIView';
|
|
10
|
+
|
|
11
|
+
export default class VdoPlayerView extends Component {
|
|
12
|
+
|
|
13
|
+
constructor(props) {
|
|
14
|
+
super(props);
|
|
15
|
+
this.state = {
|
|
16
|
+
fullscreen: false,
|
|
17
|
+
isInitialPortrait: true,
|
|
18
|
+
}
|
|
19
|
+
this.handleBackButtonClick = this.handleBackButtonClick.bind(this);
|
|
20
|
+
this._propRef = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
componentDidMount() {
|
|
24
|
+
BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonClick);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
componentWillUnmount() {
|
|
28
|
+
BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonClick);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
handleBackButtonClick() {
|
|
32
|
+
if (this.state.fullscreen && this.state.isInitialPortrait) {
|
|
33
|
+
this._vdoPlayerView.handleBackButtonClick();
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
seek = seekTargetMs => {
|
|
39
|
+
if (this._vdoPlayerView) {
|
|
40
|
+
this._vdoPlayerView.seek(seekTargetMs);
|
|
15
41
|
}
|
|
16
|
-
this._propRef = 1;
|
|
17
42
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.
|
|
43
|
+
|
|
44
|
+
enterFullscreen = () => {
|
|
45
|
+
if (this._vdoPlayerView) {
|
|
46
|
+
this._vdoPlayerView.enterFullscreen();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
exitFullscreen = () => {
|
|
51
|
+
if (this._vdoPlayerView) {
|
|
52
|
+
this._vdoPlayerView.exitFullscreen();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
getPlaybackProperties = () => {
|
|
57
|
+
if (this._vdoPlayerView) {
|
|
58
|
+
this._vdoPlayerView.getPlaybackProperties();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
_onInitSuccess = (event) => {
|
|
63
|
+
if (this.props.onInitializationSuccess) {
|
|
64
|
+
this.props.onInitializationSuccess(event.nativeEvent);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
_onInitFailure = (event) => {
|
|
69
|
+
if (this.props.onInitializationFailure) {
|
|
70
|
+
this.props.onInitializationFailure(event.nativeEvent);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
_onLoading = (embedInfo, event) => {
|
|
75
|
+
if (this.props.onLoading) {
|
|
76
|
+
this.props.onLoading({embedInfo, ...event.nativeEvent});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
_onLoaded = (embedInfo, event) => {
|
|
81
|
+
if (this.props.onLoaded) {
|
|
82
|
+
this.props.onLoaded({embedInfo, ...event.nativeEvent});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
_onLoadError = (embedInfo, event) => {
|
|
87
|
+
if (this.props.onLoadError) {
|
|
88
|
+
this.props.onLoadError({embedInfo, ...event.nativeEvent});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
_onPlayerStateChanged = (event) => {
|
|
93
|
+
if (this.props.onPlayerStateChanged) {
|
|
94
|
+
this.props.onPlayerStateChanged(event.nativeEvent);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
_onProgress = (event) => {
|
|
99
|
+
if (this.props.onProgress) {
|
|
100
|
+
this.props.onProgress(event.nativeEvent);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
_onBufferUpdate = (event) => {
|
|
105
|
+
if (this.props.onBufferUpdate) {
|
|
106
|
+
this.props.onBufferUpdate(event.nativeEvent);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
_onPlaybackSpeedChanged = (event) => {
|
|
111
|
+
if (this.props.onPlaybackSpeedChanged) {
|
|
112
|
+
this.props.onPlaybackSpeedChanged(event.nativeEvent.playbackSpeed);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
_onTracksChanged = (event) => {
|
|
117
|
+
if (this.props.onTracksChanged) {
|
|
118
|
+
this.props.onTracksChanged(event.nativeEvent);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
_onMediaEnded = (embedInfo, event) => {
|
|
123
|
+
if (this.props.onMediaEnded) {
|
|
124
|
+
this.props.onMediaEnded({embedInfo, ...event.nativeEvent});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
_onError = (embedInfo, event) => {
|
|
129
|
+
if (this.props.onError) {
|
|
130
|
+
this.props.onError({embedInfo, ...event.nativeEvent});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
_onPlaybackProperties = (event) => {
|
|
135
|
+
if (this.props.onPlaybackProperties) {
|
|
136
|
+
this.props.onPlaybackProperties(event.nativeEvent);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
_onEnterFullscreen = () => {
|
|
141
|
+
this.setState({
|
|
142
|
+
fullscreen: true
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
if (this.props.onEnterFullscreen) {
|
|
146
|
+
this.props.onEnterFullscreen();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
_onExitFullscreen = () => {
|
|
151
|
+
this.setState({
|
|
152
|
+
fullscreen: false
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
if (this.props.onExitFullscreen) {
|
|
156
|
+
this.props.onExitFullscreen();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
_onIsInitialPortrait =(event) => {
|
|
161
|
+
this.setState({
|
|
162
|
+
isInitialPortrait: event.nativeEvent.isInitialPortrait
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
_onPictureInPictureModeChanged = (event) => {
|
|
167
|
+
if (this.props.onPictureInPictureModeChanged) {
|
|
168
|
+
this.props.onPictureInPictureModeChanged(event);
|
|
22
169
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
_onExitFullscreen = (event) => {
|
|
128
|
-
if (this.props.onExitFullscreen) {
|
|
129
|
-
this.props.onExitFullscreen();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
render() {
|
|
134
|
-
return (
|
|
135
|
-
<RCTVdoPlayerView ref={component => this._root = component}
|
|
136
|
-
onInitSuccess={this._onInitSuccess}
|
|
137
|
-
onInitFailure={this._onInitFailure}
|
|
138
|
-
onVdoLoading={((embedInfo) => (event) => this._onLoading(embedInfo, event))(this.props.embedInfo)}
|
|
139
|
-
onVdoLoaded={((embedInfo) => (event) => this._onLoaded(embedInfo, event))(this.props.embedInfo)}
|
|
140
|
-
onVdoLoadError={((embedInfo) => (event) => this._onLoadError(embedInfo, event))(this.props.embedInfo)}
|
|
141
|
-
onVdoPlayerStateChanged={this._onPlayerStateChanged}
|
|
142
|
-
onVdoProgress={this._onProgress}
|
|
143
|
-
onVdoBufferUpdate={this._onBufferUpdate}
|
|
144
|
-
onVdoPlaybackSpeedChanged={this._onPlaybackSpeedChanged}
|
|
145
|
-
onVdoTracksChanged={this._onTracksChanged}
|
|
146
|
-
onVdoMediaEnded={((embedInfo) => (event) => this._onMediaEnded(embedInfo, event))(this.props.embedInfo)}
|
|
147
|
-
onVdoError={((embedInfo) => (event) => this._onError(embedInfo, event))(this.props.embedInfo)}
|
|
148
|
-
onVdoPlaybackProperties={this._onPlaybackProperties}
|
|
149
|
-
onVdoEnterFullscreen={this._onEnterFullscreen}
|
|
150
|
-
onVdoExitFullscreen={this._onExitFullscreen}
|
|
151
|
-
{...this.props}
|
|
152
|
-
/>
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
VdoPlayerView.propTypes = {
|
|
158
|
-
/* Native only */
|
|
159
|
-
onInitSuccess: PropTypes.func,
|
|
160
|
-
onInitFailure: PropTypes.func,
|
|
161
|
-
onVdoLoading: PropTypes.func,
|
|
162
|
-
onVdoLoaded: PropTypes.func,
|
|
163
|
-
onVdoLoadError: PropTypes.func,
|
|
164
|
-
onVdoPlayerStateChanged: PropTypes.func,
|
|
165
|
-
onVdoProgress: PropTypes.func,
|
|
166
|
-
onVdoBufferUpdate: PropTypes.func,
|
|
167
|
-
onVdoPlaybackSpeedChanged: PropTypes.func,
|
|
168
|
-
onVdoTracksChanged: PropTypes.func,
|
|
169
|
-
onVdoMediaEnded: PropTypes.func,
|
|
170
|
-
onVdoError: PropTypes.func,
|
|
171
|
-
playbackProperties: PropTypes.number,
|
|
172
|
-
onVdoPlaybackProperties: PropTypes.func,
|
|
173
|
-
seek: PropTypes.number,
|
|
174
|
-
fullscreen: PropTypes.bool,
|
|
175
|
-
onVdoEnterFullscreen: PropTypes.func,
|
|
176
|
-
onVdoExitFullscreen: PropTypes.func,
|
|
177
|
-
|
|
178
|
-
/* Wrapper component public api */
|
|
179
|
-
embedInfo: PropTypes.object,
|
|
180
|
-
showNativeControls: PropTypes.bool,
|
|
181
|
-
playWhenReady: PropTypes.bool,
|
|
182
|
-
playbackSpeed: PropTypes.number,
|
|
183
|
-
onInitializationSuccess: PropTypes.func,
|
|
184
|
-
onInitializationFailure: PropTypes.func,
|
|
185
|
-
onLoading: PropTypes.func,
|
|
186
|
-
onLoaded: PropTypes.func,
|
|
187
|
-
onLoadError: PropTypes.func,
|
|
188
|
-
onPlayerStateChanged: PropTypes.func,
|
|
189
|
-
onProgress: PropTypes.func,
|
|
190
|
-
onBufferUpdate: PropTypes.func,
|
|
191
|
-
onPlaybackSpeedChanged: PropTypes.func,
|
|
192
|
-
onTracksChanged: PropTypes.func,
|
|
193
|
-
onMediaEnded: PropTypes.func,
|
|
194
|
-
onError: PropTypes.func,
|
|
195
|
-
onPlaybackProperties: PropTypes.func,
|
|
196
|
-
onEnterFullscreen: PropTypes.func,
|
|
197
|
-
onExitFullscreen: PropTypes.func,
|
|
198
|
-
|
|
199
|
-
/* Required */
|
|
200
|
-
...ViewPropTypes,
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
var RCTVdoPlayerView = requireNativeComponent('RCTVdoPlayerView', VdoPlayerView, {
|
|
204
|
-
nativeOnly: {
|
|
205
|
-
onInitSuccess: true,
|
|
206
|
-
onInitFailure: true,
|
|
207
|
-
}
|
|
208
|
-
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
render() {
|
|
173
|
+
return (
|
|
174
|
+
<Fragment>
|
|
175
|
+
{
|
|
176
|
+
this.props.showNativeControls === false ? (
|
|
177
|
+
<VdoPlayerSupportView ref={vdoPlayerView => this._vdoPlayerView = vdoPlayerView}
|
|
178
|
+
onInitSuccess={this._onInitSuccess}
|
|
179
|
+
onInitFailure={this._onInitFailure}
|
|
180
|
+
onVdoLoading={((embedInfo) => (event) => this._onLoading(embedInfo, event))(this.props.embedInfo)}
|
|
181
|
+
onVdoLoaded={((embedInfo) => (event) => this._onLoaded(embedInfo, event))(this.props.embedInfo)}
|
|
182
|
+
onVdoLoadError={((embedInfo) => (event) => this._onLoadError(embedInfo, event))(this.props.embedInfo)}
|
|
183
|
+
onVdoPlayerStateChanged={this._onPlayerStateChanged}
|
|
184
|
+
onVdoProgress={this._onProgress}
|
|
185
|
+
onVdoBufferUpdate={this._onBufferUpdate}
|
|
186
|
+
onVdoPlaybackSpeedChanged={this._onPlaybackSpeedChanged}
|
|
187
|
+
onVdoTracksChanged={this._onTracksChanged}
|
|
188
|
+
onVdoMediaEnded={((embedInfo) => (event) => this._onMediaEnded(embedInfo, event))(this.props.embedInfo)}
|
|
189
|
+
onVdoError={((embedInfo) => (event) => this._onError(embedInfo, event))(this.props.embedInfo)}
|
|
190
|
+
onVdoPlaybackProperties={this._onPlaybackProperties}
|
|
191
|
+
onVdoEnterFullscreen={this._onEnterFullscreen}
|
|
192
|
+
onVdoExitFullscreen={this._onExitFullscreen}
|
|
193
|
+
onIsInitialPortrait={this._onIsInitialPortrait}
|
|
194
|
+
{...this.props}
|
|
195
|
+
/>
|
|
196
|
+
) :
|
|
197
|
+
(
|
|
198
|
+
<VdoPlayerUIView ref={vdoPlayerView => this._vdoPlayerView = vdoPlayerView}
|
|
199
|
+
onInitSuccess={this._onInitSuccess}
|
|
200
|
+
onInitFailure={this._onInitFailure}
|
|
201
|
+
onVdoLoading={((embedInfo) => (event) => this._onLoading(embedInfo, event))(this.props.embedInfo)}
|
|
202
|
+
onVdoLoaded={((embedInfo) => (event) => this._onLoaded(embedInfo, event))(this.props.embedInfo)}
|
|
203
|
+
onVdoLoadError={((embedInfo) => (event) => this._onLoadError(embedInfo, event))(this.props.embedInfo)}
|
|
204
|
+
onVdoPlayerStateChanged={this._onPlayerStateChanged}
|
|
205
|
+
onVdoProgress={this._onProgress}
|
|
206
|
+
onVdoBufferUpdate={this._onBufferUpdate}
|
|
207
|
+
onVdoPlaybackSpeedChanged={this._onPlaybackSpeedChanged}
|
|
208
|
+
onVdoTracksChanged={this._onTracksChanged}
|
|
209
|
+
onVdoMediaEnded={((embedInfo) => (event) => this._onMediaEnded(embedInfo, event))(this.props.embedInfo)}
|
|
210
|
+
onVdoError={((embedInfo) => (event) => this._onError(embedInfo, event))(this.props.embedInfo)}
|
|
211
|
+
onVdoPlaybackProperties={this._onPlaybackProperties}
|
|
212
|
+
onVdoEnterFullscreen={this._onEnterFullscreen}
|
|
213
|
+
onVdoExitFullscreen={this._onExitFullscreen}
|
|
214
|
+
onIsInitialPortrait={this._onIsInitialPortrait}
|
|
215
|
+
onPictureInPictureModeChanged={this._onPictureInPictureModeChanged}
|
|
216
|
+
{...this.props}
|
|
217
|
+
/>
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
</Fragment>
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
VdoPlayerView.propTypes = {
|
|
226
|
+
/* Native only */
|
|
227
|
+
onInitSuccess: PropTypes.func,
|
|
228
|
+
onInitFailure: PropTypes.func,
|
|
229
|
+
onVdoLoading: PropTypes.func,
|
|
230
|
+
onVdoLoaded: PropTypes.func,
|
|
231
|
+
onVdoLoadError: PropTypes.func,
|
|
232
|
+
onVdoPlayerStateChanged: PropTypes.func,
|
|
233
|
+
onVdoProgress: PropTypes.func,
|
|
234
|
+
onVdoBufferUpdate: PropTypes.func,
|
|
235
|
+
onVdoPlaybackSpeedChanged: PropTypes.func,
|
|
236
|
+
onVdoTracksChanged: PropTypes.func,
|
|
237
|
+
onVdoMediaEnded: PropTypes.func,
|
|
238
|
+
onVdoError: PropTypes.func,
|
|
239
|
+
playbackProperties: PropTypes.number,
|
|
240
|
+
onVdoPlaybackProperties: PropTypes.func,
|
|
241
|
+
seek: PropTypes.number,
|
|
242
|
+
fullscreen: PropTypes.bool,
|
|
243
|
+
onVdoEnterFullscreen: PropTypes.func,
|
|
244
|
+
onVdoExitFullscreen: PropTypes.func,
|
|
245
|
+
onIsInitialPortrait: PropTypes.func,
|
|
246
|
+
|
|
247
|
+
/* Wrapper component public api */
|
|
248
|
+
embedInfo: PropTypes.object,
|
|
249
|
+
showNativeControls: PropTypes.bool,
|
|
250
|
+
playWhenReady: PropTypes.bool,
|
|
251
|
+
playbackSpeed: PropTypes.number,
|
|
252
|
+
onInitializationSuccess: PropTypes.func,
|
|
253
|
+
onInitializationFailure: PropTypes.func,
|
|
254
|
+
onLoading: PropTypes.func,
|
|
255
|
+
onLoaded: PropTypes.func,
|
|
256
|
+
onLoadError: PropTypes.func,
|
|
257
|
+
onPlayerStateChanged: PropTypes.func,
|
|
258
|
+
onProgress: PropTypes.func,
|
|
259
|
+
onBufferUpdate: PropTypes.func,
|
|
260
|
+
onPlaybackSpeedChanged: PropTypes.func,
|
|
261
|
+
onTracksChanged: PropTypes.func,
|
|
262
|
+
onMediaEnded: PropTypes.func,
|
|
263
|
+
onError: PropTypes.func,
|
|
264
|
+
onPlaybackProperties: PropTypes.func,
|
|
265
|
+
onEnterFullscreen: PropTypes.func,
|
|
266
|
+
onExitFullscreen: PropTypes.func,
|
|
267
|
+
onPictureInPictureModeChanged: PropTypes.func,
|
|
268
|
+
|
|
269
|
+
/* Required */
|
|
270
|
+
...ViewPropTypes,
|
|
271
|
+
};
|
package/android/build.gradle
CHANGED
|
@@ -5,7 +5,7 @@ import java.nio.file.Paths
|
|
|
5
5
|
buildscript {
|
|
6
6
|
repositories {
|
|
7
7
|
google()
|
|
8
|
-
|
|
8
|
+
mavenCentral()
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
dependencies {
|
|
@@ -18,8 +18,8 @@ apply plugin: 'com.android.library'
|
|
|
18
18
|
// TODO read from package.json
|
|
19
19
|
// "releaseVersionName" must be the same as "version" in package.json
|
|
20
20
|
// "releaseVersionCode" must increment by 1 with every release
|
|
21
|
-
def releaseVersionName = "1.
|
|
22
|
-
def releaseVersionCode =
|
|
21
|
+
def releaseVersionName = "1.10.0"
|
|
22
|
+
def releaseVersionCode = 7
|
|
23
23
|
|
|
24
24
|
android {
|
|
25
25
|
compileSdkVersion 30
|
|
@@ -77,7 +77,6 @@ afterEvaluate {
|
|
|
77
77
|
|
|
78
78
|
repositories {
|
|
79
79
|
google()
|
|
80
|
-
jcenter()
|
|
81
80
|
mavenCentral()
|
|
82
81
|
maven {
|
|
83
82
|
url "https://github.com/VdoCipher/maven-repo/raw/master/repo"
|
|
@@ -87,5 +86,5 @@ repositories {
|
|
|
87
86
|
dependencies {
|
|
88
87
|
compileOnly 'com.facebook.react:react-native:+'
|
|
89
88
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
90
|
-
implementation 'com.vdocipher.aegis:vdocipher-android:1.
|
|
89
|
+
implementation 'com.vdocipher.aegis:vdocipher-android:1.18.1'
|
|
91
90
|
}
|