@vindral/web-sdk 4.2.0 → 4.2.1-10-ga7cb21ca
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/B7hT-BKr.js +32 -0
- package/B9WEkxkT.js +268 -0
- package/BFS4Hwu8.js +4362 -0
- package/BdFcdkj1.js +143 -0
- package/BsfwXDui.js +65 -0
- package/Bt-ONXfO.js +59 -0
- package/C01DcfYu.js +118 -0
- package/CYHlcwl-.js +1761 -0
- package/CrDL5rng.js +223 -0
- package/Cug44nXk.js +149 -0
- package/Ddby8xU_.js +18624 -0
- package/DeYmk5AL.js +210 -0
- package/DrWNJwZx.js +35 -0
- package/DtpcQ7ay.js +166 -0
- package/Dxs5czI4.js +11590 -0
- package/FYiEDBC4.js +50 -0
- package/RxoWWyzp.js +25 -0
- package/api-client.d.ts +3 -3
- package/api-client.js +2 -4
- package/cast-sender.d.ts +7 -7
- package/cast-sender.js +2 -230
- package/core.d.ts +44 -24
- package/core.js +3 -13
- package/legacy.d.ts +53 -33
- package/legacy.es.js +13754 -15260
- package/legacy.umd.js +1188 -15
- package/package.json +1 -1
- package/player.d.ts +69 -41
- package/player.js +4 -5476
- package/react.d.ts +62 -42
- package/react.js +0 -1
- package/vindral-player-component.js +5 -2
- package/BQEuFJLn.js +0 -206
- package/BoKiM5eL.js +0 -232
- package/CuhQLT-7.js +0 -254
- package/DBHv5ggB.js +0 -13182
- package/DGo74EDo.js +0 -59
- package/HT5RB929.js +0 -312
- package/h5LA1Y1W.js +0 -21750
package/legacy.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ declare class UserAgentInformation {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
export type AudioCodec = "aac" | "opus" | "mp3";
|
|
135
|
-
export type VideoCodec = "h264" | "av1";
|
|
135
|
+
export type VideoCodec = "h264" | "h265" | "av1";
|
|
136
136
|
/**
|
|
137
137
|
* The current reconnect state to use to decide whether to kep reconnecting or not
|
|
138
138
|
*/
|
|
@@ -484,8 +484,8 @@ interface TrackObject {
|
|
|
484
484
|
displayWidth?: number;
|
|
485
485
|
displayHeight?: number;
|
|
486
486
|
language?: string;
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
"com.vindral.variant_uid"?: string;
|
|
488
|
+
"com.vindral.drm"?: string;
|
|
489
489
|
}
|
|
490
490
|
interface CatalogRoot {
|
|
491
491
|
version: number;
|
|
@@ -782,6 +782,7 @@ export declare class ApiClient {
|
|
|
782
782
|
private toChannels;
|
|
783
783
|
private toChannel;
|
|
784
784
|
}
|
|
785
|
+
type TransportSelectionReason = "unsupported" | "disabled" | "unavailable" | "fallback";
|
|
785
786
|
interface AdaptivityStatistics {
|
|
786
787
|
/**
|
|
787
788
|
* True if adaptive bitrate (ABR) is enabled.
|
|
@@ -921,6 +922,7 @@ interface JitterModuleStatistics {
|
|
|
921
922
|
interface MseModuleStatistics {
|
|
922
923
|
quotaErrorCount: number;
|
|
923
924
|
mediaSourceOpenTime: number;
|
|
925
|
+
playbackStallCount: number;
|
|
924
926
|
totalVideoFrames?: number;
|
|
925
927
|
droppedVideoFrames?: number;
|
|
926
928
|
successfulVideoAppendCalls?: number;
|
|
@@ -1296,6 +1298,14 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1296
1298
|
* setting targetBufferTime within that range for consistancy if using both min/max.
|
|
1297
1299
|
*/
|
|
1298
1300
|
set targetBufferTime(bufferTimeMs: number);
|
|
1301
|
+
/**
|
|
1302
|
+
* Update the dynamic buffer time configuration at runtime.
|
|
1303
|
+
* Allows adjusting min and max buffer time without recreating the Vindral instance.
|
|
1304
|
+
*/
|
|
1305
|
+
updateBufferTimeConfig(config: {
|
|
1306
|
+
minBufferTime?: number;
|
|
1307
|
+
maxBufferTime?: number;
|
|
1308
|
+
}): void;
|
|
1299
1309
|
/**
|
|
1300
1310
|
* The estimated playback latency based on target buffer time, the connection rtt and local playback drift
|
|
1301
1311
|
*/
|
|
@@ -1533,6 +1543,8 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1533
1543
|
private suspend;
|
|
1534
1544
|
private unsuspend;
|
|
1535
1545
|
private getRuntimeInfo;
|
|
1546
|
+
private getPlaybackBufferState;
|
|
1547
|
+
private onMediaElementBufferState;
|
|
1536
1548
|
private onMediaElementState;
|
|
1537
1549
|
private onBufferEvent;
|
|
1538
1550
|
/**
|
|
@@ -1596,6 +1608,14 @@ interface ConnectionStatistics {
|
|
|
1596
1608
|
*/
|
|
1597
1609
|
connectionSuccessRatio: number;
|
|
1598
1610
|
connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
|
|
1611
|
+
/**
|
|
1612
|
+
* When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
|
|
1613
|
+
* - "unsupported": browser doesn't support WebTransport
|
|
1614
|
+
* - "disabled": webtransportEnabled option is false
|
|
1615
|
+
* - "unavailable": edge did not offer a WebTransport endpoint
|
|
1616
|
+
* - "fallback": WebTransport was attempted but failed or timed out
|
|
1617
|
+
*/
|
|
1618
|
+
transportSelectionReason: TransportSelectionReason | undefined;
|
|
1599
1619
|
}
|
|
1600
1620
|
/**
|
|
1601
1621
|
* Contextual information about the language switch
|
|
@@ -1650,7 +1670,7 @@ export interface PublicVindralEvents {
|
|
|
1650
1670
|
* In case of a fatal error it is appropriate to indicate what the error was to the user, either by displaying the error.message or
|
|
1651
1671
|
* by using the error.code() as a key to look up a localization string. To resume streaming it is required to create a new Vindral instance.
|
|
1652
1672
|
*/
|
|
1653
|
-
|
|
1673
|
+
error: Readonly<VindralError>;
|
|
1654
1674
|
/**
|
|
1655
1675
|
* When the instance needs user input to activate audio or sometimes video playback.
|
|
1656
1676
|
* Is called with an object
|
|
@@ -1661,51 +1681,51 @@ export interface PublicVindralEvents {
|
|
|
1661
1681
|
* }
|
|
1662
1682
|
* ```
|
|
1663
1683
|
*/
|
|
1664
|
-
|
|
1684
|
+
"needs user input": NeedsUserInputContext;
|
|
1665
1685
|
/**
|
|
1666
1686
|
* When a timed metadata event has been triggered
|
|
1667
1687
|
*/
|
|
1668
|
-
|
|
1688
|
+
metadata: Readonly<Metadata>;
|
|
1669
1689
|
/**
|
|
1670
1690
|
* When the playback state changes
|
|
1671
1691
|
*/
|
|
1672
|
-
|
|
1692
|
+
"playback state": Readonly<PlaybackState>;
|
|
1673
1693
|
/**
|
|
1674
1694
|
* When the connection state changes
|
|
1675
1695
|
*/
|
|
1676
|
-
|
|
1696
|
+
"connection state": Readonly<ConnectionState>;
|
|
1677
1697
|
/**
|
|
1678
1698
|
* When the available rendition levels is changed
|
|
1679
1699
|
*/
|
|
1680
|
-
|
|
1700
|
+
"rendition levels": ReadonlyArray<RenditionLevel>;
|
|
1681
1701
|
/**
|
|
1682
1702
|
* When the rendition level is changed
|
|
1683
1703
|
*/
|
|
1684
|
-
|
|
1704
|
+
"rendition level": Readonly<RenditionLevel>;
|
|
1685
1705
|
/**
|
|
1686
1706
|
* When the available languages is changed
|
|
1687
1707
|
*/
|
|
1688
|
-
|
|
1708
|
+
languages: ReadonlyArray<string>;
|
|
1689
1709
|
/**
|
|
1690
1710
|
* When the available text tracks are changed
|
|
1691
1711
|
*/
|
|
1692
|
-
|
|
1712
|
+
"text tracks": ReadonlyArray<string>;
|
|
1693
1713
|
/**
|
|
1694
1714
|
* When the available channels is changed
|
|
1695
1715
|
*/
|
|
1696
|
-
|
|
1716
|
+
channels: ReadonlyArray<Channel>;
|
|
1697
1717
|
/**
|
|
1698
1718
|
* When a context switch state change has occured.
|
|
1699
1719
|
* E.g. when a channel change has been requested, or quality is changed.
|
|
1700
1720
|
*/
|
|
1701
|
-
|
|
1721
|
+
"context switch": Readonly<ContextSwitchState>;
|
|
1702
1722
|
/**
|
|
1703
1723
|
* Emitted when a wallclock time message has been received from the server.
|
|
1704
1724
|
*
|
|
1705
1725
|
* Note: This is the edge server wallclock time and thus may differ slightly
|
|
1706
1726
|
* between two viewers if they are connected to different edge servers.
|
|
1707
1727
|
*/
|
|
1708
|
-
|
|
1728
|
+
"server wallclock time": Readonly<number>;
|
|
1709
1729
|
/**
|
|
1710
1730
|
* Is emitted during connection whether the channel is live or not.
|
|
1711
1731
|
*
|
|
@@ -1715,41 +1735,41 @@ export interface PublicVindralEvents {
|
|
|
1715
1735
|
* Note: If the web-sdk is instantiated at the same time as you are starting the stream it is possible
|
|
1716
1736
|
* that this emits false until the started state has propagated through the system.
|
|
1717
1737
|
*/
|
|
1718
|
-
|
|
1738
|
+
"is live": boolean;
|
|
1719
1739
|
/**
|
|
1720
1740
|
* Emitted when a channel switch has been completed and the first frame of the new channel is rendered.
|
|
1721
1741
|
* A string containing the channel id of the new channel is provided as an argument.
|
|
1722
1742
|
*/
|
|
1723
|
-
|
|
1743
|
+
"channel switch": Readonly<ChannelSwitchContext>;
|
|
1724
1744
|
/**
|
|
1725
1745
|
* Emmitted when a channel switch fails.
|
|
1726
1746
|
* A string containing the channel id of the current channel is provided as an argument.
|
|
1727
1747
|
*/
|
|
1728
|
-
|
|
1748
|
+
"channel switch failed": Readonly<ChannelSwitchContext>;
|
|
1729
1749
|
/**
|
|
1730
1750
|
* Emitted when a language switch has been completed and the new language starts playing.
|
|
1731
1751
|
*/
|
|
1732
|
-
|
|
1752
|
+
"language switch": Readonly<LanguageSwitchContext>;
|
|
1733
1753
|
/**
|
|
1734
1754
|
* Emitted when the volume state changes.
|
|
1735
1755
|
*
|
|
1736
1756
|
* This is triggered triggered both when the user changes the volume through the Vindral instance, but also
|
|
1737
1757
|
* from external sources such as OS media shortcuts or other native UI outside of the browser.
|
|
1738
1758
|
*/
|
|
1739
|
-
|
|
1759
|
+
"volume state": Readonly<VolumeState>;
|
|
1740
1760
|
/**
|
|
1741
1761
|
* Emitted when the timeshift URLs are updated.
|
|
1742
1762
|
*/
|
|
1743
|
-
|
|
1763
|
+
"timeshift info": Readonly<TimeShiftInfo>;
|
|
1744
1764
|
/**
|
|
1745
1765
|
* Emitted for each CMAF fragment received via the MoQ/VoQ path.
|
|
1746
1766
|
* Contains raw fMP4 bytes suitable for recording.
|
|
1747
1767
|
*
|
|
1748
1768
|
* @internal Not part of the public API — may change without notice.
|
|
1749
1769
|
*/
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1770
|
+
"cmaf fragment": Readonly<CmafFragmentEvent>;
|
|
1771
|
+
"buffer state event": Readonly<BufferStateEvent>;
|
|
1772
|
+
"initialized media": void;
|
|
1753
1773
|
}
|
|
1754
1774
|
/**
|
|
1755
1775
|
* Available events to listen to
|
|
@@ -1758,27 +1778,27 @@ export interface CastSenderEvents {
|
|
|
1758
1778
|
/**
|
|
1759
1779
|
* When a connection has been established with a CastReceiver
|
|
1760
1780
|
*/
|
|
1761
|
-
|
|
1781
|
+
connected: void;
|
|
1762
1782
|
/**
|
|
1763
1783
|
* When a previous session has been resumed
|
|
1764
1784
|
*/
|
|
1765
|
-
|
|
1785
|
+
resumed: void;
|
|
1766
1786
|
/**
|
|
1767
1787
|
* When a CastReceiver has lost or stopped a connection
|
|
1768
1788
|
*/
|
|
1769
|
-
|
|
1789
|
+
disconnected: void;
|
|
1770
1790
|
/**
|
|
1771
1791
|
* When a connection attempt was initiated unsuccessfully
|
|
1772
1792
|
*/
|
|
1773
|
-
|
|
1793
|
+
failed: void;
|
|
1774
1794
|
/**
|
|
1775
1795
|
* When the remote connection emits a metadata event
|
|
1776
1796
|
*/
|
|
1777
|
-
|
|
1797
|
+
metadata: Metadata;
|
|
1778
1798
|
/**
|
|
1779
1799
|
* When the remote connection receives a server wallclock time event
|
|
1780
1800
|
*/
|
|
1781
|
-
|
|
1801
|
+
"server wallclock time": number;
|
|
1782
1802
|
}
|
|
1783
1803
|
/**
|
|
1784
1804
|
* Used for initializing the CastSender
|
|
@@ -1874,15 +1894,15 @@ interface AirPlaySenderEvents {
|
|
|
1874
1894
|
/**
|
|
1875
1895
|
* When airplay targets are available.
|
|
1876
1896
|
*/
|
|
1877
|
-
|
|
1897
|
+
available: void;
|
|
1878
1898
|
/**
|
|
1879
1899
|
* When a connection has been established with an airplay target.
|
|
1880
1900
|
*/
|
|
1881
|
-
|
|
1901
|
+
connected: void;
|
|
1882
1902
|
/**
|
|
1883
1903
|
* When the airplay target has lost or stopped a connection.
|
|
1884
1904
|
*/
|
|
1885
|
-
|
|
1905
|
+
disconnected: void;
|
|
1886
1906
|
}
|
|
1887
1907
|
interface AirPlayConfig {
|
|
1888
1908
|
/**
|