@amazon/vinyl 1.1.0 → 1.1.1
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/README.md +49 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/test/integ.es5.js +1 -1
- package/dist/test/integ.js +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,11 +1,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @amazon/vinyl
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://amazonmusic.github.io/vinyl)
|
|
4
|
+
[](https://www.npmjs.com/package/@amazon/vinyl)
|
|
5
|
+
[](https://bundlejs.com/?q=@amazon/vinyl)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
An HTML5 playback engine for DASH and HLS streaming with first-class TypeScript
|
|
8
|
+
support, zero runtime dependencies, and adaptive bitrate, prefetching, and
|
|
9
|
+
gapless playback built in.
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
npm install @amazon/vinyl
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { createVinylPlayer } from '@amazon/vinyl'
|
|
21
|
+
|
|
22
|
+
const media = new Audio()
|
|
23
|
+
media.controls = true
|
|
24
|
+
document.body.appendChild(media)
|
|
25
|
+
|
|
26
|
+
const player = createVinylPlayer({ media })
|
|
27
|
+
player.load({
|
|
28
|
+
type: 'dash',
|
|
29
|
+
uri: 'https://example.com/manifest.mpd',
|
|
30
|
+
})
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Documentation
|
|
34
|
+
|
|
35
|
+
- [Usage Guide](./docs/USAGE.md) — installation, loading tracks, queueing,
|
|
36
|
+
prefetching, and configuration.
|
|
37
|
+
- [Architecture](./docs/ARCHITECTURE.md) — pipeline, controllers, and
|
|
38
|
+
extensibility.
|
|
39
|
+
- [DRM Configuration](./docs/DRM_CONFIGURATION.md) — Widevine, FairPlay, and
|
|
40
|
+
PlayReady setup.
|
|
41
|
+
- [DRM Controller](./docs/DRM_CONTROLLER.md) — implementing custom license
|
|
42
|
+
acquisition.
|
|
43
|
+
- [DASH Manifest Transforms](./docs/DASH_MANIFEST_TRANSFORM_GUIDE.md) —
|
|
44
|
+
rewriting manifests before parsing.
|
|
45
|
+
- [Auto Reset](./docs/AUTO_RESET.md) — recovering from terminal playback errors.
|
|
46
|
+
|
|
47
|
+
Browse the full docs and TypeDoc API reference at
|
|
48
|
+
[amazonmusic.github.io/vinyl](https://amazonmusic.github.io/vinyl).
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
Apache-2.0
|
package/dist/index.cjs
CHANGED
|
@@ -7533,7 +7533,7 @@ var import_vinyl_util91 = require("@amazon/vinyl-util");
|
|
|
7533
7533
|
var import_vinyl_util90 = require("@amazon/vinyl-util");
|
|
7534
7534
|
var vinylVersion = /* @__PURE__ */ (0, import_vinyl_util90.parseVersion)(
|
|
7535
7535
|
/* istanbul ignore next */
|
|
7536
|
-
"1.1.
|
|
7536
|
+
"1.1.1"
|
|
7537
7537
|
);
|
|
7538
7538
|
|
|
7539
7539
|
// src/global/globalRef.ts
|
package/dist/index.js
CHANGED
package/dist/test/integ.es5.js
CHANGED
|
@@ -1261,7 +1261,7 @@ function createVinylFactories(options){var _a3;var patches=mergeDeep([defaultPat
|
|
|
1261
1261
|
var locale13={maxPlayersWarning:"{count} Vinyl Players have been constructed without disposal. Check that player.dispose is properly being called, then increase the maxPlayersWarning option if this was intentional."};var DEFAULT_MAX_PLAYERS=5;var PlayerRegistryImpl=/*#__PURE__*/function(){function PlayerRegistryImpl(){var maxPlayersWarning=arguments.length>0&&arguments[0]!==undefined?arguments[0]:DEFAULT_MAX_PLAYERS;_classCallCheck(this,PlayerRegistryImpl);this.maxPlayersWarning=maxPlayersWarning;__publicField(this,"_players",[]);__publicField(this,"gaveMaxPlayersWarning",false)}return _createClass(PlayerRegistryImpl,[{key:"players",get:function get(){return this._players}},{key:"addPlayer",value:function addPlayer(player){this._players.push(player);var n=this._players.length;if(n>this.maxPlayersWarning&&!this.gaveMaxPlayersWarning){this.gaveMaxPlayersWarning=true;logWarn(globalTarget,substitute(locale13.maxPlayersWarning,{count:n}))}}},{key:"removePlayer",value:function removePlayer(player){remove(this._players,player)}/**
|
|
1262
1262
|
* @throws An IllegalStateError if all players have not been removed.
|
|
1263
1263
|
*/},{key:"dispose",value:function dispose(){if(this._players.length)throw new IllegalStateError("All players must be removed before disposing VinylGlobal")}}])}();var playerRegistryRef=globalRef(function(){return new PlayerRegistryImpl});// src/global/environment.ts
|
|
1264
|
-
var vinylVersion=parseVersion(/* istanbul ignore next */"1.1.
|
|
1264
|
+
var vinylVersion=parseVersion(/* istanbul ignore next */"1.1.1");// src/global/globalRef.ts
|
|
1265
1265
|
var VinylGlobal=/*#__PURE__*/function(){function VinylGlobal(){_classCallCheck(this,VinylGlobal)}return _createClass(VinylGlobal,[{key:"players",get:function get(){return playerRegistryRef.value.players}/**
|
|
1266
1266
|
* Returns the first player.
|
|
1267
1267
|
*/},{key:"player",get:function get(){return playerRegistryRef.value.players[0]}},{key:"logs",get:function get(){var _a3;return(_a3=historyLogHandler.value)==null?void 0:_a3.history}},{key:"version",get:function get(){return vinylVersion.str}},{key:"userAgentInfo",get:function get(){return getUserAgentInfo()}},{key:"network",get:function get(){return getNetworkMetrics()}/**
|
package/dist/test/integ.js
CHANGED
|
@@ -20903,7 +20903,7 @@ ${(_a3 = this.failedResult.failedExpectations[0]) == null ? void 0 : _a3.message
|
|
|
20903
20903
|
// src/global/environment.ts
|
|
20904
20904
|
var vinylVersion = parseVersion(
|
|
20905
20905
|
/* istanbul ignore next */
|
|
20906
|
-
"1.1.
|
|
20906
|
+
"1.1.1"
|
|
20907
20907
|
);
|
|
20908
20908
|
|
|
20909
20909
|
// src/global/globalRef.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amazon/vinyl",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "An HTML5 streaming media player",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
"watch:release": "tsx buildSrc/build.ts --watch --release"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@amazon/vinyl-build-utils": "^1.1.
|
|
94
|
+
"@amazon/vinyl-build-utils": "^1.1.1",
|
|
95
95
|
"commander": "^9.5.0"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@amazon/vinyl-di": "^1.1.
|
|
99
|
-
"@amazon/vinyl-hls-parser": "^1.1.
|
|
100
|
-
"@amazon/vinyl-mpd-parser": "^1.1.
|
|
101
|
-
"@amazon/vinyl-observable": "^1.1.
|
|
102
|
-
"@amazon/vinyl-transmux": "^1.1.
|
|
103
|
-
"@amazon/vinyl-util": "^1.1.
|
|
104
|
-
"@amazon/vinyl-validation": "^1.1.
|
|
98
|
+
"@amazon/vinyl-di": "^1.1.1",
|
|
99
|
+
"@amazon/vinyl-hls-parser": "^1.1.1",
|
|
100
|
+
"@amazon/vinyl-mpd-parser": "^1.1.1",
|
|
101
|
+
"@amazon/vinyl-observable": "^1.1.1",
|
|
102
|
+
"@amazon/vinyl-transmux": "^1.1.1",
|
|
103
|
+
"@amazon/vinyl-util": "^1.1.1",
|
|
104
|
+
"@amazon/vinyl-validation": "^1.1.1"
|
|
105
105
|
},
|
|
106
106
|
"browserslist": [
|
|
107
107
|
"defaults, chrome 52, firefox 54, edge 15, safari 8"
|
|
108
108
|
],
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "e5a3429d802564132b16808a5b8a8e15a023a548"
|
|
110
110
|
}
|