Skip to content
Snippets Groups Projects
Commit f70364fc authored by Leo Ma's avatar Leo Ma
Browse files

Fix camera freezing on orientation change


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 2064b539
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -25,6 +25,6 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:appcompat-v7:25.1.0'
compile project(path: ':library')
}
Loading
Loading
@@ -192,6 +192,7 @@ public class MainActivity extends Activity implements RtmpHandler.RtmpListener,
btnRecord.setText("record");
mPublisher.setScreenOrientation(newConfig.orientation);
if (btnPublish.getText().toString().contentEquals("stop")) {
mPublisher.startCamera();
mPublisher.startEncode();
}
}
Loading
Loading
Loading
Loading
@@ -28,6 +28,6 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment