Skip to content

Commit 1836a70

Browse files
committed
Merge branch 'remotecontrolling' of https://github.com/DFKI-SignLanguage/RecSync-android into remotecontrolling
2 parents 7d5cc03 + 59d3be8 commit 1836a70

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

app/src/main/java/com/googleresearch/capturesync/MainActivity.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,9 @@ private MediaRecorder setUpMediaRecorder(Surface surface, boolean specifyOutput,
11561156
lastVideoPath = getOutputMediaFilePath(prefixText);
11571157
recorder.setOutputFile(lastVideoPath);
11581158

1159-
CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_1080P);
1159+
CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_2160P);
11601160
recorder.setVideoSize(profile.videoFrameWidth, profile.videoFrameHeight);
1161-
recorder.setVideoEncodingBitRate(8000000);
1161+
recorder.setVideoEncodingBitRate(60*1000*1000);
11621162
recorder.setVideoFrameRate(30);
11631163
Log.d(TAG, profile.videoBitRate + " Bitrate");
11641164

@@ -1187,22 +1187,17 @@ public void deleteAllFiles() {
11871187
String csvFilePath = sdcard.getAbsolutePath()+ "/RecSync/";
11881188
File path = new File(videoFilePath);
11891189
File fileList[] = path.listFiles();
1190-
Log.i(TAG,"Video File Path:"+videoFilePath );
1191-
Log.i(TAG,"No of files to delete: "+fileList.length );
11921190
String filename;
11931191
for(int i=0; i< fileList.length; i++){
11941192
filename = fileList[i].getName();
11951193
try{
1196-
Log.i(TAG,"inside deleteall" );
11971194
File vFile = new File(videoFilePath + filename);
11981195
vFile.delete();
1199-
Log.i(TAG,"csv_file_path : " + csvFilePath + filename.split("\\.")[0] + ".csv" );
12001196
File csvFile = new File(csvFilePath + filename.split("\\.")[0] + ".csv");
12011197
csvFile.delete();
12021198
}catch (Exception e){
12031199
e.printStackTrace();
12041200
}
1205-
12061201
}
12071202
}
12081203

app/src/main/java/com/googleresearch/capturesync/SoftwareSyncController.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,25 @@ private void setupSoftwareSync() {
221221
);
222222
});
223223
clientRpcs.put(
224-
METHOD_PREFIX_LIST,
224+
METHOD_EMPTY_DEVICE,
225225
payload -> {
226-
Log.v(TAG, "Sending Files List");
226+
Log.v(TAG, "Deleting All Recordings and Related Files");
227227
context.runOnUiThread(
228-
() -> context.sendPrefixList()
228+
() -> context.deleteAllFiles()
229229
);
230230
});
231231

232232
clientRpcs.put(
233-
METHOD_EMPTY_DEVICE,
233+
METHOD_PREFIX_LIST,
234234
payload -> {
235-
Log.v(TAG, "Deleting All Recordings and Related Files");
235+
Log.v(TAG, "Sending Files List");
236236
context.runOnUiThread(
237-
() -> context.deleteAllFiles()
237+
() -> context.sendPrefixList()
238238
);
239239
});
240240

241+
242+
241243
clientRpcs.put(
242244
SyncConstants.METHOD_MSG_OFFSET_UPDATED,
243245
payload ->

remote_control/remote_control.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,12 @@ def setupUi(self, MainWindow):
156156
MainWindow.resize(800, 800)
157157
self.centralwidget = QtWidgets.QWidget(MainWindow)
158158
self.centralwidget.setObjectName("centralwidget")
159-
self.label = QtWidgets.QLabel(self.centralwidget)
160-
self.label.setGeometry(QtCore.QRect(290, 10, 161, 61))
161159
font = QtGui.QFont()
162-
#font.setFamily("Source Code Pro")
163160
font.setPointSize(19)
164-
self.label.setFont(font)
165-
self.label.setObjectName("label")
166161

167162

168163
self.record_icon_btn = QtWidgets.QPushButton(self.centralwidget)
169-
self.record_icon_btn.setGeometry(QtCore.QRect(300, 120, 120, 61))
164+
self.record_icon_btn.setGeometry(QtCore.QRect(350, 140, 40, 30))
170165
self.record_icon_btn.setFont(font)
171166
self.record_icon_btn.setObjectName("record_icon_btn")
172167

@@ -248,7 +243,6 @@ def setupUi(self, MainWindow):
248243
def retranslateUi(self, MainWindow):
249244
_translate = QtCore.QCoreApplication.translate
250245
MainWindow.setWindowTitle(_translate("MainWindow", "Remote Control App"))
251-
self.label.setText(_translate("MainWindow", "RC APP"))
252246
self.record_icon_btn.setText(_translate("MainWindow", ""))
253247
self.start_btn.setText(_translate("MainWindow", "Start"))
254248
self.stop_btn.setText(_translate("MainWindow", "Stop"))

0 commit comments

Comments
 (0)