rotate the video properly too

This commit is contained in:
tibbi
2016-06-16 18:13:09 +02:00
parent d5d98fcf31
commit b97ca61f6c
2 changed files with 45 additions and 23 deletions

View File

@ -170,7 +170,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
private void handleShutter() {
if (isInPhotoMode) {
preview.takePicture(orientation);
preview.takePicture();
} else {
final Resources res = getResources();
final boolean isRecording = preview.toggleRecording();
@ -342,4 +342,9 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
public void activateShutter() {
handleShutter();
}
@Override
public int getCurrentOrientation() {
return orientation;
}
}