p2p-media-loader-shaka
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -108,3 +108,3 @@ var __defProp = Object.defineProperty; | ||
this.debug(`Stream ${stream.id} is updated`); | ||
} catch (err) { | ||
} catch { | ||
} finally { | ||
@@ -272,3 +272,3 @@ if (!stream.isSegmentIndexAlreadyRead || !!((_b = this.player) == null ? void 0 : _b.isLive()) || !callFromCreateSegmentIndexMethod) { | ||
segmentReferences = [...segmentIndex]; | ||
} catch (err) { | ||
} catch { | ||
return; | ||
@@ -275,0 +275,0 @@ } |
@@ -64,5 +64,5 @@ var R = Object.defineProperty; | ||
try { | ||
const p = [...s], E = p[0], k = p[p.length - 1]; | ||
const f = [...s], E = f[0], k = f[f.length - 1]; | ||
if (E === a && k === h) return m; | ||
a = E, h = k, t.updateStreamSegments(e, p), e.isSegmentIndexAlreadyRead = !0, this.debug(`Stream ${e.id} is updated`); | ||
a = E, h = k, t.updateStreamSegments(e, f), e.isSegmentIndexAlreadyRead = !0, this.debug(`Stream ${e.id} is updated`); | ||
} catch { | ||
@@ -267,3 +267,3 @@ } finally { | ||
} | ||
class f { | ||
class p { | ||
constructor(e, t = window.shaka) { | ||
@@ -354,6 +354,6 @@ g(this, "player"); | ||
static registerPlugins(e = window.shaka) { | ||
S(e), f.registerManifestParsers(e), f.registerNetworkingEngineSchemes(e); | ||
S(e), p.registerManifestParsers(e), p.registerNetworkingEngineSchemes(e); | ||
} | ||
static unregisterPlugins(e = window.shaka) { | ||
S(e), f.unregisterManifestParsers(e), f.unregisterNetworkingEngineSchemes(e); | ||
S(e), p.unregisterManifestParsers(e), p.unregisterNetworkingEngineSchemes(e); | ||
} | ||
@@ -365,4 +365,4 @@ } | ||
export { | ||
f as ShakaP2PEngine | ||
p as ShakaP2PEngine | ||
}; | ||
//# sourceMappingURL=p2p-media-loader-shaka.es.min.js.map |
import "shaka-player/dist/shaka-player.compiled.d.ts"; | ||
import { CoreConfig, CoreEventMap, DynamicCoreConfig } from "p2p-media-loader-core"; | ||
import { CoreConfig, CoreEventMap, DynamicCoreConfig, DefinedCoreConfig } from "p2p-media-loader-core"; | ||
/** Type for specifying dynamic configuration options that can be changed at runtime for the P2P engine's core. */ | ||
@@ -10,4 +10,4 @@ export type DynamicShakaP2PEngineConfig = { | ||
export type ShakaP2PEngineConfig = { | ||
/** Core config */ | ||
core: CoreConfig; | ||
/** Complete core configuration settings. */ | ||
core: DefinedCoreConfig; | ||
}; | ||
@@ -14,0 +14,0 @@ /** Allows for partial configuration settings for the Shaka P2P Engine. */ |
@@ -132,3 +132,3 @@ import { debug } from "p2p-media-loader-core"; | ||
} | ||
catch (err) { | ||
catch { | ||
// This catch is intentionally left blank. | ||
@@ -135,0 +135,0 @@ // [...segmentIndex] throws an error when segmentIndex inner array is empty |
@@ -43,3 +43,3 @@ import * as Utils from "./stream-utils.js"; | ||
} | ||
catch (err) { | ||
catch { | ||
return; | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "p2p-media-loader-shaka", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "P2P Media Loader Shaka Player integration", | ||
@@ -39,7 +39,7 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"p2p-media-loader-core": "1.0.4" | ||
"p2p-media-loader-core": "1.0.5" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"shaka-player": "^4.10.0" | ||
"shaka-player": "^4.10.9" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
@@ -20,4 +20,5 @@ # P2P Media Loader | ||
## Useful links | ||
## Documentation and important links | ||
- [API documentation](https://novage.github.io/p2p-media-loader/docs/v1.0/) | ||
- [P2P development, support & consulting](https://novage.com.ua/) | ||
@@ -28,3 +29,2 @@ - [Demo](http://novage.com.ua/p2p-media-loader/demo.html) | ||
- [Technical overview](http://novage.com.ua/p2p-media-loader/technical-overview.html) | ||
- [API documentation](https://novage.github.io/p2p-media-loader/docs/v1.0/) | ||
- npm packages | ||
@@ -31,0 +31,0 @@ - [Core](https://npmjs.com/package/p2p-media-loader-core) |
@@ -21,2 +21,3 @@ import "shaka-player/dist/shaka-player.compiled.d.ts"; | ||
DynamicCoreConfig, | ||
DefinedCoreConfig, | ||
} from "p2p-media-loader-core"; | ||
@@ -32,4 +33,4 @@ | ||
export type ShakaP2PEngineConfig = { | ||
/** Core config */ | ||
core: CoreConfig; | ||
/** Complete core configuration settings. */ | ||
core: DefinedCoreConfig; | ||
}; | ||
@@ -36,0 +37,0 @@ |
@@ -156,3 +156,3 @@ import { SegmentManager } from "./segment-manager.js"; | ||
this.debug(`Stream ${stream.id} is updated`); | ||
} catch (err) { | ||
} catch { | ||
// This catch is intentionally left blank. | ||
@@ -159,0 +159,0 @@ // [...segmentIndex] throws an error when segmentIndex inner array is empty |
@@ -46,3 +46,3 @@ import * as Utils from "./stream-utils.js"; | ||
segmentReferences = [...segmentIndex]; | ||
} catch (err) { | ||
} catch { | ||
return; | ||
@@ -49,0 +49,0 @@ } |
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
258895
3140
+ Addedp2p-media-loader-core@1.0.5(transitive)
- Removedp2p-media-loader-core@1.0.4(transitive)
Updatedp2p-media-loader-core@1.0.5