Skip to content

Commit 1cb19df

Browse files
committed
Docs edits
1 parent c0306de commit 1cb19df

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2021 Vonage.
3+
Copyright (c) 2014-2022 Vonage.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/main/java/com/opentok/Hls.java

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,47 @@
88
package com.opentok;
99

1010
/**
11-
* POJO for the 'hls' object node in the 'outputs' section of a Broadcast request's body.
11+
* Represents HLS options for a live streaming broadcast. Pass this object
12+
* into the {@link BroadcastProperties.Builder#hls()} method. It is returned by the
13+
* {@link BroadcastProperties#hls()} method.
1214
*/
1315
public class Hls {
1416

1517
private final boolean dvr;
1618
private final boolean lowLatency;
1719

20+
/**
21+
* Used to create the Hls object.
22+
*/
1823
public static class Builder {
1924
private boolean dvr = false;
2025
private boolean lowLatency = false;
2126

27+
/**
28+
* Whether to enable
29+
* <a href="https://tokbox.com/developer/guides/broadcast/live-streaming/#dvr">DVR functionality</a> —
30+
* rewinding, pausing, and resuming — in players that support it (true), or not (false, the default).
31+
* With DVR enabled, the HLS URL will include a ?DVR query string appended to the end.
32+
*/
2233
public Builder dvr(boolean dvr) {
2334
this.dvr = dvr;
2435
return this;
2536
}
2637

38+
/**
39+
* Whether to enable
40+
* <a href="https://tokbox.com/developer/guides/broadcast/live-streaming/#low-latency">low-latency mode</a>
41+
* for the HLSstream. Some HLS players do not support low-latency mode. This feature is incompatible
42+
* with DVR mode HLS broadcasts.
43+
*/
2744
public Builder lowLatency(boolean lowLatency) {
2845
this.lowLatency = lowLatency;
2946
return this;
3047
}
3148

49+
/**
50+
* Builds the HLS object with the selected settings.
51+
*/
3252
public Hls build() {
3353
return new Hls(this);
3454
}
@@ -41,10 +61,20 @@ protected Hls(Builder builder) {
4161
}
4262
}
4363

64+
/**
65+
* Whether
66+
* <a href="https://tokbox.com/developer/guides/broadcast/live-streaming/#dvr">DVR functionality</a> —
67+
* rewinding, pausing, and resuming — is enabled in players that support it.
68+
*/
4469
public boolean dvr() {
4570
return dvr;
4671
}
4772

73+
/**
74+
* Whether
75+
* <a href="https://tokbox.com/developer/guides/broadcast/live-streaming/#low-latency">low-latency mode</a>
76+
* is enabled for the HLSstream. Some HLS players do not support low-latency mode.
77+
*/
4878
public boolean lowLatency() {
4979
return lowLatency;
5080
}

0 commit comments

Comments
 (0)