├── .gitignore
├── .npmignore
├── 1.png
├── 2.png
├── Examples
└── vlcplayer
│ ├── .buckconfig
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .watchmanconfig
│ ├── README.md
│ ├── SimpleVideo.js
│ ├── Video.js
│ ├── android
│ ├── app
│ │ ├── BUCK
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── assets
│ │ │ └── fonts
│ │ │ │ ├── Entypo.ttf
│ │ │ │ ├── EvilIcons.ttf
│ │ │ │ ├── FontAwesome.ttf
│ │ │ │ ├── Foundation.ttf
│ │ │ │ ├── Ionicons.ttf
│ │ │ │ ├── MaterialIcons.ttf
│ │ │ │ ├── Octicons.ttf
│ │ │ │ └── Zocial.ttf
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── vlcplayer
│ │ │ │ └── MainActivity.java
│ │ │ └── res
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── keystores
│ │ ├── BUCK
│ │ └── debug.keystore.properties
│ └── settings.gradle
│ ├── index.android.js
│ ├── index.ios.js
│ ├── ios
│ ├── vlcplayer.xcodeproj
│ │ ├── project.pbxproj
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── vlcplayer.xcscheme
│ ├── vlcplayer
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj
│ │ │ └── LaunchScreen.xib
│ │ ├── Images.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── Info.plist
│ │ └── main.m
│ └── vlcplayerTests
│ │ ├── Info.plist
│ │ └── vlcplayerTests.m
│ └── package.json
├── LICENSE
├── README.md
├── ReactNative_qq_group.png
├── VLCPlayer.js
├── ios
├── RCTVLCPlayer.xcodeproj
│ └── project.pbxproj
└── RCTVLCPlayer
│ ├── RCTVLCPlayer.h
│ ├── RCTVLCPlayer.m
│ ├── RCTVLCPlayerManager.h
│ └── RCTVLCPlayerManager.m
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/**/*
2 | ios/RCTVLCPlayer.xcodeproj/xcuserdata/**/*
3 | ios/RCTVLCPlayer.xcodeproj/project.xcworkspace/**/*
4 | Examples/vlcplayer/node_modules/**/*
5 | Examples/vlcplayer/ios/vlcplayer.xcodeproj/project.xcworkspace/**/*
6 | Examples/vlcplayer/ios/vlcplayer.xcodeproj/xcuserdata/**/*
7 | Examples/vlcplayer/node_modules
8 | npm-debug.log
9 | .DS_Store
10 | build/
11 | .gradle/
12 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | Examples
2 |
--------------------------------------------------------------------------------
/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/1.png
--------------------------------------------------------------------------------
/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/2.png
--------------------------------------------------------------------------------
/Examples/vlcplayer/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 |
3 | # We fork some components by platform.
4 | .*/*.web.js
5 | .*/*.android.js
6 |
7 | # Some modules have their own node_modules with overlap
8 | .*/node_modules/node-haste/.*
9 |
10 | # Ugh
11 | .*/node_modules/babel.*
12 | .*/node_modules/babylon.*
13 | .*/node_modules/invariant.*
14 |
15 | # Ignore react and fbjs where there are overlaps, but don't ignore
16 | # anything that react-native relies on
17 | .*/node_modules/fbjs/lib/Map.js
18 | .*/node_modules/fbjs/lib/ErrorUtils.js
19 |
20 | # Flow has a built-in definition for the 'react' module which we prefer to use
21 | # over the currently-untyped source
22 | .*/node_modules/react/react.js
23 | .*/node_modules/react/lib/React.js
24 | .*/node_modules/react/lib/ReactDOM.js
25 |
26 | .*/__mocks__/.*
27 | .*/__tests__/.*
28 |
29 | .*/commoner/test/source/widget/share.js
30 |
31 | # Ignore commoner tests
32 | .*/node_modules/commoner/test/.*
33 |
34 | # See https://github.com/facebook/flow/issues/442
35 | .*/react-tools/node_modules/commoner/lib/reader.js
36 |
37 | # Ignore jest
38 | .*/node_modules/jest-cli/.*
39 |
40 | # Ignore Website
41 | .*/website/.*
42 |
43 | # Ignore generators
44 | .*/local-cli/generator.*
45 |
46 | # Ignore BUCK generated folders
47 | .*\.buckd/
48 |
49 | # Ignore RNPM
50 | .*/local-cli/rnpm/.*
51 |
52 | .*/node_modules/is-my-json-valid/test/.*\.json
53 | .*/node_modules/iconv-lite/encodings/tables/.*\.json
54 | .*/node_modules/y18n/test/.*\.json
55 | .*/node_modules/spdx-license-ids/spdx-license-ids.json
56 | .*/node_modules/spdx-exceptions/index.json
57 | .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json
58 | .*/node_modules/resolve/lib/core.json
59 | .*/node_modules/jsonparse/samplejson/.*\.json
60 | .*/node_modules/json5/test/.*\.json
61 | .*/node_modules/ua-parser-js/test/.*\.json
62 | .*/node_modules/builtin-modules/builtin-modules.json
63 | .*/node_modules/binary-extensions/binary-extensions.json
64 | .*/node_modules/url-regex/tlds.json
65 | .*/node_modules/joi/.*\.json
66 | .*/node_modules/isemail/.*\.json
67 | .*/node_modules/tr46/.*\.json
68 |
69 |
70 | [include]
71 |
72 | [libs]
73 | node_modules/react-native/Libraries/react-native/react-native-interface.js
74 | node_modules/react-native/flow
75 | flow/
76 |
77 | [options]
78 | module.system=haste
79 |
80 | esproposal.class_static_fields=enable
81 | esproposal.class_instance_fields=enable
82 |
83 | munge_underscores=true
84 |
85 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
86 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
87 |
88 | suppress_type=$FlowIssue
89 | suppress_type=$FlowFixMe
90 | suppress_type=$FixMe
91 |
92 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-5]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
93 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-5]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
94 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
95 |
96 | [version]
97 | ^0.25.0
98 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IJ
26 | #
27 | .idea
28 | .gradle
29 | local.properties
30 |
31 | # node.js
32 | #
33 | node_modules/
34 | npm-debug.log
35 |
36 | # BUCK
37 | buck-out/
38 | \.buckd/
39 | android/app/libs
40 | android/keystores/debug.keystore
41 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/Examples/vlcplayer/README.md:
--------------------------------------------------------------------------------
1 | ## 参考代码
2 |
3 | Video.js 封装的一个 适用于 mobile 的播放器
4 |
5 | 在自己的代码里面可以直接使用
6 |
7 | ```
8 | import React, { Component } from 'react';
9 | import {
10 | AppRegistry
11 | } from 'react-native';
12 | import Video from './Video.js';
13 |
14 |
15 |
16 | class vlcplayer extends Component {
17 |
18 | render() {
19 | const uri = 'http://cdn.goluk.cn/video/t1_2.mp4';
20 | return (
21 |
22 | );
23 | }
24 | }
25 |
26 | AppRegistry.registerComponent('vlcplayer', () => vlcplayer);
27 | ```
28 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/SimpleVideo.js:
--------------------------------------------------------------------------------
1 |
2 | import React, { Component ,PropTypes} from 'react';
3 | import {
4 | StyleSheet,
5 | Text,
6 | View,
7 | Dimensions,
8 | TouchableOpacity
9 | } from 'react-native';
10 | import VLCPlayer from 'react-native-vlcplayer';
11 | import * as Progress from 'react-native-progress';
12 | import Icon from 'react-native-vector-icons/FontAwesome';
13 | import { Bars } from 'react-native-loader';
14 | import Slider from 'react-native-slider';
15 | var RNFS = require('react-native-fs');
16 |
17 | const playerDefaultHeight = 250;
18 | const playerDefaultWidth = Dimensions.get('window').width;
19 |
20 | export default class SimpleVideo extends Component {
21 |
22 | static propTypes = {
23 | uri:PropTypes.string
24 | }
25 |
26 | constructor(props) {
27 | super(props);
28 | this.state = {
29 | progress: 0,
30 | indeterminate: true,
31 | paused:false,
32 | playButtonColor:'rgba(255,255,255,0)',
33 | loadingColor:'rgba(255,255,255,0)',
34 | playend:false,
35 | position:0,
36 | customStyle:{},
37 | customButtonStyle:{},
38 | buttonSize:70,
39 | progressWidth:playerDefaultWidth
40 | };
41 | this.state.customStyle = Object.assign({},this.props.style);
42 |
43 | if(this.state.customStyle.width){
44 | this.state.progressWidth = this.state.customStyle.width;
45 | this.state.customButtonStyle.width = this.state.customStyle.width;
46 | }
47 |
48 | if(this.state.customStyle.height){
49 | this.state.customButtonStyle.height = this.state.customStyle.height;
50 | this.state.customButtonStyle.top = - (this.state.customStyle.height);
51 | }
52 |
53 | if(this.props.buttonSize){
54 | this.state.buttonSize = this.props.buttonSize;
55 | }
56 |
57 | this.state.customButtonStyle = Object.assign(this.state.customButtonStyle,this.props.buttonStyle);
58 | }
59 |
60 | render() {
61 | let defaultControlsView = this.defaultControlsView();
62 | let actionButton = this.actionButton();
63 | return (
64 |
65 |
77 | {defaultControlsView}
78 | {actionButton}
79 |
80 | );
81 | }
82 |
83 | actionButton()
84 | {
85 | return (
86 | save a snapshot
87 | );
88 | }
89 |
90 | saveVideoSnapshot()
91 | {
92 | let path = RNFS.DocumentDirectoryPath + '/1.png';
93 | console.warn("saveVideoSnapshot path="+path);
94 | this.refs['vlcplayer'].snapshot(path);
95 | }
96 |
97 | pause()
98 | {
99 | this.setState({paused:!this.state.paused});
100 | }
101 |
102 | onPlaying(event){
103 | this.setState({loadingColor:'rgba(255,255,255,0)'});
104 | this.setState({playButtonColor:'rgba(255,255,255,0)'});
105 | }
106 |
107 | onPaused(event){
108 | this.setState({loadingColor:'rgba(255,255,255,0)'});
109 | this.setState({playButtonColor:'rgba(255,255,255,1)'});
110 | }
111 |
112 | onBuffering(event){
113 | this.setState({playButtonColor:'rgba(255,255,255,0)'});
114 | this.setState({loadingColor:'rgba(255,255,255,1)'});
115 | }
116 |
117 | defaultControlsView(){
118 | return (
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | );
127 | }
128 |
129 | onProgress(event)
130 | {
131 | //console.warn("position="+event.position+",currentTime="+event.currentTime+",remainingTime="+event.remainingTime);
132 | this.setState({progress:event.position});
133 | this.setState({loadingColor:'rgba(255,255,255,0)'});
134 | }
135 |
136 | onEnded(event)
137 | {
138 | this.setState({progress:1,playend:true});
139 | this.setState({playButtonColor:'rgba(255,255,255,1)'});
140 | }
141 | }
142 |
143 | const styles = StyleSheet.create({
144 | container: {
145 | flex: 1,
146 |
147 | alignItems: 'center',
148 | backgroundColor: '#F5FCFF',
149 | },
150 | vlcplayer:{
151 | width:playerDefaultWidth,
152 | height:playerDefaultHeight,
153 | backgroundColor:'black',
154 | // transform:[{rotate:'90deg'}]
155 | },
156 | buttonBox:{
157 | position:'absolute',
158 | top:-(playerDefaultHeight),
159 | alignItems: 'center',
160 | justifyContent: 'center',
161 | width:playerDefaultWidth,
162 | height:playerDefaultHeight
163 | }
164 | });
165 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/Video.js:
--------------------------------------------------------------------------------
1 |
2 | import React, { Component ,PropTypes} from 'react';
3 | import {
4 | StyleSheet,
5 | Text,
6 | View,
7 | Dimensions,
8 | Animated,
9 | TouchableOpacity
10 | } from 'react-native';
11 | import VLCPlayer from 'react-native-vlcplayer';
12 | import * as Progress from 'react-native-progress';
13 | import Icon from 'react-native-vector-icons/FontAwesome';
14 | import { Bars } from 'react-native-loader';
15 | import Slider from 'react-native-slider';
16 | var Orientation = require('react-native-orientation');
17 |
18 | const playerDefaultHeight = 250;
19 | const playerDefaultWidth = Dimensions.get('window').width;
20 |
21 | export default class Video extends Component {
22 |
23 | static propTypes = {
24 | uri:PropTypes.string
25 | }
26 |
27 | constructor(props) {
28 | super(props);
29 | Orientation.lockToPortrait();
30 | this.anim = this.anim || new Animated.Value(0);
31 | this.state = {
32 | progress: 0,
33 | indeterminate: true,
34 | paused:false,
35 | playButtonColor:'rgba(255,255,255,0)',
36 | loadingColor:'rgba(255,255,255,0)',
37 | playend:false,
38 | position:0,
39 | customStyle:{},
40 | customButtonStyle:{},
41 | buttonSize:70,
42 | progressWidth:playerDefaultWidth,
43 | video:{time:'00:00',duration:'00:00'},
44 | bottomBoxStyle:{},
45 | thumbTouchSize:{width:10,height:10},
46 | playing:false,
47 | duration:0,
48 | fullscreen:false,
49 | customTrackStyle:{}
50 | };
51 | this.state.customStyle = Object.assign({},this.props.style);
52 |
53 | if(this.state.customStyle.width){
54 | this.state.progressWidth = this.state.customStyle.width;
55 | this.state.customButtonStyle.width = this.state.customStyle.width;
56 | }
57 |
58 | if(this.state.customStyle.height){
59 | this.state.customButtonStyle.height = this.state.customStyle.height;
60 | this.state.customButtonStyle.top = - (this.state.customStyle.height);
61 | }
62 |
63 | if(this.props.buttonSize){
64 | this.state.buttonSize = this.props.buttonSize;
65 | }
66 |
67 | this.state.customButtonStyle = Object.assign(this.state.customButtonStyle,this.props.buttonStyle);
68 | }
69 |
70 | render() {
71 | let defaultControlsView = this.defaultControlsView();
72 | return (
73 |
74 |
86 | {defaultControlsView}
87 |
88 | );
89 | }
90 |
91 | pause()
92 | {
93 | this.setState({paused:!this.state.paused});
94 | }
95 |
96 | onPlaying(event){
97 | this.setState({loadingColor:'rgba(255,255,255,0)',playing:true});
98 | this.setState({playButtonColor:'rgba(255,255,255,0)'});
99 | }
100 |
101 | onPaused(event){
102 | this.setState({loadingColor:'rgba(255,255,255,0)',playing:false});
103 | this.setState({playButtonColor:'rgba(255,255,255,1)'});
104 | }
105 |
106 | onBuffering(event){
107 | this.setState({playButtonColor:'rgba(255,255,255,0)'});
108 | this.setState({loadingColor:'rgba(255,255,255,1)'});
109 | }
110 |
111 | defaultControlsView(){
112 | let playButton = ();
113 | let pauseButton = ();
114 | let playOrPause = this.state.playing ? pauseButton : playButton;
115 | return (
116 |
117 |
118 |
119 |
120 | {playOrPause}
121 |
122 | {this.state.video.time}
123 |
124 | {this.state.video.duration}
125 |
126 |
127 |
128 |
129 | );
130 | }
131 |
132 | seek(value){
133 | this.refs['vlcplayer'].seek(value);
134 | let duration = this.state.duration;
135 | let curtime = duration * value;
136 | this.setState({paused:false,playing:true,video:{time:this.formatTime(curtime),duration:this.formatTime(duration)}});
137 | }
138 |
139 | fullscreen()
140 | {
141 | if(this.state.fullscreen){
142 | this.setState({fullscreen:false});
143 |
144 | this.refs['windowView'].setNativeProps({style:[{
145 | width:Dimensions.get('window').width,
146 | height:Dimensions.get('window').height,
147 | position:'',
148 | }]});
149 | this.refs['vlcplayer'].setNativeProps({style:[styles.vlcplayer,this.state.customStyle]});
150 | this.setState({customTrackStyle:{width:(Dimensions.get('window').height-120)}});
151 | Orientation.lockToPortrait();
152 | }else{
153 | this.setState({fullscreen:true});
154 | this.refs['windowView'].setNativeProps({style:[{
155 | height:Dimensions.get('window').width,
156 | width:Dimensions.get('window').height,
157 | position:'absolute',
158 | left:0,
159 | top:0
160 | }]});
161 | this.refs['vlcplayer'].setNativeProps({style:[{
162 | height:Dimensions.get('window').width,
163 | width:Dimensions.get('window').height,
164 | }]});
165 | this.setState({customTrackStyle:{width:(Dimensions.get('window').height-120)}});
166 | Orientation.lockToLandscapeLeft();
167 | }
168 |
169 |
170 | }
171 |
172 | onProgress(event)
173 | {
174 | //console.warn("position="+event.position+",currentTime="+event.currentTime+",remainingTime="+event.remainingTime);
175 | this.setState({progress:event.position});
176 | this.setState({duration:event.duration,video:{time:this.formatTime(event.currentTime),duration:this.formatTime(event.duration)}});
177 | this.setState({loadingColor:'rgba(255,255,255,0)'});
178 | }
179 |
180 | formatTime(i){
181 | let text = '';
182 | let t = Math.ceil( i / 1000 );
183 | if( t < 60 ){
184 | text = '00:' + (t < 10 ? '0'+t : t );
185 | }else if(t>=60 && t < 3600){
186 | let min = Math.floor(t/60);
187 | let sec = (t - min*60);
188 | text = (min < 10 ? '0'+min : min ) + ':' + (sec < 10 ? '0'+sec : sec ) ;
189 | }else{
190 | let hour = Math.floor(t/3600);
191 | let min = Math.floor((t - hour*3600)/60);
192 | text = (hour < 10 ? '0'+hour : hour ) + ':' + (min < 10 ? '0'+min : min ) + ':' + (t - hour*3600 - min*60);
193 | }
194 | return text;
195 | }
196 |
197 | onEnded(event)
198 | {
199 | this.setState({playButtonColor:'rgba(255,255,255,1)'});
200 | }
201 | }
202 |
203 | const styles = StyleSheet.create({
204 | container: {
205 | flex: 1,
206 | backgroundColor: '#F5FCFF',
207 | },
208 | vlcplayer:{
209 | width:playerDefaultWidth,
210 | height:playerDefaultHeight,
211 | backgroundColor:'black',
212 | // transform:[{rotate:'90deg'}]
213 | },
214 | buttonBox:{
215 | position:'absolute',
216 | top:-(playerDefaultHeight),
217 | alignItems: 'center',
218 | justifyContent: 'center',
219 | width:playerDefaultWidth,
220 | height:playerDefaultHeight
221 | },
222 | playButton:{
223 | width:20,
224 | height:20,
225 | backgroundColor:'rgba(0,0,0,1)'
226 | },
227 | playButtonBox:{
228 | width:20,
229 | height:20
230 | },
231 | bottomBox:{
232 | width:playerDefaultWidth,
233 | height:20,
234 | left:0,
235 | top:-20,
236 | position:'absolute',
237 | alignItems: 'flex-start',
238 | justifyContent: 'flex-start',
239 | flexDirection: 'row',
240 | },
241 | sliderStyle:{
242 | height:20,
243 | width:playerDefaultWidth-120,
244 | backgroundColor:'rgba(0,0,0,0.5)'
245 | },
246 | trackStyle:{
247 | width:playerDefaultWidth-120,
248 | height:2
249 | },
250 | thumbStyle:{
251 | backgroundColor:'#fff',
252 | width:10,
253 | height:10
254 | },
255 | time:{
256 | color:'#fff',
257 | width:40,
258 | textAlign: 'center',
259 | justifyContent: 'center',
260 | height:20,
261 | paddingTop:5,
262 | fontSize:8,
263 | backgroundColor:'rgba(0,0,0,0.5)'
264 | },
265 | button:{
266 | backgroundColor:'rgba(0,0,0,1)'
267 | }
268 | });
269 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.vlcplayer',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.vlcplayer',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"]
59 | * ]
60 | */
61 |
62 | apply from: "../../node_modules/react-native/react.gradle"
63 |
64 | /**
65 | * Set this to true to create two separate APKs instead of one:
66 | * - An APK that only works on ARM devices
67 | * - An APK that only works on x86 devices
68 | * The advantage is the size of the APK is reduced by about 4MB.
69 | * Upload all the APKs to the Play Store and people will download
70 | * the correct one based on the CPU architecture of their device.
71 | */
72 | def enableSeparateBuildPerCPUArchitecture = false
73 |
74 | /**
75 | * Run Proguard to shrink the Java bytecode in release builds.
76 | */
77 | def enableProguardInReleaseBuilds = false
78 |
79 | android {
80 | compileSdkVersion 23
81 | buildToolsVersion "23.0.1"
82 |
83 | defaultConfig {
84 | applicationId "com.vlcplayer"
85 | minSdkVersion 16
86 | targetSdkVersion 22
87 | versionCode 1
88 | versionName "1.0"
89 | ndk {
90 | abiFilters "armeabi-v7a", "x86"
91 | }
92 | }
93 | splits {
94 | abi {
95 | reset()
96 | enable enableSeparateBuildPerCPUArchitecture
97 | universalApk false // If true, also generate a universal APK
98 | include "armeabi-v7a", "x86"
99 | }
100 | }
101 | buildTypes {
102 | release {
103 | minifyEnabled enableProguardInReleaseBuilds
104 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
105 | }
106 | }
107 | // applicationVariants are e.g. debug, release
108 | applicationVariants.all { variant ->
109 | variant.outputs.each { output ->
110 | // For each separate APK per architecture, set a unique version code as described here:
111 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
112 | def versionCodes = ["armeabi-v7a":1, "x86":2]
113 | def abi = output.getFilter(OutputFile.ABI)
114 | if (abi != null) { // null for the universal-debug, universal-release variants
115 | output.versionCodeOverride =
116 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
117 | }
118 | }
119 | }
120 | }
121 |
122 | dependencies {
123 | compile project(':react-native-vector-icons')
124 | compile fileTree(dir: "libs", include: ["*.jar"])
125 | compile "com.android.support:appcompat-v7:23.0.1"
126 | compile "com.facebook.react:react-native:+" // From node_modules
127 | }
128 |
129 | // Run this once to be able to run the application with BUCK
130 | // puts all compile dependencies into folder libs for BUCK to use
131 | task copyDownloadableDepsToLibs(type: Copy) {
132 | from configurations.compile
133 | into 'libs'
134 | }
135 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 |
30 | # Do not strip any method/class that is annotated with @DoNotStrip
31 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
32 | -keepclassmembers class * {
33 | @com.facebook.proguard.annotations.DoNotStrip *;
34 | }
35 |
36 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
37 | void set*(***);
38 | *** get*();
39 | }
40 |
41 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
42 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
43 | -keepclassmembers,includedescriptorclasses class * { native ; }
44 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
45 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
46 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
47 |
48 | -dontwarn com.facebook.react.**
49 |
50 | # okhttp
51 |
52 | -keepattributes Signature
53 | -keepattributes *Annotation*
54 | -keep class okhttp3.** { *; }
55 | -keep interface okhttp3.** { *; }
56 | -dontwarn okhttp3.**
57 |
58 | # okio
59 |
60 | -keep class sun.misc.Unsafe { *; }
61 | -dontwarn java.nio.file.*
62 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
63 | -dontwarn okio.**
64 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/Entypo.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/Foundation.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/Octicons.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/assets/fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/assets/fonts/Zocial.ttf
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/java/com/vlcplayer/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.vlcplayer;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.oblador.vectoricons.VectorIconsPackage;
5 | import com.facebook.react.ReactPackage;
6 | import com.facebook.react.shell.MainReactPackage;
7 |
8 | import java.util.Arrays;
9 | import java.util.List;
10 |
11 | public class MainActivity extends ReactActivity {
12 |
13 | /**
14 | * Returns the name of the main component registered from JavaScript.
15 | * This is used to schedule rendering of the component.
16 | */
17 | @Override
18 | protected String getMainComponentName() {
19 | return "vlcplayer";
20 | }
21 |
22 | /**
23 | * Returns whether dev mode should be enabled.
24 | * This enables e.g. the dev menu.
25 | */
26 | @Override
27 | protected boolean getUseDeveloperSupport() {
28 | return BuildConfig.DEBUG;
29 | }
30 |
31 | /**
32 | * A list of packages used by the app. If the app uses additional views
33 | * or modules besides the default ones, add more packages here.
34 | */
35 | @Override
36 | protected List getPackages() {
37 | return Arrays.asList(
38 | new MainReactPackage(),
39 | new VectorIconsPackage()
40 | );
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | vlcplayer
4 |
5 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.3.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$projectDir/../../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/Examples/vlcplayer/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'vlcplayer'
2 |
3 | include ':app'
4 | include ':react-native-vector-icons'
5 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
6 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AppRegistry,
10 | StyleSheet,
11 | Text,
12 | View
13 | } from 'react-native';
14 |
15 | class vlcplayer extends Component {
16 | render() {
17 | return (
18 |
19 |
20 | Welcome to React Native!
21 |
22 |
23 | To get started, edit index.android.js
24 |
25 |
26 | Shake or press menu button for dev menu
27 |
28 |
29 | );
30 | }
31 | }
32 |
33 | const styles = StyleSheet.create({
34 | container: {
35 | flex: 1,
36 | justifyContent: 'center',
37 | alignItems: 'center',
38 | backgroundColor: '#F5FCFF',
39 | },
40 | welcome: {
41 | fontSize: 20,
42 | textAlign: 'center',
43 | margin: 10,
44 | },
45 | instructions: {
46 | textAlign: 'center',
47 | color: '#333333',
48 | marginBottom: 5,
49 | },
50 | });
51 |
52 | AppRegistry.registerComponent('vlcplayer', () => vlcplayer);
53 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/index.ios.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | AppRegistry,
4 | View,
5 | Text
6 | } from 'react-native';
7 | import SimpleVideo from './SimpleVideo.js';
8 | import Video from './Video.js';
9 |
10 |
11 |
12 | class vlcplayer extends Component {
13 |
14 | render() {
15 | const uri = 'http://cdn.goluk.cn/video/t1_2.mp4';
16 | let simplevideo = this.renderSimpleVideo(uri);
17 | let video = null;//this.renderVideo(uri);
18 | return (
19 |
20 | {simplevideo}
21 | {video}
22 |
23 | );
24 | }
25 |
26 | renderSimpleVideo(uri){
27 | return (
28 |
29 |
30 | A Simple Player
31 |
32 | );
33 | }
34 |
35 | renderVideo(uri){
36 | return (
37 |
38 |
39 | A full-featured player
40 |
41 | );
42 | }
43 | }
44 |
45 | AppRegistry.registerComponent('vlcplayer', () => vlcplayer);
46 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* vlcplayerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* vlcplayerTests.m */; };
16 | 0C2B977D1D07FDC1007E68B1 /* VideoToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2B977C1D07FDC1007E68B1 /* VideoToolbox.framework */; };
17 | 0C2B977F1D07FDD7007E68B1 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2B977E1D07FDD7007E68B1 /* libiconv.tbd */; };
18 | 0C2B97A11D094B54007E68B1 /* libART.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2B97A01D094B47007E68B1 /* libART.a */; };
19 | 0C965DFF1D0D4DAA0057679D /* RCTOrientation in Resources */ = {isa = PBXBuildFile; fileRef = 0C965DFE1D0D4DAA0057679D /* RCTOrientation */; };
20 | 0C965E081D0D7EB90057679D /* libRNFS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C965E071D0D7EA80057679D /* libRNFS.a */; };
21 | 0CB94E1D1D098D1400D4A823 /* MobileVLCKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CB94E1C1D098D1400D4A823 /* MobileVLCKit.framework */; };
22 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
23 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
24 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
25 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
26 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
27 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
28 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
29 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
30 | 14C1C18DB65145AF8362826C /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EF8F7648D1924463990B8A91 /* EvilIcons.ttf */; };
31 | 1C866C7487394FCAB425504B /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CF5347D5C0664C4F8AF1453E /* libRNVectorIcons.a */; };
32 | 29C92F7DACFB48B4AADE1220 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CCACA4B135994666A1ACFE52 /* Octicons.ttf */; };
33 | 403E1FEC1B7346559B3FA70E /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 60274862D2AB48B78454DB34 /* MaterialIcons.ttf */; };
34 | 6349CDC11E474E808505F519 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C13C2068AF5541C3B55CBC93 /* Entypo.ttf */; };
35 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
36 | 93B638B69D834147A91BDD93 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9BC522021841448D960E6EF9 /* FontAwesome.ttf */; };
37 | C33D3C9B571C453680088BAB /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E75D9B3500A4492AB91BCBB8 /* Zocial.ttf */; };
38 | CA6E7B8E05034DA3B1AC6898 /* libRCTVLCPlayer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C498BD8C02814AEB801B919C /* libRCTVLCPlayer.a */; };
39 | CD49F309841C4B9ABEDFDD6C /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B93CA16C3FC2463F87E97159 /* Foundation.ttf */; };
40 | D9B018E21F514FAAB310A9DB /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 203B47B8936945FAA543CC74 /* Ionicons.ttf */; };
41 | /* End PBXBuildFile section */
42 |
43 | /* Begin PBXContainerItemProxy section */
44 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
45 | isa = PBXContainerItemProxy;
46 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
47 | proxyType = 2;
48 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
49 | remoteInfo = RCTActionSheet;
50 | };
51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
52 | isa = PBXContainerItemProxy;
53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
54 | proxyType = 2;
55 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
56 | remoteInfo = RCTGeolocation;
57 | };
58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
59 | isa = PBXContainerItemProxy;
60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
61 | proxyType = 2;
62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
63 | remoteInfo = RCTImage;
64 | };
65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
66 | isa = PBXContainerItemProxy;
67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
68 | proxyType = 2;
69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
70 | remoteInfo = RCTNetwork;
71 | };
72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
73 | isa = PBXContainerItemProxy;
74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
75 | proxyType = 2;
76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
77 | remoteInfo = RCTVibration;
78 | };
79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
80 | isa = PBXContainerItemProxy;
81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
82 | proxyType = 1;
83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
84 | remoteInfo = vlcplayer;
85 | };
86 | 0C2B97991D092CB7007E68B1 /* PBXContainerItemProxy */ = {
87 | isa = PBXContainerItemProxy;
88 | containerPortal = 46BFE0274CFB46E0A8644627 /* RNVectorIcons.xcodeproj */;
89 | proxyType = 2;
90 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395;
91 | remoteInfo = RNVectorIcons;
92 | };
93 | 0C2B979F1D094B47007E68B1 /* PBXContainerItemProxy */ = {
94 | isa = PBXContainerItemProxy;
95 | containerPortal = 0C2B979B1D094B47007E68B1 /* ART.xcodeproj */;
96 | proxyType = 2;
97 | remoteGlobalIDString = 0CF68AC11AF0540F00FF9E5C;
98 | remoteInfo = ART;
99 | };
100 | 0C965E061D0D7EA80057679D /* PBXContainerItemProxy */ = {
101 | isa = PBXContainerItemProxy;
102 | containerPortal = 0C965E021D0D7EA70057679D /* RNFS.xcodeproj */;
103 | proxyType = 2;
104 | remoteGlobalIDString = F12AFB9B1ADAF8F800E0535D;
105 | remoteInfo = RNFS;
106 | };
107 | 0CB94E361D098D4B00D4A823 /* PBXContainerItemProxy */ = {
108 | isa = PBXContainerItemProxy;
109 | containerPortal = 8BBE3E9554C240AFA07C8FC9 /* RCTVLCPlayer.xcodeproj */;
110 | proxyType = 2;
111 | remoteGlobalIDString = 0CA30C441D07E0DB003B09F9;
112 | remoteInfo = RCTVLCPlayer;
113 | };
114 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
115 | isa = PBXContainerItemProxy;
116 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
117 | proxyType = 2;
118 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
119 | remoteInfo = RCTSettings;
120 | };
121 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
122 | isa = PBXContainerItemProxy;
123 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
124 | proxyType = 2;
125 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
126 | remoteInfo = RCTWebSocket;
127 | };
128 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
129 | isa = PBXContainerItemProxy;
130 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
131 | proxyType = 2;
132 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
133 | remoteInfo = React;
134 | };
135 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
136 | isa = PBXContainerItemProxy;
137 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
138 | proxyType = 2;
139 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
140 | remoteInfo = RCTLinking;
141 | };
142 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
143 | isa = PBXContainerItemProxy;
144 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
145 | proxyType = 2;
146 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
147 | remoteInfo = RCTText;
148 | };
149 | /* End PBXContainerItemProxy section */
150 |
151 | /* Begin PBXFileReference section */
152 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
153 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
154 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
155 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
156 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
157 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
158 | 00E356EE1AD99517003FC87E /* vlcplayerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = vlcplayerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
159 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
160 | 00E356F21AD99517003FC87E /* vlcplayerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = vlcplayerTests.m; sourceTree = ""; };
161 | 0C2B977C1D07FDC1007E68B1 /* VideoToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VideoToolbox.framework; path = System/Library/Frameworks/VideoToolbox.framework; sourceTree = SDKROOT; };
162 | 0C2B977E1D07FDD7007E68B1 /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };
163 | 0C2B979B1D094B47007E68B1 /* ART.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ART.xcodeproj; path = "../node_modules/react-native/Libraries/ART/ART.xcodeproj"; sourceTree = ""; };
164 | 0C965DFE1D0D4DAA0057679D /* RCTOrientation */ = {isa = PBXFileReference; lastKnownFileType = folder; name = RCTOrientation; path = "../node_modules/react-native-orientation/RCTOrientation"; sourceTree = ""; };
165 | 0C965E021D0D7EA70057679D /* RNFS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNFS.xcodeproj; path = "../node_modules/react-native-fs/RNFS.xcodeproj"; sourceTree = ""; };
166 | 0CB94E1C1D098D1400D4A823 /* MobileVLCKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileVLCKit.framework; path = "../../../../../../Downloads/vlc/MobileVLCKit-binary/MobileVLCKit.framework"; sourceTree = ""; };
167 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
168 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
169 | 13B07F961A680F5B00A75B9A /* vlcplayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = vlcplayer.app; sourceTree = BUILT_PRODUCTS_DIR; };
170 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = vlcplayer/AppDelegate.h; sourceTree = ""; };
171 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = vlcplayer/AppDelegate.m; sourceTree = ""; };
172 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
173 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = vlcplayer/Images.xcassets; sourceTree = ""; };
174 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = vlcplayer/Info.plist; sourceTree = ""; };
175 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = vlcplayer/main.m; sourceTree = ""; };
176 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
177 | 203B47B8936945FAA543CC74 /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; };
178 | 46BFE0274CFB46E0A8644627 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; };
179 | 60274862D2AB48B78454DB34 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; };
180 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
181 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
182 | 8BBE3E9554C240AFA07C8FC9 /* RCTVLCPlayer.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTVLCPlayer.xcodeproj; path = "../node_modules/react-native-vlcplayer/ios/RCTVLCPlayer.xcodeproj"; sourceTree = ""; };
183 | 9BC522021841448D960E6EF9 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; };
184 | B93CA16C3FC2463F87E97159 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; };
185 | C13C2068AF5541C3B55CBC93 /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; };
186 | C498BD8C02814AEB801B919C /* libRCTVLCPlayer.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTVLCPlayer.a; sourceTree = ""; };
187 | CCACA4B135994666A1ACFE52 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; };
188 | CF5347D5C0664C4F8AF1453E /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; };
189 | E75D9B3500A4492AB91BCBB8 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; };
190 | EF8F7648D1924463990B8A91 /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; };
191 | /* End PBXFileReference section */
192 |
193 | /* Begin PBXFrameworksBuildPhase section */
194 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
195 | isa = PBXFrameworksBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | );
199 | runOnlyForDeploymentPostprocessing = 0;
200 | };
201 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
202 | isa = PBXFrameworksBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | 0CB94E1D1D098D1400D4A823 /* MobileVLCKit.framework in Frameworks */,
206 | 0C2B977F1D07FDD7007E68B1 /* libiconv.tbd in Frameworks */,
207 | 0C2B977D1D07FDC1007E68B1 /* VideoToolbox.framework in Frameworks */,
208 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
209 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
210 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
211 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
212 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
213 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
214 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
215 | 0C2B97A11D094B54007E68B1 /* libART.a in Frameworks */,
216 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
217 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
218 | 0C965E081D0D7EB90057679D /* libRNFS.a in Frameworks */,
219 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
220 | 1C866C7487394FCAB425504B /* libRNVectorIcons.a in Frameworks */,
221 | CA6E7B8E05034DA3B1AC6898 /* libRCTVLCPlayer.a in Frameworks */,
222 | );
223 | runOnlyForDeploymentPostprocessing = 0;
224 | };
225 | /* End PBXFrameworksBuildPhase section */
226 |
227 | /* Begin PBXGroup section */
228 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
229 | isa = PBXGroup;
230 | children = (
231 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
232 | );
233 | name = Products;
234 | sourceTree = "";
235 | };
236 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
237 | isa = PBXGroup;
238 | children = (
239 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
240 | );
241 | name = Products;
242 | sourceTree = "";
243 | };
244 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
245 | isa = PBXGroup;
246 | children = (
247 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
248 | );
249 | name = Products;
250 | sourceTree = "";
251 | };
252 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
253 | isa = PBXGroup;
254 | children = (
255 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
256 | );
257 | name = Products;
258 | sourceTree = "";
259 | };
260 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
261 | isa = PBXGroup;
262 | children = (
263 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
264 | );
265 | name = Products;
266 | sourceTree = "";
267 | };
268 | 00E356EF1AD99517003FC87E /* vlcplayerTests */ = {
269 | isa = PBXGroup;
270 | children = (
271 | 00E356F21AD99517003FC87E /* vlcplayerTests.m */,
272 | 00E356F01AD99517003FC87E /* Supporting Files */,
273 | );
274 | path = vlcplayerTests;
275 | sourceTree = "";
276 | };
277 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
278 | isa = PBXGroup;
279 | children = (
280 | 00E356F11AD99517003FC87E /* Info.plist */,
281 | );
282 | name = "Supporting Files";
283 | sourceTree = "";
284 | };
285 | 0C2B978B1D092CB7007E68B1 /* Products */ = {
286 | isa = PBXGroup;
287 | children = (
288 | 0C2B979A1D092CB7007E68B1 /* libRNVectorIcons.a */,
289 | );
290 | name = Products;
291 | sourceTree = "";
292 | };
293 | 0C2B979C1D094B47007E68B1 /* Products */ = {
294 | isa = PBXGroup;
295 | children = (
296 | 0C2B97A01D094B47007E68B1 /* libART.a */,
297 | );
298 | name = Products;
299 | sourceTree = "";
300 | };
301 | 0C965E031D0D7EA70057679D /* Products */ = {
302 | isa = PBXGroup;
303 | children = (
304 | 0C965E071D0D7EA80057679D /* libRNFS.a */,
305 | );
306 | name = Products;
307 | sourceTree = "";
308 | };
309 | 0CB94E2A1D098D4B00D4A823 /* Products */ = {
310 | isa = PBXGroup;
311 | children = (
312 | 0CB94E371D098D4B00D4A823 /* libRCTVLCPlayer.a */,
313 | );
314 | name = Products;
315 | sourceTree = "";
316 | };
317 | 139105B71AF99BAD00B5F7CC /* Products */ = {
318 | isa = PBXGroup;
319 | children = (
320 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
321 | );
322 | name = Products;
323 | sourceTree = "";
324 | };
325 | 139FDEE71B06529A00C62182 /* Products */ = {
326 | isa = PBXGroup;
327 | children = (
328 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
329 | );
330 | name = Products;
331 | sourceTree = "";
332 | };
333 | 13B07FAE1A68108700A75B9A /* vlcplayer */ = {
334 | isa = PBXGroup;
335 | children = (
336 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
337 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
338 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
339 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
340 | 13B07FB61A68108700A75B9A /* Info.plist */,
341 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
342 | 13B07FB71A68108700A75B9A /* main.m */,
343 | );
344 | name = vlcplayer;
345 | sourceTree = "";
346 | };
347 | 146834001AC3E56700842450 /* Products */ = {
348 | isa = PBXGroup;
349 | children = (
350 | 146834041AC3E56700842450 /* libReact.a */,
351 | );
352 | name = Products;
353 | sourceTree = "";
354 | };
355 | 78C398B11ACF4ADC00677621 /* Products */ = {
356 | isa = PBXGroup;
357 | children = (
358 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
359 | );
360 | name = Products;
361 | sourceTree = "";
362 | };
363 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
364 | isa = PBXGroup;
365 | children = (
366 | 0C965E021D0D7EA70057679D /* RNFS.xcodeproj */,
367 | 0C2B979B1D094B47007E68B1 /* ART.xcodeproj */,
368 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
369 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
370 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
371 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
372 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
373 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
374 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
375 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
376 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
377 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
378 | 46BFE0274CFB46E0A8644627 /* RNVectorIcons.xcodeproj */,
379 | 8BBE3E9554C240AFA07C8FC9 /* RCTVLCPlayer.xcodeproj */,
380 | );
381 | name = Libraries;
382 | sourceTree = "";
383 | };
384 | 832341B11AAA6A8300B99B32 /* Products */ = {
385 | isa = PBXGroup;
386 | children = (
387 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
388 | );
389 | name = Products;
390 | sourceTree = "";
391 | };
392 | 83CBB9F61A601CBA00E9B192 = {
393 | isa = PBXGroup;
394 | children = (
395 | 0C965DFE1D0D4DAA0057679D /* RCTOrientation */,
396 | 0CB94E1C1D098D1400D4A823 /* MobileVLCKit.framework */,
397 | 0C2B977E1D07FDD7007E68B1 /* libiconv.tbd */,
398 | 0C2B977C1D07FDC1007E68B1 /* VideoToolbox.framework */,
399 | 13B07FAE1A68108700A75B9A /* vlcplayer */,
400 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
401 | 00E356EF1AD99517003FC87E /* vlcplayerTests */,
402 | 83CBBA001A601CBA00E9B192 /* Products */,
403 | EA93E47994C74D7EAA4B9B4E /* Resources */,
404 | );
405 | indentWidth = 2;
406 | sourceTree = "";
407 | tabWidth = 2;
408 | };
409 | 83CBBA001A601CBA00E9B192 /* Products */ = {
410 | isa = PBXGroup;
411 | children = (
412 | 13B07F961A680F5B00A75B9A /* vlcplayer.app */,
413 | 00E356EE1AD99517003FC87E /* vlcplayerTests.xctest */,
414 | );
415 | name = Products;
416 | sourceTree = "";
417 | };
418 | EA93E47994C74D7EAA4B9B4E /* Resources */ = {
419 | isa = PBXGroup;
420 | children = (
421 | C13C2068AF5541C3B55CBC93 /* Entypo.ttf */,
422 | EF8F7648D1924463990B8A91 /* EvilIcons.ttf */,
423 | 9BC522021841448D960E6EF9 /* FontAwesome.ttf */,
424 | B93CA16C3FC2463F87E97159 /* Foundation.ttf */,
425 | 203B47B8936945FAA543CC74 /* Ionicons.ttf */,
426 | 60274862D2AB48B78454DB34 /* MaterialIcons.ttf */,
427 | CCACA4B135994666A1ACFE52 /* Octicons.ttf */,
428 | E75D9B3500A4492AB91BCBB8 /* Zocial.ttf */,
429 | );
430 | name = Resources;
431 | sourceTree = "";
432 | };
433 | /* End PBXGroup section */
434 |
435 | /* Begin PBXNativeTarget section */
436 | 00E356ED1AD99517003FC87E /* vlcplayerTests */ = {
437 | isa = PBXNativeTarget;
438 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "vlcplayerTests" */;
439 | buildPhases = (
440 | 00E356EA1AD99517003FC87E /* Sources */,
441 | 00E356EB1AD99517003FC87E /* Frameworks */,
442 | 00E356EC1AD99517003FC87E /* Resources */,
443 | );
444 | buildRules = (
445 | );
446 | dependencies = (
447 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
448 | );
449 | name = vlcplayerTests;
450 | productName = vlcplayerTests;
451 | productReference = 00E356EE1AD99517003FC87E /* vlcplayerTests.xctest */;
452 | productType = "com.apple.product-type.bundle.unit-test";
453 | };
454 | 13B07F861A680F5B00A75B9A /* vlcplayer */ = {
455 | isa = PBXNativeTarget;
456 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "vlcplayer" */;
457 | buildPhases = (
458 | 13B07F871A680F5B00A75B9A /* Sources */,
459 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
460 | 13B07F8E1A680F5B00A75B9A /* Resources */,
461 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
462 | );
463 | buildRules = (
464 | );
465 | dependencies = (
466 | );
467 | name = vlcplayer;
468 | productName = "Hello World";
469 | productReference = 13B07F961A680F5B00A75B9A /* vlcplayer.app */;
470 | productType = "com.apple.product-type.application";
471 | };
472 | /* End PBXNativeTarget section */
473 |
474 | /* Begin PBXProject section */
475 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
476 | isa = PBXProject;
477 | attributes = {
478 | LastUpgradeCheck = 610;
479 | ORGANIZATIONNAME = Facebook;
480 | TargetAttributes = {
481 | 00E356ED1AD99517003FC87E = {
482 | CreatedOnToolsVersion = 6.2;
483 | TestTargetID = 13B07F861A680F5B00A75B9A;
484 | };
485 | };
486 | };
487 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "vlcplayer" */;
488 | compatibilityVersion = "Xcode 3.2";
489 | developmentRegion = English;
490 | hasScannedForEncodings = 0;
491 | knownRegions = (
492 | en,
493 | Base,
494 | );
495 | mainGroup = 83CBB9F61A601CBA00E9B192;
496 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
497 | projectDirPath = "";
498 | projectReferences = (
499 | {
500 | ProductGroup = 0C2B979C1D094B47007E68B1 /* Products */;
501 | ProjectRef = 0C2B979B1D094B47007E68B1 /* ART.xcodeproj */;
502 | },
503 | {
504 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
505 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
506 | },
507 | {
508 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
509 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
510 | },
511 | {
512 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
513 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
514 | },
515 | {
516 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
517 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
518 | },
519 | {
520 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
521 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
522 | },
523 | {
524 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
525 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
526 | },
527 | {
528 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
529 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
530 | },
531 | {
532 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
533 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
534 | },
535 | {
536 | ProductGroup = 0CB94E2A1D098D4B00D4A823 /* Products */;
537 | ProjectRef = 8BBE3E9554C240AFA07C8FC9 /* RCTVLCPlayer.xcodeproj */;
538 | },
539 | {
540 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
541 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
542 | },
543 | {
544 | ProductGroup = 146834001AC3E56700842450 /* Products */;
545 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
546 | },
547 | {
548 | ProductGroup = 0C965E031D0D7EA70057679D /* Products */;
549 | ProjectRef = 0C965E021D0D7EA70057679D /* RNFS.xcodeproj */;
550 | },
551 | {
552 | ProductGroup = 0C2B978B1D092CB7007E68B1 /* Products */;
553 | ProjectRef = 46BFE0274CFB46E0A8644627 /* RNVectorIcons.xcodeproj */;
554 | },
555 | );
556 | projectRoot = "";
557 | targets = (
558 | 13B07F861A680F5B00A75B9A /* vlcplayer */,
559 | 00E356ED1AD99517003FC87E /* vlcplayerTests */,
560 | );
561 | };
562 | /* End PBXProject section */
563 |
564 | /* Begin PBXReferenceProxy section */
565 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
566 | isa = PBXReferenceProxy;
567 | fileType = archive.ar;
568 | path = libRCTActionSheet.a;
569 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
570 | sourceTree = BUILT_PRODUCTS_DIR;
571 | };
572 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
573 | isa = PBXReferenceProxy;
574 | fileType = archive.ar;
575 | path = libRCTGeolocation.a;
576 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
577 | sourceTree = BUILT_PRODUCTS_DIR;
578 | };
579 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
580 | isa = PBXReferenceProxy;
581 | fileType = archive.ar;
582 | path = libRCTImage.a;
583 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
584 | sourceTree = BUILT_PRODUCTS_DIR;
585 | };
586 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
587 | isa = PBXReferenceProxy;
588 | fileType = archive.ar;
589 | path = libRCTNetwork.a;
590 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
591 | sourceTree = BUILT_PRODUCTS_DIR;
592 | };
593 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
594 | isa = PBXReferenceProxy;
595 | fileType = archive.ar;
596 | path = libRCTVibration.a;
597 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
598 | sourceTree = BUILT_PRODUCTS_DIR;
599 | };
600 | 0C2B979A1D092CB7007E68B1 /* libRNVectorIcons.a */ = {
601 | isa = PBXReferenceProxy;
602 | fileType = archive.ar;
603 | path = libRNVectorIcons.a;
604 | remoteRef = 0C2B97991D092CB7007E68B1 /* PBXContainerItemProxy */;
605 | sourceTree = BUILT_PRODUCTS_DIR;
606 | };
607 | 0C2B97A01D094B47007E68B1 /* libART.a */ = {
608 | isa = PBXReferenceProxy;
609 | fileType = archive.ar;
610 | path = libART.a;
611 | remoteRef = 0C2B979F1D094B47007E68B1 /* PBXContainerItemProxy */;
612 | sourceTree = BUILT_PRODUCTS_DIR;
613 | };
614 | 0C965E071D0D7EA80057679D /* libRNFS.a */ = {
615 | isa = PBXReferenceProxy;
616 | fileType = archive.ar;
617 | path = libRNFS.a;
618 | remoteRef = 0C965E061D0D7EA80057679D /* PBXContainerItemProxy */;
619 | sourceTree = BUILT_PRODUCTS_DIR;
620 | };
621 | 0CB94E371D098D4B00D4A823 /* libRCTVLCPlayer.a */ = {
622 | isa = PBXReferenceProxy;
623 | fileType = archive.ar;
624 | path = libRCTVLCPlayer.a;
625 | remoteRef = 0CB94E361D098D4B00D4A823 /* PBXContainerItemProxy */;
626 | sourceTree = BUILT_PRODUCTS_DIR;
627 | };
628 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
629 | isa = PBXReferenceProxy;
630 | fileType = archive.ar;
631 | path = libRCTSettings.a;
632 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
633 | sourceTree = BUILT_PRODUCTS_DIR;
634 | };
635 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
636 | isa = PBXReferenceProxy;
637 | fileType = archive.ar;
638 | path = libRCTWebSocket.a;
639 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
640 | sourceTree = BUILT_PRODUCTS_DIR;
641 | };
642 | 146834041AC3E56700842450 /* libReact.a */ = {
643 | isa = PBXReferenceProxy;
644 | fileType = archive.ar;
645 | path = libReact.a;
646 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
647 | sourceTree = BUILT_PRODUCTS_DIR;
648 | };
649 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
650 | isa = PBXReferenceProxy;
651 | fileType = archive.ar;
652 | path = libRCTLinking.a;
653 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
654 | sourceTree = BUILT_PRODUCTS_DIR;
655 | };
656 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
657 | isa = PBXReferenceProxy;
658 | fileType = archive.ar;
659 | path = libRCTText.a;
660 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
661 | sourceTree = BUILT_PRODUCTS_DIR;
662 | };
663 | /* End PBXReferenceProxy section */
664 |
665 | /* Begin PBXResourcesBuildPhase section */
666 | 00E356EC1AD99517003FC87E /* Resources */ = {
667 | isa = PBXResourcesBuildPhase;
668 | buildActionMask = 2147483647;
669 | files = (
670 | );
671 | runOnlyForDeploymentPostprocessing = 0;
672 | };
673 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
674 | isa = PBXResourcesBuildPhase;
675 | buildActionMask = 2147483647;
676 | files = (
677 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
678 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
679 | 6349CDC11E474E808505F519 /* Entypo.ttf in Resources */,
680 | 14C1C18DB65145AF8362826C /* EvilIcons.ttf in Resources */,
681 | 93B638B69D834147A91BDD93 /* FontAwesome.ttf in Resources */,
682 | CD49F309841C4B9ABEDFDD6C /* Foundation.ttf in Resources */,
683 | D9B018E21F514FAAB310A9DB /* Ionicons.ttf in Resources */,
684 | 0C965DFF1D0D4DAA0057679D /* RCTOrientation in Resources */,
685 | 403E1FEC1B7346559B3FA70E /* MaterialIcons.ttf in Resources */,
686 | 29C92F7DACFB48B4AADE1220 /* Octicons.ttf in Resources */,
687 | C33D3C9B571C453680088BAB /* Zocial.ttf in Resources */,
688 | );
689 | runOnlyForDeploymentPostprocessing = 0;
690 | };
691 | /* End PBXResourcesBuildPhase section */
692 |
693 | /* Begin PBXShellScriptBuildPhase section */
694 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
695 | isa = PBXShellScriptBuildPhase;
696 | buildActionMask = 2147483647;
697 | files = (
698 | );
699 | inputPaths = (
700 | );
701 | name = "Bundle React Native code and images";
702 | outputPaths = (
703 | );
704 | runOnlyForDeploymentPostprocessing = 0;
705 | shellPath = /bin/sh;
706 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
707 | };
708 | /* End PBXShellScriptBuildPhase section */
709 |
710 | /* Begin PBXSourcesBuildPhase section */
711 | 00E356EA1AD99517003FC87E /* Sources */ = {
712 | isa = PBXSourcesBuildPhase;
713 | buildActionMask = 2147483647;
714 | files = (
715 | 00E356F31AD99517003FC87E /* vlcplayerTests.m in Sources */,
716 | );
717 | runOnlyForDeploymentPostprocessing = 0;
718 | };
719 | 13B07F871A680F5B00A75B9A /* Sources */ = {
720 | isa = PBXSourcesBuildPhase;
721 | buildActionMask = 2147483647;
722 | files = (
723 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
724 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
725 | );
726 | runOnlyForDeploymentPostprocessing = 0;
727 | };
728 | /* End PBXSourcesBuildPhase section */
729 |
730 | /* Begin PBXTargetDependency section */
731 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
732 | isa = PBXTargetDependency;
733 | target = 13B07F861A680F5B00A75B9A /* vlcplayer */;
734 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
735 | };
736 | /* End PBXTargetDependency section */
737 |
738 | /* Begin PBXVariantGroup section */
739 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
740 | isa = PBXVariantGroup;
741 | children = (
742 | 13B07FB21A68108700A75B9A /* Base */,
743 | );
744 | name = LaunchScreen.xib;
745 | path = vlcplayer;
746 | sourceTree = "";
747 | };
748 | /* End PBXVariantGroup section */
749 |
750 | /* Begin XCBuildConfiguration section */
751 | 00E356F61AD99517003FC87E /* Debug */ = {
752 | isa = XCBuildConfiguration;
753 | buildSettings = {
754 | BUNDLE_LOADER = "$(TEST_HOST)";
755 | GCC_PREPROCESSOR_DEFINITIONS = (
756 | "DEBUG=1",
757 | "$(inherited)",
758 | );
759 | INFOPLIST_FILE = vlcplayerTests/Info.plist;
760 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
761 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
762 | LIBRARY_SEARCH_PATHS = (
763 | "$(inherited)",
764 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
765 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
766 | );
767 | PRODUCT_NAME = "$(TARGET_NAME)";
768 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/vlcplayer.app/vlcplayer";
769 | };
770 | name = Debug;
771 | };
772 | 00E356F71AD99517003FC87E /* Release */ = {
773 | isa = XCBuildConfiguration;
774 | buildSettings = {
775 | BUNDLE_LOADER = "$(TEST_HOST)";
776 | COPY_PHASE_STRIP = NO;
777 | INFOPLIST_FILE = vlcplayerTests/Info.plist;
778 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
779 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
780 | LIBRARY_SEARCH_PATHS = (
781 | "$(inherited)",
782 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
783 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
784 | );
785 | PRODUCT_NAME = "$(TARGET_NAME)";
786 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/vlcplayer.app/vlcplayer";
787 | };
788 | name = Release;
789 | };
790 | 13B07F941A680F5B00A75B9A /* Debug */ = {
791 | isa = XCBuildConfiguration;
792 | buildSettings = {
793 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
794 | DEAD_CODE_STRIPPING = NO;
795 | ENABLE_BITCODE = NO;
796 | FRAMEWORK_SEARCH_PATHS = "/Users/xiongchuan/Downloads/vlc/MobileVLCKit-binary";
797 | HEADER_SEARCH_PATHS = (
798 | "$(inherited)",
799 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
800 | "$(SRCROOT)/../node_modules/react-native/React/**",
801 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
802 | );
803 | INFOPLIST_FILE = vlcplayer/Info.plist;
804 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
805 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
806 | ONLY_ACTIVE_ARCH = YES;
807 | OTHER_LDFLAGS = (
808 | "-ObjC",
809 | "-lc++",
810 | );
811 | PRODUCT_BUNDLE_IDENTIFIER = org.xiongchuan.examples.vlcplayer;
812 | PRODUCT_NAME = vlcplayer;
813 | VALID_ARCHS = "arm64 armv7 armv7s x86_64";
814 | };
815 | name = Debug;
816 | };
817 | 13B07F951A680F5B00A75B9A /* Release */ = {
818 | isa = XCBuildConfiguration;
819 | buildSettings = {
820 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
821 | ENABLE_BITCODE = NO;
822 | FRAMEWORK_SEARCH_PATHS = "/Users/xiongchuan/Downloads/vlc/MobileVLCKit-binary";
823 | HEADER_SEARCH_PATHS = (
824 | "$(inherited)",
825 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
826 | "$(SRCROOT)/../node_modules/react-native/React/**",
827 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
828 | );
829 | INFOPLIST_FILE = vlcplayer/Info.plist;
830 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
831 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
832 | ONLY_ACTIVE_ARCH = YES;
833 | OTHER_LDFLAGS = (
834 | "-ObjC",
835 | "-lc++",
836 | );
837 | PRODUCT_BUNDLE_IDENTIFIER = org.xiongchuan.examples.vlcplayer;
838 | PRODUCT_NAME = vlcplayer;
839 | VALID_ARCHS = "arm64 armv7 armv7s x86_64";
840 | };
841 | name = Release;
842 | };
843 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
844 | isa = XCBuildConfiguration;
845 | buildSettings = {
846 | ALWAYS_SEARCH_USER_PATHS = NO;
847 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
848 | CLANG_CXX_LIBRARY = "libc++";
849 | CLANG_ENABLE_MODULES = YES;
850 | CLANG_ENABLE_OBJC_ARC = YES;
851 | CLANG_WARN_BOOL_CONVERSION = YES;
852 | CLANG_WARN_CONSTANT_CONVERSION = YES;
853 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
854 | CLANG_WARN_EMPTY_BODY = YES;
855 | CLANG_WARN_ENUM_CONVERSION = YES;
856 | CLANG_WARN_INT_CONVERSION = YES;
857 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
858 | CLANG_WARN_UNREACHABLE_CODE = YES;
859 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
860 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
861 | COPY_PHASE_STRIP = NO;
862 | ENABLE_STRICT_OBJC_MSGSEND = YES;
863 | GCC_C_LANGUAGE_STANDARD = gnu99;
864 | GCC_DYNAMIC_NO_PIC = NO;
865 | GCC_OPTIMIZATION_LEVEL = 0;
866 | GCC_PREPROCESSOR_DEFINITIONS = (
867 | "DEBUG=1",
868 | "$(inherited)",
869 | );
870 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
871 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
872 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
873 | GCC_WARN_UNDECLARED_SELECTOR = YES;
874 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
875 | GCC_WARN_UNUSED_FUNCTION = YES;
876 | GCC_WARN_UNUSED_VARIABLE = YES;
877 | HEADER_SEARCH_PATHS = (
878 | "$(inherited)",
879 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
880 | "$(SRCROOT)/../node_modules/react-native/React/**",
881 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
882 | );
883 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
884 | MTL_ENABLE_DEBUG_INFO = YES;
885 | ONLY_ACTIVE_ARCH = YES;
886 | SDKROOT = iphoneos;
887 | };
888 | name = Debug;
889 | };
890 | 83CBBA211A601CBA00E9B192 /* Release */ = {
891 | isa = XCBuildConfiguration;
892 | buildSettings = {
893 | ALWAYS_SEARCH_USER_PATHS = NO;
894 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
895 | CLANG_CXX_LIBRARY = "libc++";
896 | CLANG_ENABLE_MODULES = YES;
897 | CLANG_ENABLE_OBJC_ARC = YES;
898 | CLANG_WARN_BOOL_CONVERSION = YES;
899 | CLANG_WARN_CONSTANT_CONVERSION = YES;
900 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
901 | CLANG_WARN_EMPTY_BODY = YES;
902 | CLANG_WARN_ENUM_CONVERSION = YES;
903 | CLANG_WARN_INT_CONVERSION = YES;
904 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
905 | CLANG_WARN_UNREACHABLE_CODE = YES;
906 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
907 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
908 | COPY_PHASE_STRIP = YES;
909 | ENABLE_NS_ASSERTIONS = NO;
910 | ENABLE_STRICT_OBJC_MSGSEND = YES;
911 | GCC_C_LANGUAGE_STANDARD = gnu99;
912 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
913 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
914 | GCC_WARN_UNDECLARED_SELECTOR = YES;
915 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
916 | GCC_WARN_UNUSED_FUNCTION = YES;
917 | GCC_WARN_UNUSED_VARIABLE = YES;
918 | HEADER_SEARCH_PATHS = (
919 | "$(inherited)",
920 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
921 | "$(SRCROOT)/../node_modules/react-native/React/**",
922 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
923 | );
924 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
925 | MTL_ENABLE_DEBUG_INFO = NO;
926 | ONLY_ACTIVE_ARCH = YES;
927 | SDKROOT = iphoneos;
928 | VALIDATE_PRODUCT = YES;
929 | };
930 | name = Release;
931 | };
932 | /* End XCBuildConfiguration section */
933 |
934 | /* Begin XCConfigurationList section */
935 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "vlcplayerTests" */ = {
936 | isa = XCConfigurationList;
937 | buildConfigurations = (
938 | 00E356F61AD99517003FC87E /* Debug */,
939 | 00E356F71AD99517003FC87E /* Release */,
940 | );
941 | defaultConfigurationIsVisible = 0;
942 | defaultConfigurationName = Release;
943 | };
944 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "vlcplayer" */ = {
945 | isa = XCConfigurationList;
946 | buildConfigurations = (
947 | 13B07F941A680F5B00A75B9A /* Debug */,
948 | 13B07F951A680F5B00A75B9A /* Release */,
949 | );
950 | defaultConfigurationIsVisible = 0;
951 | defaultConfigurationName = Release;
952 | };
953 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "vlcplayer" */ = {
954 | isa = XCConfigurationList;
955 | buildConfigurations = (
956 | 83CBBA201A601CBA00E9B192 /* Debug */,
957 | 83CBBA211A601CBA00E9B192 /* Release */,
958 | );
959 | defaultConfigurationIsVisible = 0;
960 | defaultConfigurationName = Release;
961 | };
962 | /* End XCConfigurationList section */
963 | };
964 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
965 | }
966 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer.xcodeproj/xcshareddata/xcschemes/vlcplayer.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
77 |
83 |
84 |
85 |
86 |
87 |
88 |
94 |
96 |
102 |
103 |
104 |
105 |
107 |
108 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import "RCTRootView.h"
13 |
14 | @implementation AppDelegate
15 |
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17 | {
18 | NSURL *jsCodeLocation;
19 |
20 | /**
21 | * Loading JavaScript code - uncomment the one you want.
22 | *
23 | * OPTION 1
24 | * Load from development server. Start the server from the repository root:
25 | *
26 | * $ npm start
27 | *
28 | * To run on device, change `localhost` to the IP address of your computer
29 | * (you can get this by typing `ifconfig` into the terminal and selecting the
30 | * `inet` value under `en0:`) and make sure your computer and iOS device are
31 | * on the same Wi-Fi network.
32 | */
33 |
34 | jsCodeLocation = [NSURL URLWithString:@"http://192.168.0.151:8081/index.ios.bundle?platform=ios&dev=true"];
35 |
36 | /**
37 | * OPTION 2
38 | * Load from pre-bundled file on disk. The static bundle is automatically
39 | * generated by the "Bundle React Native code and images" build step when
40 | * running the project on an actual device or running the project on the
41 | * simulator in the "Release" build configuration.
42 | */
43 |
44 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
45 |
46 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
47 | moduleName:@"vlcplayer"
48 | initialProperties:nil
49 | launchOptions:launchOptions];
50 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
51 |
52 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
53 | UIViewController *rootViewController = [UIViewController new];
54 | rootViewController.view = rootView;
55 | self.window.rootViewController = rootViewController;
56 | [self.window makeKeyAndVisible];
57 | return YES;
58 | }
59 |
60 | @end
61 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 |
30 | NSLocationWhenInUseUsageDescription
31 |
32 | UIAppFonts
33 |
34 | Entypo.ttf
35 | EvilIcons.ttf
36 | FontAwesome.ttf
37 | Foundation.ttf
38 | Ionicons.ttf
39 | MaterialIcons.ttf
40 | Octicons.ttf
41 | Zocial.ttf
42 |
43 | UILaunchStoryboardName
44 | LaunchScreen
45 | UIRequiredDeviceCapabilities
46 |
47 | armv7
48 |
49 | UISupportedInterfaceOrientations
50 |
51 | UIInterfaceOrientationPortrait
52 | UIInterfaceOrientationLandscapeLeft
53 | UIInterfaceOrientationLandscapeRight
54 |
55 | UIViewControllerBasedStatusBarAppearance
56 |
57 |
58 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayer/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayerTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/ios/vlcplayerTests/vlcplayerTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import "RCTLog.h"
14 | #import "RCTRootView.h"
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface vlcplayerTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation vlcplayerTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/Examples/vlcplayer/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vlcplayer",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start"
7 | },
8 | "dependencies": {
9 | "react": "^15.1.0",
10 | "react-native": "^0.27.1",
11 | "react-native-fs": "^1.5.1",
12 | "react-native-loader": "^1.1.0",
13 | "react-native-orientation": "^1.16.0",
14 | "react-native-progress": "^3.0.0",
15 | "react-native-slider": "^0.8.0",
16 | "react-native-vector-icons": "^2.0.3",
17 | "react-native-vlcplayer": "../../",
18 | "undefined": "^0.1.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Brent Vatne, Baris Sencan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-native-vlcplayer
2 |
3 | A `` component for react-native
4 | 此项目 参考react-native-video,但是有很多mp4 ios的硬解码无法播放,所以诞生了这个项目,这是一个足够简单的封装,全功能播放器的控制条留给自己去实现,同时可以参考[移动播放器][2]的例子。
5 |
6 | VLCPlayer 支持各种格式(mp4,m3u8,flv,mov,rtsp,rtmp,etc.),具体参看[vlc wiki][3]
7 |
8 | 
9 | 
10 |
11 | ### Add it to your project
12 |
13 | Run `npm install react-native-vlcplayer --save`
14 |
15 | #### iOS
16 |
17 | - Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-vlcplayer`
18 |
19 | - 安装`MobileVLCKit.framework`,在[nightlies.videolan.org/build/ios/](nightlies.videolan.org/build/ios/) 下载最新版,解压后在你的工程里面引入`MobileVLCKit.framework`,并且添加 framework search path
20 |
21 |
22 |
23 | ## Usage
24 |
25 |
26 | 这是一个极其简单的VLC播放器,默认是不带控制条和进度条,但是完全可以通过回调实现自己需要的样式的播放器,参看例子[Examples vlcplayer][2],包括一个简单播放器和一个全功能播放器。
27 |
28 | ```
29 |
41 |
42 | ```
43 | //source.uri,可以是vlc支持的串流,或者普通的url,source.initOptions VLC支持的初始化选项 ,See [vlc 命令行参数][1]
44 |
45 | ## FullScreen ##
46 | 需要用到 `npm install react-native-orientation --save` ,工程配置参看[https://github.com/yamill/react-native-orientation](https://github.com/yamill/react-native-orientation)
47 | 具体使用方法,参看`vlcplayer/Video.js`
48 |
49 | ## Static Methods
50 |
51 | `seek(seconds)`
52 |
53 | ```
54 | this.refs['vlcplayer'].seek(0.333); //单位是 0~1 的百分比
55 | ```
56 |
57 | `snapshot(path)`
58 |
59 | ```
60 | this.refs['vlcplayer'].snapshot(path); //保存截图
61 | ```
62 |
63 | ## Examples
64 |
65 | - 进入 [移动播放器][2]
66 | - `npm install`
67 | - `rnpm link`
68 | - 同时需要安装`ART`
69 | 参考[https://github.com/oblador/react-native-vector-icons][4]
70 |
71 | 可以根据自己的情况使用下面的例子,自己DIY播放器
72 | - `` 一个简单的播放器
73 | - `` 一个全功能的播放器
74 |
75 | ```
76 | import React, { Component } from 'react';
77 | import {
78 | AppRegistry,
79 | View,
80 | Text
81 | } from 'react-native';
82 | import SimpleVideo from './SimpleVideo.js';
83 | import Video from './Video.js';
84 |
85 |
86 |
87 | class vlcplayer extends Component {
88 |
89 | render() {
90 | const uri = 'http://cdn.goluk.cn/video/t1_2.mp4';
91 | return (
92 |
93 |
94 | A Simple Player
95 |
96 |
97 | A full-featured player
98 |
99 | );
100 | }
101 | }
102 |
103 | AppRegistry.registerComponent('vlcplayer', () => vlcplayer);
104 |
105 | ```
106 |
107 |
108 | ## TODOS
109 |
110 | - [ ] Add support for Android
111 | - [x] Add support for snapshot
112 | - [ ] Add support for record
113 | - [x] Add support for A full-featured player
114 |
115 |
116 | ## 加入ReactNative讨论组
117 |
118 | ###`QQ群:316434159` ###
119 | ![扫描加入][5]
120 |
121 | [1]:https://wiki.videolan.org/VLC_command-line_help/
122 | [2]:https://github.com/xiongchuan86/react-native-vlcplayer/tree/master/Examples/vlcplayer
123 | [3]:https://wiki.videolan.org/Documentation:Documentation/
124 | [4]:https://github.com/oblador/react-native-vector-icons
125 | [5]:ReactNative_qq_group.png
126 |
127 | ---
128 |
129 | **MIT Licensed**
130 |
--------------------------------------------------------------------------------
/ReactNative_qq_group.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiongchuan86/react-native-vlcplayer/631d0f7aa63fc7f262f1073d64d1b50363a754db/ReactNative_qq_group.png
--------------------------------------------------------------------------------
/VLCPlayer.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactNative from 'react-native';
3 |
4 | const {
5 | Component,
6 | PropTypes,
7 | } = React;
8 |
9 | const {
10 | StyleSheet,
11 | requireNativeComponent,
12 | NativeModules,
13 | View,
14 | } = ReactNative;
15 |
16 | export default class VLCPlayer extends Component {
17 |
18 | constructor(props, context) {
19 | super(props, context);
20 | this.seek = this.seek.bind(this);
21 | this.snapshot = this.snapshot.bind(this);
22 | this._assignRoot = this._assignRoot.bind(this);
23 | this._onError = this._onError.bind(this);
24 | this._onProgress = this._onProgress.bind(this);
25 | this._onEnded = this._onEnded.bind(this);
26 | this._onPlaying = this._onPlaying.bind(this);
27 | this._onStopped = this._onStopped.bind(this);
28 | this._onPaused = this._onPaused.bind(this);
29 | this._onBuffering = this._onBuffering.bind(this);
30 | }
31 |
32 | setNativeProps(nativeProps) {
33 | this._root.setNativeProps(nativeProps);
34 | }
35 |
36 | seek(pos) {
37 | this.setNativeProps({ seek: pos});
38 | }
39 |
40 | snapshot(path) {
41 | this.setNativeProps({ snapshotPath: path});
42 | }
43 |
44 | _assignRoot(component) {
45 | this._root = component;
46 | }
47 |
48 | _onBuffering(event) {
49 | if (this.props.onBuffering) {
50 | this.props.onBuffering(event.nativeEvent);
51 | }
52 | }
53 |
54 | _onError(event) {
55 | if (this.props.onError) {
56 | this.props.onError(event.nativeEvent);
57 | }
58 | }
59 |
60 | _onProgress(event) {
61 | if (this.props.onProgress) {
62 | this.props.onProgress(event.nativeEvent);
63 | }
64 | }
65 |
66 | _onEnded(event) {
67 | if (this.props.onEnded) {
68 | this.props.onEnd(event.nativeEvent);
69 | }
70 | }
71 |
72 | _onStopped(event) {
73 | this.setNativeProps({ paused: true });
74 | if (this.props.onStopped) {
75 | this.props.onStopped(event.nativeEvent);
76 | }
77 | }
78 |
79 | _onPaused(event) {
80 | if (this.props.onPaused) {
81 | this.props.onPaused(event.nativeEvent);
82 | }
83 | }
84 |
85 | _onPlaying(event) {
86 | if (this.props.onPlaying) {
87 | this.props.onPlaying(event.nativeEvent);
88 | }
89 | }
90 |
91 | render() {
92 | const {
93 | source
94 | } = this.props;
95 | source.initOptions = source.initOptions || [];
96 | //repeat the input media
97 | source.initOptions.push('--input-repeat=1000');
98 | const nativeProps = Object.assign({}, this.props);
99 | Object.assign(nativeProps, {
100 | style: [styles.base, nativeProps.style],
101 | source: source,
102 | onVideoError: this._onError,
103 | onVideoProgress: this._onProgress,
104 | onVideoEnded: this._onEnded,
105 | onVideoPlaying:this._onPlaying,
106 | onVideoPaused:this._onPaused,
107 | onVideoStopped:this._onStopped,
108 | onVideoBuffering:this._onBuffering,
109 | });
110 |
111 | return (
112 |
113 | );
114 | }
115 |
116 |
117 | }
118 |
119 | VLCPlayer.propTypes = {
120 | /* Native only */
121 | rate: PropTypes.number,
122 | seek:PropTypes.number,
123 | snapshotPath: PropTypes.string,
124 | paused: PropTypes.bool,
125 |
126 | /* Wrapper component */
127 | source: PropTypes.object,
128 |
129 | onError: PropTypes.func,
130 | onProgress: PropTypes.func,
131 | onEnded: PropTypes.func,
132 | onStopped: PropTypes.func,
133 | onPlaying: PropTypes.func,
134 | onPaused: PropTypes.func,
135 | onProgress: PropTypes.func,
136 |
137 | /* Required by react-native */
138 | scaleX: React.PropTypes.number,
139 | scaleY: React.PropTypes.number,
140 | translateX: React.PropTypes.number,
141 | translateY: React.PropTypes.number,
142 | rotation: React.PropTypes.number,
143 | ...View.propTypes,
144 | };
145 |
146 | const styles = StyleSheet.create({
147 | base: {
148 | overflow: 'hidden',
149 | }
150 | });
151 | const RCTVLCPlayer = requireNativeComponent('RCTVLCPlayer', VLCPlayer);
152 |
--------------------------------------------------------------------------------
/ios/RCTVLCPlayer.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0C1A0ECA1D07E18700441684 /* RCTVLCPlayerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C1A0EC81D07E18700441684 /* RCTVLCPlayerManager.m */; };
11 | 0CA30C481D07E0DB003B09F9 /* RCTVLCPlayer.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0CA30C471D07E0DB003B09F9 /* RCTVLCPlayer.h */; };
12 | 0CA30C4A1D07E0DB003B09F9 /* RCTVLCPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 0CA30C491D07E0DB003B09F9 /* RCTVLCPlayer.m */; };
13 | /* End PBXBuildFile section */
14 |
15 | /* Begin PBXCopyFilesBuildPhase section */
16 | 0CA30C421D07E0DB003B09F9 /* CopyFiles */ = {
17 | isa = PBXCopyFilesBuildPhase;
18 | buildActionMask = 2147483647;
19 | dstPath = "include/$(PRODUCT_NAME)";
20 | dstSubfolderSpec = 16;
21 | files = (
22 | 0CA30C481D07E0DB003B09F9 /* RCTVLCPlayer.h in CopyFiles */,
23 | );
24 | runOnlyForDeploymentPostprocessing = 0;
25 | };
26 | /* End PBXCopyFilesBuildPhase section */
27 |
28 | /* Begin PBXFileReference section */
29 | 0C1A0EC81D07E18700441684 /* RCTVLCPlayerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTVLCPlayerManager.m; sourceTree = ""; };
30 | 0C1A0EC91D07E18700441684 /* RCTVLCPlayerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTVLCPlayerManager.h; sourceTree = ""; };
31 | 0CA30C441D07E0DB003B09F9 /* libRCTVLCPlayer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTVLCPlayer.a; sourceTree = BUILT_PRODUCTS_DIR; };
32 | 0CA30C471D07E0DB003B09F9 /* RCTVLCPlayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTVLCPlayer.h; sourceTree = ""; };
33 | 0CA30C491D07E0DB003B09F9 /* RCTVLCPlayer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTVLCPlayer.m; sourceTree = ""; };
34 | /* End PBXFileReference section */
35 |
36 | /* Begin PBXFrameworksBuildPhase section */
37 | 0CA30C411D07E0DB003B09F9 /* Frameworks */ = {
38 | isa = PBXFrameworksBuildPhase;
39 | buildActionMask = 2147483647;
40 | files = (
41 | );
42 | runOnlyForDeploymentPostprocessing = 0;
43 | };
44 | /* End PBXFrameworksBuildPhase section */
45 |
46 | /* Begin PBXGroup section */
47 | 0CA30C3B1D07E0DB003B09F9 = {
48 | isa = PBXGroup;
49 | children = (
50 | 0CA30C461D07E0DB003B09F9 /* RCTVLCPlayer */,
51 | 0CA30C451D07E0DB003B09F9 /* Products */,
52 | );
53 | sourceTree = "";
54 | };
55 | 0CA30C451D07E0DB003B09F9 /* Products */ = {
56 | isa = PBXGroup;
57 | children = (
58 | 0CA30C441D07E0DB003B09F9 /* libRCTVLCPlayer.a */,
59 | );
60 | name = Products;
61 | sourceTree = "";
62 | };
63 | 0CA30C461D07E0DB003B09F9 /* RCTVLCPlayer */ = {
64 | isa = PBXGroup;
65 | children = (
66 | 0C1A0EC81D07E18700441684 /* RCTVLCPlayerManager.m */,
67 | 0C1A0EC91D07E18700441684 /* RCTVLCPlayerManager.h */,
68 | 0CA30C471D07E0DB003B09F9 /* RCTVLCPlayer.h */,
69 | 0CA30C491D07E0DB003B09F9 /* RCTVLCPlayer.m */,
70 | );
71 | path = RCTVLCPlayer;
72 | sourceTree = "";
73 | };
74 | /* End PBXGroup section */
75 |
76 | /* Begin PBXNativeTarget section */
77 | 0CA30C431D07E0DB003B09F9 /* RCTVLCPlayer */ = {
78 | isa = PBXNativeTarget;
79 | buildConfigurationList = 0CA30C4D1D07E0DB003B09F9 /* Build configuration list for PBXNativeTarget "RCTVLCPlayer" */;
80 | buildPhases = (
81 | 0CA30C401D07E0DB003B09F9 /* Sources */,
82 | 0CA30C411D07E0DB003B09F9 /* Frameworks */,
83 | 0CA30C421D07E0DB003B09F9 /* CopyFiles */,
84 | );
85 | buildRules = (
86 | );
87 | dependencies = (
88 | );
89 | name = RCTVLCPlayer;
90 | productName = RCTVLCPlayer;
91 | productReference = 0CA30C441D07E0DB003B09F9 /* libRCTVLCPlayer.a */;
92 | productType = "com.apple.product-type.library.static";
93 | };
94 | /* End PBXNativeTarget section */
95 |
96 | /* Begin PBXProject section */
97 | 0CA30C3C1D07E0DB003B09F9 /* Project object */ = {
98 | isa = PBXProject;
99 | attributes = {
100 | LastUpgradeCheck = 0730;
101 | ORGANIZATIONNAME = "熊川";
102 | TargetAttributes = {
103 | 0CA30C431D07E0DB003B09F9 = {
104 | CreatedOnToolsVersion = 7.3.1;
105 | };
106 | };
107 | };
108 | buildConfigurationList = 0CA30C3F1D07E0DB003B09F9 /* Build configuration list for PBXProject "RCTVLCPlayer" */;
109 | compatibilityVersion = "Xcode 3.2";
110 | developmentRegion = English;
111 | hasScannedForEncodings = 0;
112 | knownRegions = (
113 | en,
114 | );
115 | mainGroup = 0CA30C3B1D07E0DB003B09F9;
116 | productRefGroup = 0CA30C451D07E0DB003B09F9 /* Products */;
117 | projectDirPath = "";
118 | projectRoot = "";
119 | targets = (
120 | 0CA30C431D07E0DB003B09F9 /* RCTVLCPlayer */,
121 | );
122 | };
123 | /* End PBXProject section */
124 |
125 | /* Begin PBXSourcesBuildPhase section */
126 | 0CA30C401D07E0DB003B09F9 /* Sources */ = {
127 | isa = PBXSourcesBuildPhase;
128 | buildActionMask = 2147483647;
129 | files = (
130 | 0C1A0ECA1D07E18700441684 /* RCTVLCPlayerManager.m in Sources */,
131 | 0CA30C4A1D07E0DB003B09F9 /* RCTVLCPlayer.m in Sources */,
132 | );
133 | runOnlyForDeploymentPostprocessing = 0;
134 | };
135 | /* End PBXSourcesBuildPhase section */
136 |
137 | /* Begin XCBuildConfiguration section */
138 | 0CA30C4B1D07E0DB003B09F9 /* Debug */ = {
139 | isa = XCBuildConfiguration;
140 | buildSettings = {
141 | ALWAYS_SEARCH_USER_PATHS = NO;
142 | CLANG_ANALYZER_NONNULL = YES;
143 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
144 | CLANG_CXX_LIBRARY = "libc++";
145 | CLANG_ENABLE_MODULES = YES;
146 | CLANG_ENABLE_OBJC_ARC = YES;
147 | CLANG_WARN_BOOL_CONVERSION = YES;
148 | CLANG_WARN_CONSTANT_CONVERSION = YES;
149 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
150 | CLANG_WARN_EMPTY_BODY = YES;
151 | CLANG_WARN_ENUM_CONVERSION = YES;
152 | CLANG_WARN_INT_CONVERSION = YES;
153 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
154 | CLANG_WARN_UNREACHABLE_CODE = YES;
155 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
156 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
157 | COPY_PHASE_STRIP = NO;
158 | DEBUG_INFORMATION_FORMAT = dwarf;
159 | ENABLE_STRICT_OBJC_MSGSEND = YES;
160 | ENABLE_TESTABILITY = YES;
161 | GCC_C_LANGUAGE_STANDARD = gnu99;
162 | GCC_DYNAMIC_NO_PIC = NO;
163 | GCC_NO_COMMON_BLOCKS = YES;
164 | GCC_OPTIMIZATION_LEVEL = 0;
165 | GCC_PREPROCESSOR_DEFINITIONS = (
166 | "DEBUG=1",
167 | "$(inherited)",
168 | );
169 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
170 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
171 | GCC_WARN_UNDECLARED_SELECTOR = YES;
172 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
173 | GCC_WARN_UNUSED_FUNCTION = YES;
174 | GCC_WARN_UNUSED_VARIABLE = YES;
175 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
176 | MTL_ENABLE_DEBUG_INFO = YES;
177 | ONLY_ACTIVE_ARCH = YES;
178 | SDKROOT = iphoneos;
179 | VALID_ARCHS = "arm64 armv7 armv7s x86_64";
180 | };
181 | name = Debug;
182 | };
183 | 0CA30C4C1D07E0DB003B09F9 /* Release */ = {
184 | isa = XCBuildConfiguration;
185 | buildSettings = {
186 | ALWAYS_SEARCH_USER_PATHS = NO;
187 | CLANG_ANALYZER_NONNULL = YES;
188 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
189 | CLANG_CXX_LIBRARY = "libc++";
190 | CLANG_ENABLE_MODULES = YES;
191 | CLANG_ENABLE_OBJC_ARC = YES;
192 | CLANG_WARN_BOOL_CONVERSION = YES;
193 | CLANG_WARN_CONSTANT_CONVERSION = YES;
194 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
195 | CLANG_WARN_EMPTY_BODY = YES;
196 | CLANG_WARN_ENUM_CONVERSION = YES;
197 | CLANG_WARN_INT_CONVERSION = YES;
198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
199 | CLANG_WARN_UNREACHABLE_CODE = YES;
200 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
201 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
202 | COPY_PHASE_STRIP = NO;
203 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
204 | ENABLE_NS_ASSERTIONS = NO;
205 | ENABLE_STRICT_OBJC_MSGSEND = YES;
206 | GCC_C_LANGUAGE_STANDARD = gnu99;
207 | GCC_NO_COMMON_BLOCKS = YES;
208 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
209 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
210 | GCC_WARN_UNDECLARED_SELECTOR = YES;
211 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
212 | GCC_WARN_UNUSED_FUNCTION = YES;
213 | GCC_WARN_UNUSED_VARIABLE = YES;
214 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
215 | MTL_ENABLE_DEBUG_INFO = NO;
216 | SDKROOT = iphoneos;
217 | VALIDATE_PRODUCT = YES;
218 | VALID_ARCHS = "arm64 armv7 armv7s x86_64";
219 | };
220 | name = Release;
221 | };
222 | 0CA30C4E1D07E0DB003B09F9 /* Debug */ = {
223 | isa = XCBuildConfiguration;
224 | buildSettings = {
225 | FRAMEWORK_SEARCH_PATHS = "/Users/xiongchuan/Downloads/vlc/MobileVLCKit-binary";
226 | HEADER_SEARCH_PATHS = (
227 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
228 | "$(SRCROOT)/../../react-native/React/**",
229 | "$(SRCROOT)/node_modules/react-native/React/**",
230 | "$(inherited)",
231 | );
232 | ONLY_ACTIVE_ARCH = YES;
233 | OTHER_LDFLAGS = "-ObjC";
234 | PRODUCT_NAME = "$(TARGET_NAME)";
235 | SKIP_INSTALL = YES;
236 | VALID_ARCHS = "arm64 armv7 armv7s x84_64";
237 | };
238 | name = Debug;
239 | };
240 | 0CA30C4F1D07E0DB003B09F9 /* Release */ = {
241 | isa = XCBuildConfiguration;
242 | buildSettings = {
243 | FRAMEWORK_SEARCH_PATHS = "/Users/xiongchuan/Downloads/vlc/MobileVLCKit-binary";
244 | HEADER_SEARCH_PATHS = (
245 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
246 | "$(SRCROOT)/../../react-native/React/**",
247 | "$(SRCROOT)/node_modules/react-native/React/**",
248 | "$(inherited)",
249 | );
250 | ONLY_ACTIVE_ARCH = YES;
251 | OTHER_LDFLAGS = "-ObjC";
252 | PRODUCT_NAME = "$(TARGET_NAME)";
253 | SKIP_INSTALL = YES;
254 | VALID_ARCHS = "arm64 armv7 armv7s x84_64";
255 | };
256 | name = Release;
257 | };
258 | /* End XCBuildConfiguration section */
259 |
260 | /* Begin XCConfigurationList section */
261 | 0CA30C3F1D07E0DB003B09F9 /* Build configuration list for PBXProject "RCTVLCPlayer" */ = {
262 | isa = XCConfigurationList;
263 | buildConfigurations = (
264 | 0CA30C4B1D07E0DB003B09F9 /* Debug */,
265 | 0CA30C4C1D07E0DB003B09F9 /* Release */,
266 | );
267 | defaultConfigurationIsVisible = 0;
268 | defaultConfigurationName = Release;
269 | };
270 | 0CA30C4D1D07E0DB003B09F9 /* Build configuration list for PBXNativeTarget "RCTVLCPlayer" */ = {
271 | isa = XCConfigurationList;
272 | buildConfigurations = (
273 | 0CA30C4E1D07E0DB003B09F9 /* Debug */,
274 | 0CA30C4F1D07E0DB003B09F9 /* Release */,
275 | );
276 | defaultConfigurationIsVisible = 0;
277 | defaultConfigurationName = Release;
278 | };
279 | /* End XCConfigurationList section */
280 | };
281 | rootObject = 0CA30C3C1D07E0DB003B09F9 /* Project object */;
282 | }
283 |
--------------------------------------------------------------------------------
/ios/RCTVLCPlayer/RCTVLCPlayer.h:
--------------------------------------------------------------------------------
1 | #import "RCTView.h"
2 |
3 | @class RCTEventDispatcher;
4 |
5 | @interface RCTVLCPlayer : UIView
6 |
7 | - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/ios/RCTVLCPlayer/RCTVLCPlayer.m:
--------------------------------------------------------------------------------
1 | #import "RCTConvert.h"
2 | #import "RCTVLCPlayer.h"
3 | #import "RCTBridgeModule.h"
4 | #import "RCTEventDispatcher.h"
5 | #import "UIView+React.h"
6 | #import
7 | static NSString *const statusKeyPath = @"status";
8 | static NSString *const playbackLikelyToKeepUpKeyPath = @"playbackLikelyToKeepUp";
9 | static NSString *const playbackBufferEmptyKeyPath = @"playbackBufferEmpty";
10 | static NSString *const readyForDisplayKeyPath = @"readyForDisplay";
11 | static NSString *const playbackRate = @"rate";
12 |
13 | @implementation RCTVLCPlayer
14 | {
15 |
16 | /* Required to publish events */
17 | RCTEventDispatcher *_eventDispatcher;
18 | VLCMediaPlayer *_player;
19 |
20 | BOOL _paused;
21 | BOOL _started;
22 |
23 | }
24 |
25 | - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher
26 | {
27 | if ((self = [super init])) {
28 | _eventDispatcher = eventDispatcher;
29 |
30 | [[NSNotificationCenter defaultCenter] addObserver:self
31 | selector:@selector(applicationWillResignActive:)
32 | name:UIApplicationWillResignActiveNotification
33 | object:nil];
34 |
35 | [[NSNotificationCenter defaultCenter] addObserver:self
36 | selector:@selector(applicationWillEnterForeground:)
37 | name:UIApplicationWillEnterForegroundNotification
38 | object:nil];
39 |
40 | }
41 |
42 | return self;
43 | }
44 |
45 | - (void)applicationWillResignActive:(NSNotification *)notification
46 | {
47 | if (!_paused) {
48 | [self setPaused:_paused];
49 | }
50 | }
51 |
52 | - (void)applicationWillEnterForeground:(NSNotification *)notification
53 | {
54 | [self applyModifiers];
55 | }
56 |
57 | - (void)applyModifiers
58 | {
59 | if(!_paused)
60 | [self play];
61 | }
62 |
63 | - (void)setPaused:(BOOL)paused
64 | {
65 | //NSLog(@">>>>paused %i",paused);
66 | if(_player){
67 | if(!_started)
68 | [self play];
69 | else {
70 | [_player pause];
71 | _paused = paused;
72 | }
73 | }
74 | }
75 |
76 | -(void)play
77 | {
78 | if(_player){
79 | [_player play];
80 | _paused = NO;
81 | _started = YES;
82 | }
83 | }
84 |
85 | -(void)setSource:(NSDictionary *)source
86 | {
87 | if(_player){
88 | [self _release];
89 | }
90 | NSArray* options = [source objectForKey:@"initOptions"];
91 | NSString* uri = [source objectForKey:@"uri"];
92 | BOOL autoplay = [RCTConvert BOOL:[source objectForKey:@"autoplay"]];
93 | NSURL* _uri = [NSURL URLWithString:uri];
94 |
95 | //init player && play
96 | _player = [[VLCMediaPlayer alloc] initWithOptions:options];
97 | [_player setDrawable:self];
98 | _player.delegate = self;
99 |
100 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mediaPlayerStateChanged:) name:VLCMediaPlayerStateChanged object:nil];
101 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mediaPlayerTimeChanged:) name:VLCMediaPlayerTimeChanged object:nil];
102 | _player.media = [VLCMedia mediaWithURL:_uri];
103 | if(autoplay)
104 | [self play];
105 | }
106 |
107 | - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification
108 | {
109 | [self updateVideoProgress];
110 | }
111 |
112 | - (void)mediaPlayerStateChanged:(NSNotification *)aNotification
113 | {
114 | VLCMediaPlayerState state = _player.state;
115 | switch (state) {
116 | case VLCMediaPlayerStatePaused:
117 | _paused = YES;
118 | //NSLog(@"VLCMediaPlayerStatePaused %i",VLCMediaPlayerStatePaused);
119 | [_eventDispatcher sendInputEventWithName:@"onVideoPaused"
120 | body:@{
121 | @"target": self.reactTag
122 | }];
123 | break;
124 | case VLCMediaPlayerStateStopped:
125 | //NSLog(@"VLCMediaPlayerStateStopped %i",VLCMediaPlayerStateStopped);
126 | [_eventDispatcher sendInputEventWithName:@"onVideoStopped"
127 | body:@{
128 | @"target": self.reactTag
129 | }];
130 | break;
131 | case VLCMediaPlayerStateBuffering:
132 | //NSLog(@"VLCMediaPlayerStateBuffering %i",VLCMediaPlayerStateBuffering);
133 | [_eventDispatcher sendInputEventWithName:@"onVideoBuffering"
134 | body:@{
135 | @"target": self.reactTag
136 | }];
137 | break;
138 | case VLCMediaPlayerStatePlaying:
139 | _paused = NO;
140 | //NSLog(@"VLCMediaPlayerStatePlaying %i",VLCMediaPlayerStatePlaying);
141 | [_eventDispatcher sendInputEventWithName:@"onVideoPlaying"
142 | body:@{
143 | @"target": self.reactTag,
144 | @"seekable": [NSNumber numberWithBool:[_player isSeekable]],
145 | @"duration":[NSNumber numberWithInt:[_player.media.length intValue]]
146 | }];
147 | break;
148 | case VLCMediaPlayerStateEnded:
149 | //NSLog(@"VLCMediaPlayerStateEnded %i",VLCMediaPlayerStateEnded);
150 | [_eventDispatcher sendInputEventWithName:@"onVideoEnded"
151 | body:@{
152 | @"target": self.reactTag
153 | }];
154 | break;
155 | case VLCMediaPlayerStateError:
156 | //NSLog(@"VLCMediaPlayerStateError %i",VLCMediaPlayerStateError);
157 | [_eventDispatcher sendInputEventWithName:@"onVideoError"
158 | body:@{
159 | @"target": self.reactTag
160 | }];
161 | [self _release];
162 | break;
163 | default:
164 | //NSLog(@"state %i",state);
165 | break;
166 | }
167 | }
168 |
169 | -(void)updateVideoProgress
170 | {
171 |
172 | int currentTime = [[_player time] intValue];
173 | int remainingTime = [[_player remainingTime] intValue];
174 | int duration = [_player.media.length intValue];
175 |
176 | if( currentTime >= 0 && currentTime < duration) {
177 | [_eventDispatcher sendInputEventWithName:@"onVideoProgress"
178 | body:@{
179 | @"target": self.reactTag,
180 | @"currentTime": [NSNumber numberWithInt:currentTime],
181 | @"remainingTime": [NSNumber numberWithInt:remainingTime],
182 | @"duration":[NSNumber numberWithInt:duration],
183 | @"position":[NSNumber numberWithFloat:_player.position]
184 | }];
185 | }
186 | }
187 |
188 | - (void)jumpBackward:(int)interval
189 | {
190 | if(interval>=0 && interval <= [_player.media.length intValue])
191 | [_player jumpBackward:interval];
192 | }
193 |
194 | - (void)jumpForward:(int)interval
195 | {
196 | if(interval>=0 && interval <= [_player.media.length intValue])
197 | [_player jumpForward:interval];
198 | }
199 |
200 | -(void)setSeek:(float)pos
201 | {
202 | if([_player isSeekable]){
203 | if(pos>=0 && pos <= 1){
204 | [_player setPosition:pos];
205 | }
206 | }
207 | }
208 |
209 | -(void)setSnapshotPath:(NSString*)path
210 | {
211 | if(_player)
212 | [_player saveVideoSnapshotAt:path withWidth:0 andHeight:0];
213 | }
214 |
215 | -(void)setRate:(float)rate
216 | {
217 | [_player setRate:rate];
218 | }
219 |
220 | - (void)_release
221 | {
222 | [_player pause];
223 | [_player stop];
224 | _player = nil;
225 | _eventDispatcher = nil;
226 | [[NSNotificationCenter defaultCenter] removeObserver:self];
227 | }
228 |
229 | #pragma mark - Lifecycle
230 | - (void)removeFromSuperview
231 | {
232 | [self _release];
233 | [super removeFromSuperview];
234 | }
235 |
236 | @end
237 |
--------------------------------------------------------------------------------
/ios/RCTVLCPlayer/RCTVLCPlayerManager.h:
--------------------------------------------------------------------------------
1 | #import "RCTViewManager.h"
2 |
3 | @interface RCTVLCPlayerManager : RCTViewManager
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/ios/RCTVLCPlayer/RCTVLCPlayerManager.m:
--------------------------------------------------------------------------------
1 | #import "RCTVLCPlayerManager.h"
2 | #import "RCTVLCPlayer.h"
3 | #import "RCTBridge.h"
4 |
5 | @implementation RCTVLCPlayerManager
6 |
7 | RCT_EXPORT_MODULE();
8 |
9 | @synthesize bridge = _bridge;
10 |
11 | - (UIView *)view
12 | {
13 | return [[RCTVLCPlayer alloc] initWithEventDispatcher:self.bridge.eventDispatcher];
14 | }
15 |
16 | /* Should support: onLoadStart, onLoad, and onError to stay consistent with Image */
17 |
18 | - (NSArray *)customDirectEventTypes
19 | {
20 | return @[
21 | @"onVideoProgress",
22 | @"onVideoPaused",
23 | @"onVideoStopped",
24 | @"onVideoBuffering",
25 | @"onVideoPlaying",
26 | @"onVideoEnded",
27 | @"onVideoError"
28 | ];
29 | }
30 |
31 | - (dispatch_queue_t)methodQueue
32 | {
33 | return dispatch_get_main_queue();
34 | }
35 |
36 | RCT_EXPORT_VIEW_PROPERTY(source, NSDictionary);
37 | RCT_EXPORT_VIEW_PROPERTY(paused, BOOL);
38 | RCT_EXPORT_VIEW_PROPERTY(seek, float);
39 | RCT_EXPORT_VIEW_PROPERTY(rate, float);
40 | RCT_EXPORT_VIEW_PROPERTY(snapshotPath, NSString);
41 |
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-vlcplayer",
3 | "version": "0.1.2",
4 | "description": "A element for react-native,For Mobile",
5 | "main": "VLCPlayer.js",
6 | "license": "MIT",
7 | "keywords": [
8 | "vlcplayer",
9 | "video",
10 | "player"
11 | ],
12 | "files": [
13 | "ios/RCTVLCPlayer.xcodeproj",
14 | "ios/RCTVLCPlayer/RCTVLCPlayer.h",
15 | "ios/RCTVLCPlayer/RCTVLCPlayer.m",
16 | "ios/RCTVLCPlayer/RCTVLCPlayerManager.h",
17 | "ios/RCTVLCPlayer/RCTVLCPlayerManager.m",
18 | "VLCPlayer.js"
19 | ],
20 | "author": {
21 | "name": "xiongchuan",
22 | "email": "xiongchuan86@vip.qq.com"
23 | },
24 | "homepage": "https://github.com/xiongchuan86/react-native-vlcplayer",
25 | "repository": {
26 | "type": "git",
27 | "url": "https://github.com/xiongchuan86/react-native-vlcplayer.git"
28 | },
29 | "devDependencies": {
30 |
31 | },
32 | "dependencies": {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------