@livepeer/core-web
Advanced tools
Comparing version 4.1.16 to 4.1.17
@@ -1,2 +0,2 @@ | ||
import { MediaControllerStore, DeviceInformation, MediaMetrics, InitialProps, Src } from '@livepeer/core/media'; | ||
import { MediaControllerStore, DeviceInformation, MediaMetrics, InitialProps, PlaybackError, Src } from '@livepeer/core/media'; | ||
import { HlsConfig as HlsConfig$1 } from 'hls.js'; | ||
@@ -11,3 +11,3 @@ | ||
type MediaMetricsOptions = Pick<InitialProps, "onError" | "viewerId"> & { | ||
type MediaMetricsOptions = Pick<InitialProps, "viewerId"> & { | ||
/** | ||
@@ -28,2 +28,6 @@ * Sets a custom source URL for playback, such as `https://livepeercdn.studio/hls/{playbackId}/index.m3u8`. | ||
disableProgressListener?: boolean; | ||
/** | ||
* Callback called when there is an error. | ||
*/ | ||
onError?: ((error: PlaybackError) => any) | null | undefined; | ||
}; | ||
@@ -30,0 +34,0 @@ /** |
@@ -1390,3 +1390,8 @@ // src/media/controls/controller.ts | ||
posterLiveUpdate: 0, | ||
...opts | ||
...opts, | ||
onError(error) { | ||
if (error) { | ||
opts?.onError?.(error); | ||
} | ||
} | ||
} | ||
@@ -1393,0 +1398,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "4.1.16", | ||
"version": "4.1.17", | ||
"type": "module", | ||
@@ -86,3 +86,3 @@ "repository": { | ||
"zustand": "^4.5.0", | ||
"@livepeer/core": "3.1.16" | ||
"@livepeer/core": "3.1.17" | ||
}, | ||
@@ -89,0 +89,0 @@ "keywords": [ |
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
745771
6617
+ Added@livepeer/core@3.1.17(transitive)
- Removed@livepeer/core@3.1.16(transitive)
Updated@livepeer/core@3.1.17