@vindral/web-sdk 4.1.5 → 4.1.6
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/{CR970t1n.js → BoVzlg5M.js} +1 -1
- package/{DROC3QN7.js → D1E3hbbb.js} +843 -831
- package/cast-sender.d.ts +8 -0
- package/core.d.ts +22 -14
- package/core.js +1 -1
- package/legacy.d.ts +22 -14
- package/legacy.es.js +596 -584
- package/legacy.umd.js +8 -8
- package/package.json +1 -1
- package/player.d.ts +23 -15
- package/player.js +285 -284
- package/react.d.ts +23 -15
- package/{BLdnaIls.js → xMUHexhV.js} +1 -1
package/react.d.ts
CHANGED
|
@@ -453,6 +453,14 @@ interface Options {
|
|
|
453
453
|
* Whether to start the player muted or to try to start playing audio automatically.
|
|
454
454
|
*/
|
|
455
455
|
muted?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Initial volume level for the player. A floating point value between 0-1.
|
|
458
|
+
* Default is 1 (100% volume).
|
|
459
|
+
*
|
|
460
|
+
* Note: Volume cannot be set on iOS devices due to system restrictions.
|
|
461
|
+
* The volume property is not settable in JavaScript on iOS, and reading it always returns 1.
|
|
462
|
+
*/
|
|
463
|
+
volume?: number;
|
|
456
464
|
/**
|
|
457
465
|
* Provide a custom reconnect handler to control when the instance should stop trying to
|
|
458
466
|
* reconnect. The reconnect handler should either return true to allow the reconnect or
|
|
@@ -739,6 +747,20 @@ interface IncomingDataModuleStatistics {
|
|
|
739
747
|
*/
|
|
740
748
|
bytesReceived: number;
|
|
741
749
|
}
|
|
750
|
+
interface JitterStatistics {
|
|
751
|
+
/** Minimum jitter in the recent window */
|
|
752
|
+
min: number;
|
|
753
|
+
/** Maximum jitter in the recent window for spike detection */
|
|
754
|
+
max: number;
|
|
755
|
+
/** Latest average jitter in ms (recent window) */
|
|
756
|
+
last: number;
|
|
757
|
+
/** Average jitter in ms (RFC 3550 style, smoothed with /16) */
|
|
758
|
+
average: number;
|
|
759
|
+
}
|
|
760
|
+
interface JitterModuleStatistics {
|
|
761
|
+
audioJitter: JitterStatistics | undefined;
|
|
762
|
+
videoJitter: JitterStatistics | undefined;
|
|
763
|
+
}
|
|
742
764
|
interface MseModuleStatistics {
|
|
743
765
|
quotaErrorCount: number;
|
|
744
766
|
mediaSourceOpenTime: number;
|
|
@@ -775,20 +797,6 @@ interface SyncModuleStatistics {
|
|
|
775
797
|
timeshiftDriftAdjustmentCount: number;
|
|
776
798
|
seekTime: number;
|
|
777
799
|
}
|
|
778
|
-
interface JitterStatistics {
|
|
779
|
-
/** Minimum jitter in the recent window */
|
|
780
|
-
min: number;
|
|
781
|
-
/** Maximum jitter in the recent window for spike detection */
|
|
782
|
-
max: number;
|
|
783
|
-
/** Latest average jitter in ms (recent window) */
|
|
784
|
-
last: number;
|
|
785
|
-
/** Average jitter in ms (RFC 3550 style, smoothed with /16) */
|
|
786
|
-
average: number;
|
|
787
|
-
}
|
|
788
|
-
interface JitterModuleStatistics {
|
|
789
|
-
audioJitter: JitterStatistics | undefined;
|
|
790
|
-
videoJitter: JitterStatistics | undefined;
|
|
791
|
-
}
|
|
792
800
|
interface VideoPlayerStatistics {
|
|
793
801
|
renderedFrameCount: number;
|
|
794
802
|
rendererDroppedFrameCount: number;
|
|
@@ -1782,7 +1790,7 @@ declare class PlayButton extends VindralButton {
|
|
|
1782
1790
|
type PlayerAttributes = (typeof Player.observedAttributes)[number];
|
|
1783
1791
|
declare class Player extends HTMLElement {
|
|
1784
1792
|
#private;
|
|
1785
|
-
static observedAttributes: readonly ("title" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "user-interacting" | "is-casting" | "cast-available" | "cast-receiver-name" | "ui-locked" | "hide-ui-on-pause" | "is-fullscreen" | "is-fullscreen-fallback" | "rendition-levels" | "rendition-level" | "max-video-bit-rate" | "max-initial-bit-rate" | "channel-id" | "channel-group-id" | "pip-available" | "is-pip" | "airplay-available" | "is-airplaying" | "media" | "languages" | "text-tracks" | "text-track" | "needs-user-input-video" | "needs-user-input-audio" | "authentication-token" | "volume-level" | "cast" | "airplay" | "pip" | "fullscreen" | "vu-meter" | "poster-src" | "timeshift" | "url" | "
|
|
1793
|
+
static observedAttributes: readonly ("title" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "user-interacting" | "is-casting" | "cast-available" | "cast-receiver-name" | "ui-locked" | "hide-ui-on-pause" | "is-fullscreen" | "is-fullscreen-fallback" | "rendition-levels" | "rendition-level" | "max-video-bit-rate" | "max-initial-bit-rate" | "channel-id" | "channel-group-id" | "pip-available" | "is-pip" | "airplay-available" | "is-airplaying" | "media" | "languages" | "text-tracks" | "text-track" | "needs-user-input-video" | "needs-user-input-audio" | "authentication-token" | "volume-level" | "cast" | "airplay" | "pip" | "fullscreen" | "vu-meter" | "poster-src" | "timeshift" | "url" | "offline" | "edge-url" | "target-buffer-time" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "min-buffer-time" | "max-buffer-time" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "ios-media-element-enabled" | "abr-enabled" | "size-based-resolution-cap-enabled" | "telemetry-enabled" | "video-codecs" | "drm-headers" | "drm-queryparams" | "drm-widevine-video-robustness" | "drm-widevine-audio-robustness" | "drm-playready-video-robustness" | "drm-playready-audio-robustness" | "webtransport-enabled" | "reconnect-retries" | "auto-instance-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1786
1794
|
constructor();
|
|
1787
1795
|
connectedCallback(): void;
|
|
1788
1796
|
disconnectedCallback(): void;
|
|
@@ -27,7 +27,7 @@ var X = (B, g, A) => new Promise((J, k) => {
|
|
|
27
27
|
}, o = (h) => h.done ? J(h.value) : Promise.resolve(h.value).then(y, a);
|
|
28
28
|
o((A = A.apply(B, g)).next());
|
|
29
29
|
});
|
|
30
|
-
import { F as RA, d as JA, n as kA } from "./
|
|
30
|
+
import { F as RA, d as JA, n as kA } from "./D1E3hbbb.js";
|
|
31
31
|
var hA = (function() {
|
|
32
32
|
var B = typeof document != "undefined" && document.currentScript ? document.currentScript.src : void 0;
|
|
33
33
|
return (function(g) {
|