@vindral/web-sdk 4.2.0-23-g69dee092 → 4.2.0-24-g5a70e2f5

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/legacy.d.ts CHANGED
@@ -484,8 +484,8 @@ interface TrackObject {
484
484
  displayWidth?: number;
485
485
  displayHeight?: number;
486
486
  language?: string;
487
- ["com.vindral.variant_uid"]?: string;
488
- ["com.vindral.drm"]?: string;
487
+ "com.vindral.variant_uid"?: string;
488
+ "com.vindral.drm"?: string;
489
489
  }
490
490
  interface CatalogRoot {
491
491
  version: number;
@@ -1658,7 +1658,7 @@ export interface PublicVindralEvents {
1658
1658
  * 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
1659
1659
  * 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.
1660
1660
  */
1661
- ["error"]: Readonly<VindralError>;
1661
+ error: Readonly<VindralError>;
1662
1662
  /**
1663
1663
  * When the instance needs user input to activate audio or sometimes video playback.
1664
1664
  * Is called with an object
@@ -1669,51 +1669,51 @@ export interface PublicVindralEvents {
1669
1669
  * }
1670
1670
  * ```
1671
1671
  */
1672
- ["needs user input"]: NeedsUserInputContext;
1672
+ "needs user input": NeedsUserInputContext;
1673
1673
  /**
1674
1674
  * When a timed metadata event has been triggered
1675
1675
  */
1676
- ["metadata"]: Readonly<Metadata>;
1676
+ metadata: Readonly<Metadata>;
1677
1677
  /**
1678
1678
  * When the playback state changes
1679
1679
  */
1680
- ["playback state"]: Readonly<PlaybackState>;
1680
+ "playback state": Readonly<PlaybackState>;
1681
1681
  /**
1682
1682
  * When the connection state changes
1683
1683
  */
1684
- ["connection state"]: Readonly<ConnectionState>;
1684
+ "connection state": Readonly<ConnectionState>;
1685
1685
  /**
1686
1686
  * When the available rendition levels is changed
1687
1687
  */
1688
- ["rendition levels"]: ReadonlyArray<RenditionLevel>;
1688
+ "rendition levels": ReadonlyArray<RenditionLevel>;
1689
1689
  /**
1690
1690
  * When the rendition level is changed
1691
1691
  */
1692
- ["rendition level"]: Readonly<RenditionLevel>;
1692
+ "rendition level": Readonly<RenditionLevel>;
1693
1693
  /**
1694
1694
  * When the available languages is changed
1695
1695
  */
1696
- ["languages"]: ReadonlyArray<string>;
1696
+ languages: ReadonlyArray<string>;
1697
1697
  /**
1698
1698
  * When the available text tracks are changed
1699
1699
  */
1700
- ["text tracks"]: ReadonlyArray<string>;
1700
+ "text tracks": ReadonlyArray<string>;
1701
1701
  /**
1702
1702
  * When the available channels is changed
1703
1703
  */
1704
- ["channels"]: ReadonlyArray<Channel>;
1704
+ channels: ReadonlyArray<Channel>;
1705
1705
  /**
1706
1706
  * When a context switch state change has occured.
1707
1707
  * E.g. when a channel change has been requested, or quality is changed.
1708
1708
  */
1709
- ["context switch"]: Readonly<ContextSwitchState>;
1709
+ "context switch": Readonly<ContextSwitchState>;
1710
1710
  /**
1711
1711
  * Emitted when a wallclock time message has been received from the server.
1712
1712
  *
1713
1713
  * Note: This is the edge server wallclock time and thus may differ slightly
1714
1714
  * between two viewers if they are connected to different edge servers.
1715
1715
  */
1716
- ["server wallclock time"]: Readonly<number>;
1716
+ "server wallclock time": Readonly<number>;
1717
1717
  /**
1718
1718
  * Is emitted during connection whether the channel is live or not.
1719
1719
  *
@@ -1723,41 +1723,41 @@ export interface PublicVindralEvents {
1723
1723
  * Note: If the web-sdk is instantiated at the same time as you are starting the stream it is possible
1724
1724
  * that this emits false until the started state has propagated through the system.
1725
1725
  */
1726
- ["is live"]: boolean;
1726
+ "is live": boolean;
1727
1727
  /**
1728
1728
  * Emitted when a channel switch has been completed and the first frame of the new channel is rendered.
1729
1729
  * A string containing the channel id of the new channel is provided as an argument.
1730
1730
  */
1731
- ["channel switch"]: Readonly<ChannelSwitchContext>;
1731
+ "channel switch": Readonly<ChannelSwitchContext>;
1732
1732
  /**
1733
1733
  * Emmitted when a channel switch fails.
1734
1734
  * A string containing the channel id of the current channel is provided as an argument.
1735
1735
  */
1736
- ["channel switch failed"]: Readonly<ChannelSwitchContext>;
1736
+ "channel switch failed": Readonly<ChannelSwitchContext>;
1737
1737
  /**
1738
1738
  * Emitted when a language switch has been completed and the new language starts playing.
1739
1739
  */
1740
- ["language switch"]: Readonly<LanguageSwitchContext>;
1740
+ "language switch": Readonly<LanguageSwitchContext>;
1741
1741
  /**
1742
1742
  * Emitted when the volume state changes.
1743
1743
  *
1744
1744
  * This is triggered triggered both when the user changes the volume through the Vindral instance, but also
1745
1745
  * from external sources such as OS media shortcuts or other native UI outside of the browser.
1746
1746
  */
1747
- ["volume state"]: Readonly<VolumeState>;
1747
+ "volume state": Readonly<VolumeState>;
1748
1748
  /**
1749
1749
  * Emitted when the timeshift URLs are updated.
1750
1750
  */
1751
- ["timeshift info"]: Readonly<TimeShiftInfo>;
1751
+ "timeshift info": Readonly<TimeShiftInfo>;
1752
1752
  /**
1753
1753
  * Emitted for each CMAF fragment received via the MoQ/VoQ path.
1754
1754
  * Contains raw fMP4 bytes suitable for recording.
1755
1755
  *
1756
1756
  * @internal Not part of the public API — may change without notice.
1757
1757
  */
1758
- ["cmaf fragment"]: Readonly<CmafFragmentEvent>;
1759
- ["buffer state event"]: Readonly<BufferStateEvent>;
1760
- ["initialized media"]: void;
1758
+ "cmaf fragment": Readonly<CmafFragmentEvent>;
1759
+ "buffer state event": Readonly<BufferStateEvent>;
1760
+ "initialized media": void;
1761
1761
  }
1762
1762
  /**
1763
1763
  * Available events to listen to
@@ -1766,27 +1766,27 @@ export interface CastSenderEvents {
1766
1766
  /**
1767
1767
  * When a connection has been established with a CastReceiver
1768
1768
  */
1769
- ["connected"]: void;
1769
+ connected: void;
1770
1770
  /**
1771
1771
  * When a previous session has been resumed
1772
1772
  */
1773
- ["resumed"]: void;
1773
+ resumed: void;
1774
1774
  /**
1775
1775
  * When a CastReceiver has lost or stopped a connection
1776
1776
  */
1777
- ["disconnected"]: void;
1777
+ disconnected: void;
1778
1778
  /**
1779
1779
  * When a connection attempt was initiated unsuccessfully
1780
1780
  */
1781
- ["failed"]: void;
1781
+ failed: void;
1782
1782
  /**
1783
1783
  * When the remote connection emits a metadata event
1784
1784
  */
1785
- ["metadata"]: Metadata;
1785
+ metadata: Metadata;
1786
1786
  /**
1787
1787
  * When the remote connection receives a server wallclock time event
1788
1788
  */
1789
- ["server wallclock time"]: number;
1789
+ "server wallclock time": number;
1790
1790
  }
1791
1791
  /**
1792
1792
  * Used for initializing the CastSender
@@ -1882,15 +1882,15 @@ interface AirPlaySenderEvents {
1882
1882
  /**
1883
1883
  * When airplay targets are available.
1884
1884
  */
1885
- ["available"]: void;
1885
+ available: void;
1886
1886
  /**
1887
1887
  * When a connection has been established with an airplay target.
1888
1888
  */
1889
- ["connected"]: void;
1889
+ connected: void;
1890
1890
  /**
1891
1891
  * When the airplay target has lost or stopped a connection.
1892
1892
  */
1893
- ["disconnected"]: void;
1893
+ disconnected: void;
1894
1894
  }
1895
1895
  interface AirPlayConfig {
1896
1896
  /**