Add stop recording method into stop operation on UI

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 9 years ago
parent b1f35ffe89
commit a40d818294

@ -84,6 +84,7 @@ public class MainActivity extends Activity {
btnSwitchEncoder.setEnabled(false);
} else if (btnPublish.getText().toString().contentEquals("stop")) {
mPublisher.stopPublish();
mPublisher.stopRecord();
btnPublish.setText("publish");
btnRecord.setText("record");

Loading…
Cancel
Save