openvidu-server: name JSON sync file of individual recordings after recording name

pull/203/head
pabloFuente 2019-01-31 17:04:41 +01:00
parent 1d8d90147c
commit 2b358f6497
2 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@ public class SingleStreamRecordingService extends RecordingService {
String folderPath = this.openviduConfig.getOpenViduRecordingPath() + recording.getId() + "/";
String metadataFilePath = folderPath + RecordingManager.RECORDING_ENTITY_FILE + recording.getId();
String syncFilePath = folderPath + recording.getId() + ".json";
String syncFilePath = folderPath + recording.getName() + ".json";
recording = this.recordingManager.getRecordingFromEntityFile(new File(metadataFilePath));
@ -342,7 +342,7 @@ public class SingleStreamRecordingService extends RecordingService {
Reader reader = null;
Gson gson = new Gson();
// Sync metadata json object to store in "RECORDING_ID.json"
// Sync metadata json object to store in "RECORDING_NAME.json"
JsonObject json = new JsonObject();
json.addProperty("createdAt", recording.getCreatedAt());
json.addProperty("id", recording.getId());

View File

@ -1901,7 +1901,7 @@ public class OpenViduTestAppE2eTest {
List<File> unzippedWebmFiles = new Unzipper().unzipFile(recPath, recording.getName() + ".zip");
File jsonSyncFile = new File(recPath + recording.getId() + ".json");
File jsonSyncFile = new File(recPath + recording.getName() + ".json");
Assert.assertTrue(jsonSyncFile.exists() && jsonSyncFile.length() > 0);
JsonObject jsonSyncMetadata;
try {