Skip to content

Commit 47ae7c6

Browse files
feat: use default as true for networkInformation api
1 parent 22c7da3 commit 47ae7c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ This option defaults to `false`.
477477

478478
##### useNetworkInformationApi
479479
* Type: `boolean`,
480-
* Default: `false`
480+
* Default: `true`
481481
* Use [window.networkInformation.downlink](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlink) to estimate the network's bandwidth. Per mdn, _The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure_. Given this, if bandwidth estimates from both the player and networkInfo are >= 10 Mbps, the player will use the larger of the two values as its bandwidth estimate.
482482

483483
##### useDtsForTimestampOffset

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
</div>
144144

145145
<div class="form-check">
146-
<input id=network-info type="checkbox" class="form-check-input">
146+
<input id=network-info type="checkbox" class="form-check-input" checked>
147147
<label class="form-check-label" for="network-info">Use networkInfo API for bandwidth estimations (reloads player)</label>
148148
</div>
149149

0 commit comments

Comments
 (0)