@@ -47,14 +47,14 @@ LOGGER_TAG("com.amazonaws.kinesis.video.gstreamer");
47
47
#define DEFAULT_RECALCULATE_METRICS TRUE
48
48
#define DEFAULT_STREAM_FRAMERATE 25
49
49
#define DEFAULT_AVG_BANDWIDTH_BPS (4 * 1024 * 1024 )
50
- #define DEFAULT_BUFFER_DURATION_SECONDS 180
50
+ #define DEFAULT_BUFFER_DURATION_SECONDS 120
51
51
#define DEFAULT_REPLAY_DURATION_SECONDS 40
52
52
#define DEFAULT_CONNECTION_STALENESS_SECONDS 60
53
53
#define DEFAULT_CODEC_ID " V_MPEG4/ISO/AVC"
54
54
#define DEFAULT_TRACKNAME " kinesis_video"
55
55
#define APP_SINK_BASE_NAME " appsink"
56
56
#define DEFAULT_BUFFER_SIZE (1 * 1024 * 1024 )
57
- #define DEFAULT_STORAGE_SIZE (512 * 1024 * 1024 )
57
+ #define DEFAULT_STORAGE_SIZE (128 * 1024 * 1024 )
58
58
#define DEFAULT_ROTATION_TIME_SECONDS 2400
59
59
60
60
namespace com {
@@ -122,7 +122,7 @@ namespace com {
122
122
123
123
// Update only the expiration
124
124
auto now_time = std::chrono::duration_cast<std::chrono::seconds>(
125
- std::chrono::system_clock::now ().time_since_epoch ());
125
+ systemCurrentTime ().time_since_epoch ());
126
126
auto expiration_seconds = now_time + ROTATION_PERIOD;
127
127
credentials.setExpiration (std::chrono::seconds (expiration_seconds.count ()));
128
128
LOG_INFO (" New credentials expiration is " << credentials.getExpiration ().count ());
@@ -133,7 +133,7 @@ namespace com {
133
133
public:
134
134
device_info_t getDeviceInfo () override {
135
135
auto device_info = DefaultDeviceInfoProvider::getDeviceInfo ();
136
- // Set the storage size to 512MB
136
+ // Set the storage size to 64MB
137
137
device_info.storageInfo .storageSize = DEFAULT_STORAGE_SIZE;
138
138
return device_info;
139
139
}
0 commit comments