@livepeer/core
Advanced tools
Comparing version 3.2.0-next.3 to 3.2.0-next.4
@@ -571,2 +571,8 @@ import { StoreApi } from 'zustand/vanilla'; | ||
type MetricsOpts = { | ||
/** | ||
* Disables the `progress` event listener, which is used to monitor when media is in a "playing" state. | ||
*/ | ||
disableProgressListener?: boolean; | ||
}; | ||
type RawMetrics = { | ||
@@ -643,3 +649,3 @@ preloadTime: number | null; | ||
timeUnpaused: Timer; | ||
constructor(store: MediaControllerStore); | ||
constructor(store: MediaControllerStore, opts: MetricsOpts | undefined); | ||
addError(error: string): void; | ||
@@ -672,3 +678,3 @@ getFirstPlayback(): number | null; | ||
*/ | ||
declare function addLegacyMediaMetricsToStore(store: MediaControllerStore | undefined | null): LegacyMediaMetrics; | ||
declare function addLegacyMediaMetricsToStore(store: MediaControllerStore | undefined | null, opts?: MetricsOpts): LegacyMediaMetrics; | ||
@@ -793,5 +799,7 @@ type HeartbeatEvent = { | ||
* @param opts.interval The interval at which metrics are sent, in ms. Default 5000. | ||
* @param opts.disableProgressListener Disables the `progress` event listener, which is used to monitor when media is in a "playing" state. | ||
*/ | ||
declare function addMetricsToStore(store: MediaControllerStore | undefined | null, opts?: { | ||
interval?: number; | ||
disableProgressListener?: boolean; | ||
}): { | ||
@@ -798,0 +806,0 @@ destroy: () => void; |
declare const version: { | ||
readonly core: "@livepeer/core@3.2.0-next.3"; | ||
readonly react: "@livepeer/react@4.2.0-next.3"; | ||
readonly core: "@livepeer/core@3.2.0-next.4"; | ||
readonly react: "@livepeer/react@4.2.0-next.4"; | ||
}; | ||
export { version }; |
// src/version.ts | ||
var core = "@livepeer/core@3.2.0-next.3"; | ||
var react = "@livepeer/react@4.2.0-next.3"; | ||
var core = "@livepeer/core@3.2.0-next.4"; | ||
var react = "@livepeer/react@4.2.0-next.4"; | ||
var version = { | ||
@@ -5,0 +5,0 @@ core, |
@@ -6,3 +6,3 @@ { | ||
"type": "module", | ||
"version": "3.2.0-next.3", | ||
"version": "3.2.0-next.4", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
749863
7124