@livepeer/core
Advanced tools
Comparing version 1.8.3 to 1.8.4
@@ -23,4 +23,6 @@ /** | ||
export declare const BFRAMES_ERROR_MESSAGE = "metadata indicates that webrtc playback contains bframes"; | ||
export declare const NOT_ACCEPTABLE_ERROR_MESSAGE = "response indicates unacceptable playback protocol"; | ||
export declare const isStreamOfflineError: (error: Error) => boolean; | ||
export declare const isAccessControlError: (error: Error) => boolean; | ||
export declare const isBframesError: (error: Error) => boolean; | ||
export declare const isNotAcceptableError: (error: Error) => boolean; |
@@ -6,3 +6,3 @@ export { createAsset, createStream, getAsset, getAssetMetrics, getLivepeerProvider, getPlaybackInfo, getStream, getStreamSession, getStreamSessions, updateAsset, updateStream, watchLivepeerProvider, } from './actions'; | ||
export { defaultStudioConfig, defaultTranscodingProfiles } from './constants'; | ||
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isStreamOfflineError, } from './errors'; | ||
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, NOT_ACCEPTABLE_ERROR_MESSAGE, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isNotAcceptableError, isStreamOfflineError, } from './errors'; | ||
export { createControllerStore, getMediaSourceType, sanitizeMediaControllerState, } from './media'; | ||
@@ -9,0 +9,0 @@ export type { AudioSrc, Base64Src, ControlsOptions, DeviceInformation, ElementSize, HlsSrc, MediaControllerCallbackState, MediaControllerState, MediaControllerStore, MediaMetrics, MediaPropsOptions, MediaSizing, Metadata, MetricsStatus, PlaybackMonitor, Src, VideoSrc, WebRTCSrc, } from './media'; |
export declare const version: { | ||
readonly core: "@livepeer/core@1.8.3"; | ||
readonly react: "@livepeer/react@2.8.3"; | ||
readonly reactNative: "@livepeer/react-native@1.8.2"; | ||
readonly core: "@livepeer/core@1.8.4"; | ||
readonly react: "@livepeer/react@2.8.4"; | ||
readonly reactNative: "@livepeer/react-native@1.8.3"; | ||
}; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var client = require('./client-7e4fd284.cjs.dev.js'); | ||
var version = require('./version-2081a2b0.cjs.dev.js'); | ||
var version = require('./version-ebfa6be9.cjs.dev.js'); | ||
var updateStream = require('./updateStream-edae96b2.cjs.dev.js'); | ||
@@ -24,2 +24,3 @@ var getStream = require('./getStream-a1e88460.cjs.dev.js'); | ||
exports.HttpError = errors_dist_livepeerCoreErrors.HttpError; | ||
exports.NOT_ACCEPTABLE_ERROR_MESSAGE = errors_dist_livepeerCoreErrors.NOT_ACCEPTABLE_ERROR_MESSAGE; | ||
exports.STREAM_OFFLINE_ERROR_MESSAGE = errors_dist_livepeerCoreErrors.STREAM_OFFLINE_ERROR_MESSAGE; | ||
@@ -29,2 +30,3 @@ exports.STREAM_OPEN_ERROR_MESSAGE = errors_dist_livepeerCoreErrors.STREAM_OPEN_ERROR_MESSAGE; | ||
exports.isBframesError = errors_dist_livepeerCoreErrors.isBframesError; | ||
exports.isNotAcceptableError = errors_dist_livepeerCoreErrors.isNotAcceptableError; | ||
exports.isStreamOfflineError = errors_dist_livepeerCoreErrors.isStreamOfflineError; | ||
@@ -31,0 +33,0 @@ exports.Client = client.Client; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var client = require('./client-b49d615d.cjs.prod.js'); | ||
var version = require('./version-8d2eb11b.cjs.prod.js'); | ||
var version = require('./version-f2ee8234.cjs.prod.js'); | ||
var updateStream = require('./updateStream-4ae9772a.cjs.prod.js'); | ||
@@ -24,2 +24,3 @@ var getStream = require('./getStream-03a26cdc.cjs.prod.js'); | ||
exports.HttpError = errors_dist_livepeerCoreErrors.HttpError; | ||
exports.NOT_ACCEPTABLE_ERROR_MESSAGE = errors_dist_livepeerCoreErrors.NOT_ACCEPTABLE_ERROR_MESSAGE; | ||
exports.STREAM_OFFLINE_ERROR_MESSAGE = errors_dist_livepeerCoreErrors.STREAM_OFFLINE_ERROR_MESSAGE; | ||
@@ -29,2 +30,3 @@ exports.STREAM_OPEN_ERROR_MESSAGE = errors_dist_livepeerCoreErrors.STREAM_OPEN_ERROR_MESSAGE; | ||
exports.isBframesError = errors_dist_livepeerCoreErrors.isBframesError; | ||
exports.isNotAcceptableError = errors_dist_livepeerCoreErrors.isNotAcceptableError; | ||
exports.isStreamOfflineError = errors_dist_livepeerCoreErrors.isStreamOfflineError; | ||
@@ -31,0 +33,0 @@ exports.Client = client.Client; |
@@ -1,4 +0,4 @@ | ||
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isStreamOfflineError } from '../errors/dist/livepeer-core-errors.esm.js'; | ||
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, NOT_ACCEPTABLE_ERROR_MESSAGE, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isNotAcceptableError, isStreamOfflineError } from '../errors/dist/livepeer-core-errors.esm.js'; | ||
export { C as Client, c as clearClient, a as createClient, b as createStorage, n as noopStorage } from './client-8a4dc167.esm.js'; | ||
export { v as version } from './version-c006be1a.esm.js'; | ||
export { v as version } from './version-140533b7.esm.js'; | ||
export { c as createAsset, a as createStream, g as getAsset, b as getAssetMetrics, d as getPlaybackInfo, e as getStreamSession, f as getStreamSessions, u as updateAsset, h as updateStream, w as watchLivepeerProvider } from './updateStream-734d36e9.esm.js'; | ||
@@ -5,0 +5,0 @@ export { g as getLivepeerProvider, a as getStream } from './getStream-fd5ec1b5.esm.js'; |
@@ -27,5 +27,7 @@ 'use strict'; | ||
const BFRAMES_ERROR_MESSAGE = 'metadata indicates that webrtc playback contains bframes'; | ||
const NOT_ACCEPTABLE_ERROR_MESSAGE = 'response indicates unacceptable playback protocol'; | ||
const isStreamOfflineError = error => error.message.toLowerCase().includes(STREAM_OPEN_ERROR_MESSAGE) || error.message.toLowerCase().includes(STREAM_WAITING_FOR_DATA_ERROR_MESSAGE) || error.message.toLowerCase().includes(STREAM_OFFLINE_ERROR_MESSAGE); | ||
const isAccessControlError = error => error.message.toLowerCase().includes(ACCESS_CONTROL_ERROR_MESSAGE); | ||
const isBframesError = error => error.message.toLowerCase().includes(BFRAMES_ERROR_MESSAGE); | ||
const isNotAcceptableError = error => error.message.toLowerCase().includes(NOT_ACCEPTABLE_ERROR_MESSAGE); | ||
@@ -35,2 +37,3 @@ exports.ACCESS_CONTROL_ERROR_MESSAGE = ACCESS_CONTROL_ERROR_MESSAGE; | ||
exports.HttpError = HttpError; | ||
exports.NOT_ACCEPTABLE_ERROR_MESSAGE = NOT_ACCEPTABLE_ERROR_MESSAGE; | ||
exports.STREAM_OFFLINE_ERROR_MESSAGE = STREAM_OFFLINE_ERROR_MESSAGE; | ||
@@ -41,2 +44,3 @@ exports.STREAM_OPEN_ERROR_MESSAGE = STREAM_OPEN_ERROR_MESSAGE; | ||
exports.isBframesError = isBframesError; | ||
exports.isNotAcceptableError = isNotAcceptableError; | ||
exports.isStreamOfflineError = isStreamOfflineError; |
@@ -27,5 +27,7 @@ 'use strict'; | ||
const BFRAMES_ERROR_MESSAGE = 'metadata indicates that webrtc playback contains bframes'; | ||
const NOT_ACCEPTABLE_ERROR_MESSAGE = 'response indicates unacceptable playback protocol'; | ||
const isStreamOfflineError = error => error.message.toLowerCase().includes(STREAM_OPEN_ERROR_MESSAGE) || error.message.toLowerCase().includes(STREAM_WAITING_FOR_DATA_ERROR_MESSAGE) || error.message.toLowerCase().includes(STREAM_OFFLINE_ERROR_MESSAGE); | ||
const isAccessControlError = error => error.message.toLowerCase().includes(ACCESS_CONTROL_ERROR_MESSAGE); | ||
const isBframesError = error => error.message.toLowerCase().includes(BFRAMES_ERROR_MESSAGE); | ||
const isNotAcceptableError = error => error.message.toLowerCase().includes(NOT_ACCEPTABLE_ERROR_MESSAGE); | ||
@@ -35,2 +37,3 @@ exports.ACCESS_CONTROL_ERROR_MESSAGE = ACCESS_CONTROL_ERROR_MESSAGE; | ||
exports.HttpError = HttpError; | ||
exports.NOT_ACCEPTABLE_ERROR_MESSAGE = NOT_ACCEPTABLE_ERROR_MESSAGE; | ||
exports.STREAM_OFFLINE_ERROR_MESSAGE = STREAM_OFFLINE_ERROR_MESSAGE; | ||
@@ -41,2 +44,3 @@ exports.STREAM_OPEN_ERROR_MESSAGE = STREAM_OPEN_ERROR_MESSAGE; | ||
exports.isBframesError = isBframesError; | ||
exports.isNotAcceptableError = isNotAcceptableError; | ||
exports.isStreamOfflineError = isStreamOfflineError; |
@@ -23,6 +23,8 @@ /** | ||
const BFRAMES_ERROR_MESSAGE = 'metadata indicates that webrtc playback contains bframes'; | ||
const NOT_ACCEPTABLE_ERROR_MESSAGE = 'response indicates unacceptable playback protocol'; | ||
const isStreamOfflineError = error => error.message.toLowerCase().includes(STREAM_OPEN_ERROR_MESSAGE) || error.message.toLowerCase().includes(STREAM_WAITING_FOR_DATA_ERROR_MESSAGE) || error.message.toLowerCase().includes(STREAM_OFFLINE_ERROR_MESSAGE); | ||
const isAccessControlError = error => error.message.toLowerCase().includes(ACCESS_CONTROL_ERROR_MESSAGE); | ||
const isBframesError = error => error.message.toLowerCase().includes(BFRAMES_ERROR_MESSAGE); | ||
const isNotAcceptableError = error => error.message.toLowerCase().includes(NOT_ACCEPTABLE_ERROR_MESSAGE); | ||
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, STREAM_WAITING_FOR_DATA_ERROR_MESSAGE, isAccessControlError, isBframesError, isStreamOfflineError }; | ||
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, NOT_ACCEPTABLE_ERROR_MESSAGE, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, STREAM_WAITING_FOR_DATA_ERROR_MESSAGE, isAccessControlError, isBframesError, isNotAcceptableError, isStreamOfflineError }; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var errors_dist_livepeerCoreErrors = require('../../../errors/dist/livepeer-core-errors.cjs.dev.js'); | ||
var version = require('../../../dist/version-2081a2b0.cjs.dev.js'); | ||
var version = require('../../../dist/version-ebfa6be9.cjs.dev.js'); | ||
var provider = require('../../../dist/provider-56b1ec78.cjs.dev.js'); | ||
@@ -11,0 +11,0 @@ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var errors_dist_livepeerCoreErrors = require('../../../errors/dist/livepeer-core-errors.cjs.prod.js'); | ||
var version = require('../../../dist/version-8d2eb11b.cjs.prod.js'); | ||
var version = require('../../../dist/version-f2ee8234.cjs.prod.js'); | ||
var provider = require('../../../dist/provider-68cbe4e6.cjs.prod.js'); | ||
@@ -11,0 +11,0 @@ |
import * as tus from 'tus-js-client'; | ||
import fetch from 'cross-fetch'; | ||
import { HttpError } from '../../../errors/dist/livepeer-core-errors.esm.js'; | ||
import { v as version } from '../../../dist/version-c006be1a.esm.js'; | ||
import { v as version } from '../../../dist/version-140533b7.esm.js'; | ||
import { d as defaultStudioConfig } from '../../../dist/provider-a18dabb6.esm.js'; | ||
@@ -6,0 +6,0 @@ |
874678
34553