Skip to content

Commit

Permalink
added endpoint for custom recording platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
cemklc committed May 5, 2021
1 parent 201b2ef commit caa07af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ else if (socialEndpointCredentials.getServiceName().equals(YOUTUBE))
storageClient.setRegion(appSettings.getS3RegionName());
storageClient.setAccessKey(appSettings.getS3AccessKey());
storageClient.setSecretKey(appSettings.getS3SecretKey());
storageClient.setEndpoint(appSettings.getS3Endpoint());
}
logger.info("{} started", app.getName());

Expand Down Expand Up @@ -1460,6 +1461,8 @@ private boolean updateAppSettingsFile(String appName, AppSettings newAppsettings
store.put(AppSettings.SETTINGS_S3_SECRET_KEY, newAppsettings.getS3SecretKey() != null ? newAppsettings.getS3SecretKey() : "");
store.put(AppSettings.SETTINGS_S3_REGION_NAME, newAppsettings.getS3RegionName() != null ? newAppsettings.getS3RegionName() : "");
store.put(AppSettings.SETTINGS_S3_BUCKET_NAME, newAppsettings.getS3BucketName() != null ? newAppsettings.getS3BucketName() : "");
store.put(AppSettings.SETTINGS_S3_ENDPOINT, newAppsettings.getS3Endpoint() != null ? newAppsettings.getS3Endpoint() : "");


store.put(AppSettings.SETTINGS_IP_FILTER_ENABLED, String.valueOf(newAppsettings.isIpFilterEnabled()));
store.put(AppSettings.SETTINGS_GENERATE_PREVIEW, String.valueOf(newAppsettings.isGeneratePreview()));
Expand Down Expand Up @@ -1529,11 +1532,13 @@ private void updateAppSettingsBean(AppSettings appSettings, AppSettings newSetti
appSettings.setS3SecretKey(newSettings.getS3SecretKey());
appSettings.setS3BucketName(newSettings.getS3BucketName());
appSettings.setS3RegionName(newSettings.getS3RegionName());
appSettings.setS3Endpoint(newSettings.getS3Endpoint());

storageClient.setStorageName(newSettings.getS3BucketName());
storageClient.setAccessKey(newSettings.getS3AccessKey());
storageClient.setSecretKey(newSettings.getS3SecretKey());
storageClient.setRegion(newSettings.getS3RegionName());
storageClient.setEndpoint(newSettings.getS3Endpoint());
}else{
appSettings.setS3AccessKey("");
appSettings.setS3SecretKey("");
Expand Down

0 comments on commit caa07af

Please sign in to comment.