@stream-io/video-client 0.0.1-alpha.68 → 0.0.1-alpha.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/lcov-report/index.html +1 -1
- package/dist/index.browser.es.js +3 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/ViewportTracker.ts +3 -1
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2023-03-
|
|
89
|
+
at 2023-03-30T10:07:28.749Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|
package/dist/index.browser.es.js
CHANGED
|
@@ -5426,6 +5426,7 @@ const flatten = (report) => {
|
|
|
5426
5426
|
return stats;
|
|
5427
5427
|
};
|
|
5428
5428
|
|
|
5429
|
+
const DEFAULT_THRESHOLD = 0.15;
|
|
5429
5430
|
class ViewportTracker {
|
|
5430
5431
|
constructor() {
|
|
5431
5432
|
/**
|
|
@@ -5463,7 +5464,7 @@ class ViewportTracker {
|
|
|
5463
5464
|
const handler = this.elementHandlerMap.get(entry.target);
|
|
5464
5465
|
handler === null || handler === void 0 ? void 0 : handler(entry);
|
|
5465
5466
|
});
|
|
5466
|
-
}, Object.assign(Object.assign({ root: viewportElement }, options), { threshold: (_a = options === null || options === void 0 ? void 0 : options.threshold) !== null && _a !== void 0 ? _a :
|
|
5467
|
+
}, Object.assign(Object.assign({ root: viewportElement }, options), { threshold: (_a = options === null || options === void 0 ? void 0 : options.threshold) !== null && _a !== void 0 ? _a : DEFAULT_THRESHOLD }));
|
|
5467
5468
|
if (this.queueSet.size) {
|
|
5468
5469
|
this.queueSet.forEach(([queueElement, queueHandler]) => {
|
|
5469
5470
|
// check if element which requested observation is
|
|
@@ -8308,7 +8309,7 @@ class StreamClient {
|
|
|
8308
8309
|
}
|
|
8309
8310
|
getUserAgent() {
|
|
8310
8311
|
return (this.userAgent ||
|
|
8311
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.
|
|
8312
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.68"}`);
|
|
8312
8313
|
}
|
|
8313
8314
|
setUserAgent(userAgent) {
|
|
8314
8315
|
this.userAgent = userAgent;
|