-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
70 lines (56 loc) · 1.48 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
// /**
// * Sample React Native App
// * https://github.com/facebook/react-native
// *
// * @format
// * @flow
// */
// import React, { Component } from 'react';
// import {
// ScrollView,
// Title,
// Video,
// Screen,
// Caption,
// Tile,
// Html,
// } from '@shoutem/ui';
// import { WebView } from 'react-native';
// type Props = {};
// export default class App extends Component<Props> {
// render() {
// return (
// <Screen styleName="paper">
// <WebView
// source={{ uri: 'https://cdn-gce.vdocipher.com/playerAssets/1.6.8/vdo/index.html#otp=20160313versUSE323i5v5jHpt4V825yMpFU3JatSMfqyxSGgvhp97NP3ZNZZMHh&playbackInfo=eyJ2aWRlb0lkIjoiNjhkMzFhNmRiMGZjNGE2ZmI4MTg3MzRhMTE1MjU0MTcifQ==' }}
// style={{ marginTop: 20 }}
// />
// </Screen>
// );
// }
// }
import React, {
Component
} from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { startVideoScreen, VdoPlayerView } from 'vdocipher-rn-bridge';
const embedInfo = { otp: '20160313versUSE323i5v5jHpt4V825yMpFU3JatSMfqyxSGgvhp97NP3ZNZZMHh', playbackInfo: 'eyJ2aWRlb0lkIjoiNjhkMzFhNmRiMGZjNGE2ZmI4MTg3MzRhMTE1MjU0MTcifQ==' };
startVideoScreen({embedInfo:embedInfo})
export default class VideoPlayer extends Component {
render() {
return (
<View>
<VdoPlayerView
style={{ height: 200, width: '100%' }}
embedInfo={embedInfo}
/>
</View>
);
}
}