Skip to content
Snippets Groups Projects
Commit 3e0874b0 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 a50396c5
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
@@ -243,6 +243,7 @@ public class MainActivity extends AppCompatActivity implements RtmpHandler.RtmpL
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