Update MainActivity.java

camera2
thegobot 6 years ago committed by GitHub
parent 707985f7d1
commit 9ca202c61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -232,6 +232,15 @@ public class MainActivity extends AppCompatActivity implements RtmpHandler.RtmpL
return super.onOptionsItemSelected(item);
}
@Override
protected void onStart() {
super.onStart();
if(mPublisher.getCamera() == null){
//if the camera was busy and available again
mPublisher.startCamera();
}
}
@Override
protected void onResume() {
super.onResume();

Loading…
Cancel
Save