diff options
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/bandwidth-estimate.ts')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbedInner/bandwidth-estimate.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/bandwidth-estimate.ts b/src/view/com/util/post-embeds/VideoEmbedInner/bandwidth-estimate.ts new file mode 100644 index 000000000..122e10aef --- /dev/null +++ b/src/view/com/util/post-embeds/VideoEmbedInner/bandwidth-estimate.ts @@ -0,0 +1,11 @@ +let latestBandwidthEstimate: number | undefined + +export function get() { + return latestBandwidthEstimate +} + +export function set(estimate: number) { + if (!isNaN(estimate)) { + latestBandwidthEstimate = estimate + } +} |