[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #29 from infrared5/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
bustardcelly committed Apr 26, 2018
2 parents 55a4c39 + 1263e31 commit 9b4ce8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public void publish (String streamName, R5Stream.RecordType streamType) {
mCamera.getCamera().stopPreview();
}

reorient();
mStream.publish(streamName, streamType);

if (shouldPublishVideo) {
Expand Down Expand Up @@ -480,7 +481,7 @@ protected void applyDeviceRotation () {

mCameraOrientation += degrees;
mCameraOrientation = mCameraOrientation % 360;
mOrigCamOrientation = mCameraOrientation;
mOrigCamOrientation = 270;

}

Expand All @@ -498,7 +499,7 @@ protected void applyInverseDeviceRotation(){

mCameraOrientation += degrees;
mCameraOrientation = mCameraOrientation % 360;
mOrigCamOrientation = mCameraOrientation;
mOrigCamOrientation = 90;

}

Expand Down Expand Up @@ -552,7 +553,7 @@ protected Camera openBackFacingCameraGingerbread() {

protected void onConfigured(String key) {

System.out.println("[R5VideoViewLayout]:: onConfigured()");
Log.d("R5VideoViewLayout", "onConfigured()");
WritableMap map = new WritableNativeMap();
map.putString("key", key);
mEventEmitter.receiveEvent(this.getId(), "onConfigured", map);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand Down Expand Up @@ -84,7 +83,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
3 changes: 2 additions & 1 deletion ios/R5VideoView/R5VideoView/R5VideoView.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ - (void)unsubscribe {
[self.stream stop];
}
else {
self.onUnpublishNotification(@{});
self.onUnsubscribeNotification(@{});
[self tearDown];
}
});
Expand Down Expand Up @@ -199,6 +199,7 @@ - (void)publish:(NSString *)streamName withMode:(int)publishMode {
}

[self.stream publish:streamName type:publishMode];
[self onDeviceOrientation:NULL];
[self.stream updateStreamMeta];

});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-red5pro",
"version": "1.5.0",
"version": "1.6.0",
"description": "React Native Red5 Pro Publisher/Subscriber",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9b4ce8a

Please sign in to comment.