Skip to content

Commit dd7ed97

Browse files
Jaideep ShahManik Sachdeva
authored andcommitted
Archive size variable changed from int to long to accommodate > 2GB sizes (#167)
1 parent a5260b8 commit dd7ed97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/opentok/Archive.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public enum OutputMode {
9595
@JsonProperty private int partnerId;
9696
@JsonProperty private String reason;
9797
@JsonProperty private String sessionId;
98-
@JsonProperty private int size = 0;
98+
@JsonProperty private long size = 0;
9999
@JsonProperty private Status status;
100100
@JsonProperty private String url;
101101
@JsonProperty private boolean hasVideo = true;
@@ -172,7 +172,7 @@ public String getSessionId() {
172172
/**
173173
* The size of the MP4 file. For archives that have not been generated, this value is set to 0.
174174
*/
175-
public int getSize() {
175+
public long getSize() {
176176
return size;
177177
}
178178

src/test/java/com/opentok/test/OpenTokTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ public void testListArchives() throws OpenTokException {
617617
" \"partnerId\" : 123456,\n" +
618618
" \"reason\" : \"\",\n" +
619619
" \"sessionId\" : \"SESSIONID\",\n" +
620-
" \"size\" : 2909274,\n" +
620+
" \"size\" : 247145329511,\n" +
621621
" \"status\" : \"available\",\n" +
622622
" \"url\" : \"http://tokbox.com.archive2.s3.amazonaws.com/123456%2Fef546c5" +
623623
"a-4fd7-4e59-ab3d-f1cfb4148d1d%2Farchive.mp4?Expires=1395188695&AWSAccessKeyId=AKIAI6" +

0 commit comments

Comments
 (0)