Skip to content

Commit

Permalink
added default check for S3
Browse files Browse the repository at this point in the history
  • Loading branch information
cemklc committed May 3, 2021
1 parent 2074b44 commit f738f56
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,12 @@ else if (socialEndpointCredentials.getServiceName().equals(YOUTUBE))
webRTCAdaptor.setPacketLossDiffThresholdForSwitchback(appSettings.getPacketLossDiffThresholdForSwitchback());
webRTCAdaptor.setRttMeasurementDiffThresholdForSwitchback(appSettings.getRttMeasurementDiffThresholdForSwitchback());
}

storageClient.setStorageName(appSettings.getS3BucketName());
storageClient.setRegion(appSettings.getS3RegionName());
storageClient.setAccessKey(appSettings.getS3AccessKey());
storageClient.setSecretKey(appSettings.getS3SecretKey());
if (appSettings.isS3RecordingEnabled()) {
storageClient.setStorageName(appSettings.getS3BucketName());
storageClient.setRegion(appSettings.getS3RegionName());
storageClient.setAccessKey(appSettings.getS3AccessKey());
storageClient.setSecretKey(appSettings.getS3SecretKey());
}
logger.info("{} started", app.getName());

return true;
Expand Down

0 comments on commit f738f56

Please sign in to comment.