diff --git a/.gitignore b/.gitignore index 50ca7536..3fd64884 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/**/* RCTVideo.xcodeproj/xcuserdata/**/* RCTVideo.xcodeproj/project.xcworkspace/**/* Examples/VideoPlayer/node_modules/**/* +npm-debug.log diff --git a/Examples/VideoPlayer/VideoPlayer.xcodeproj/project.pbxproj b/Examples/VideoPlayer/VideoPlayer.xcodeproj/project.pbxproj index 131b4cd6..9ae8c575 100644 --- a/Examples/VideoPlayer/VideoPlayer.xcodeproj/project.pbxproj +++ b/Examples/VideoPlayer/VideoPlayer.xcodeproj/project.pbxproj @@ -22,7 +22,7 @@ 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; - BBB2D57B1AD5AC80000BA10D /* libRCTVideo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BBB2D5791AD5ABDE000BA10D /* libRCTVideo.a */; }; + BBA340681ADC2A4400E73E51 /* libRCTVideo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BBA340671ADC2A3400E73E51 /* libRCTVideo.a */; }; BBFFBEC21AD5A1DE004DC971 /* broadchurch.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = BBFFBEC11AD5A1CC004DC971 /* broadchurch.mp4 */; }; /* End PBXBuildFile section */ @@ -90,9 +90,9 @@ remoteGlobalIDString = 58B5119B1A9E6C1200147676; remoteInfo = RCTText; }; - BBB2D5781AD5ABDE000BA10D /* PBXContainerItemProxy */ = { + BBA340661ADC2A3400E73E51 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = BBB2D5741AD5ABDE000BA10D /* RCTVideo.xcodeproj */; + containerPortal = BBA340621ADC2A3400E73E51 /* RCTVideo.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTVideo; @@ -118,7 +118,7 @@ 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iOS/main.m; sourceTree = ""; }; 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; - BBB2D5741AD5ABDE000BA10D /* RCTVideo.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVideo.xcodeproj; path = "node_modules/react-native-video/RCTVideo.xcodeproj"; sourceTree = ""; }; + BBA340621ADC2A3400E73E51 /* RCTVideo.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVideo.xcodeproj; path = "node_modules/react-native-video/RCTVideo.xcodeproj"; sourceTree = ""; }; BBFFBEC11AD5A1CC004DC971 /* broadchurch.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = broadchurch.mp4; sourceTree = ""; }; /* End PBXFileReference section */ @@ -127,7 +127,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - BBB2D57B1AD5AC80000BA10D /* libRCTVideo.a in Frameworks */, + BBA340681ADC2A4400E73E51 /* libRCTVideo.a in Frameworks */, 00481BEA1AC0C89D00671115 /* libicucore.dylib in Frameworks */, 146834051AC3E58100842450 /* libReact.a in Frameworks */, 00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */, @@ -226,7 +226,7 @@ 832341AE1AAA6A7D00B99B32 /* Libraries */ = { isa = PBXGroup; children = ( - BBB2D5741AD5ABDE000BA10D /* RCTVideo.xcodeproj */, + BBA340621ADC2A3400E73E51 /* RCTVideo.xcodeproj */, 146833FF1AC3E56700842450 /* React.xcodeproj */, 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, @@ -268,10 +268,10 @@ name = Products; sourceTree = ""; }; - BBB2D5751AD5ABDE000BA10D /* Products */ = { + BBA340631ADC2A3400E73E51 /* Products */ = { isa = PBXGroup; children = ( - BBB2D5791AD5ABDE000BA10D /* libRCTVideo.a */, + BBA340671ADC2A3400E73E51 /* libRCTVideo.a */, ); name = Products; sourceTree = ""; @@ -346,8 +346,8 @@ ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; }, { - ProductGroup = BBB2D5751AD5ABDE000BA10D /* Products */; - ProjectRef = BBB2D5741AD5ABDE000BA10D /* RCTVideo.xcodeproj */; + ProductGroup = BBA340631ADC2A3400E73E51 /* Products */; + ProjectRef = BBA340621ADC2A3400E73E51 /* RCTVideo.xcodeproj */; }, { ProductGroup = 00481BDC1AC0C7FA00671115 /* Products */; @@ -429,11 +429,11 @@ remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - BBB2D5791AD5ABDE000BA10D /* libRCTVideo.a */ = { + BBA340671ADC2A3400E73E51 /* libRCTVideo.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTVideo.a; - remoteRef = BBB2D5781AD5ABDE000BA10D /* PBXContainerItemProxy */; + remoteRef = BBA340661ADC2A3400E73E51 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ diff --git a/Examples/VideoPlayer/package.json b/Examples/VideoPlayer/package.json index 29851af7..0cf78d99 100644 --- a/Examples/VideoPlayer/package.json +++ b/Examples/VideoPlayer/package.json @@ -7,6 +7,6 @@ }, "dependencies": { "react-native": "0.3.10", - "react-native-video": "^0.2.7" + "react-native-video": "^0.2.8" } } diff --git a/README.md b/README.md index 217ece35..c076af42 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,12 @@ var styles = Stylesheet.create({ }); ``` -Example code [here](https://github.com/brentvatne/react-native-login/blob/master/index.ios.js). +Example code +[here](https://github.com/brentvatne/react-native-login/blob/master/index.ios.js), +or try out the example +[VideoPlayer](https://github.com/brentvatne/react-native-video/tree/master/Examples/VideoPlayer) +app - clone this repo, cd into it, `npm install` open the project in +XCode and build. ## TODOS