@eluvio/elv-client-js 3.2.29 → 3.2.31
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 +9 -0
- package/dist/ElvClient-min.js +5 -5
- package/dist/ElvClient-node-min.js +7 -7
- package/dist/ElvFrameClient-min.js +17 -10
- package/dist/ElvWalletClient-min.js +5 -5
- package/dist/ElvWalletClient-node-min.js +7 -7
- package/dist/src/FrameClient.js +5 -1
- package/package.json +1 -1
- package/src/FrameClient.js +5 -0
- package/src/walletClient/Configuration.js +2 -1
- package/testScripts/DraftFinalize.js +51 -0
- package/testScripts/OfferingEnsureStrongDrm.js +86 -0
- package/testScripts/abr_profile_4k_both.json +15 -6
- package/testScripts/abr_profile_4k_clear.json +14 -5
- package/testScripts/abr_profile_4k_drm.json +14 -5
- package/testScripts/abr_profile_both.json +10 -1
- package/testScripts/abr_profile_clear.json +10 -1
- package/testScripts/abr_profile_drm.json +10 -1
- package/utilities/WriteTokenDecode.js +36 -0
- package/utilities/example_files/abr_profile_4k_both.json +15 -6
- package/utilities/example_files/abr_profile_4k_clear.json +14 -5
- package/utilities/example_files/abr_profile_4k_drm.json +14 -5
- package/utilities/example_files/abr_profile_both.json +10 -1
- package/utilities/example_files/abr_profile_clear.json +3 -3
- package/utilities/example_files/abr_profile_clear_hls_only.json +3 -3
- package/utilities/example_files/abr_profile_drm.json +10 -1
- package/utilities/example_files/abr_profile_drm_hls_only.json +10 -1
- package/utilities/lib/concerns/Draft.js +9 -2
|
@@ -14,7 +14,16 @@
|
|
|
14
14
|
"{\"media_type\":\"audio\",\"channels\":2}": {
|
|
15
15
|
"rung_specs": [
|
|
16
16
|
{
|
|
17
|
-
"bit_rate":
|
|
17
|
+
"bit_rate": 192000,
|
|
18
|
+
"media_type": "audio",
|
|
19
|
+
"pregenerate": true
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"{\"media_type\":\"audio\",\"channels\":6}": {
|
|
24
|
+
"rung_specs": [
|
|
25
|
+
{
|
|
26
|
+
"bit_rate": 384000,
|
|
18
27
|
"media_type": "audio",
|
|
19
28
|
"pregenerate": true
|
|
20
29
|
}
|
|
@@ -14,7 +14,16 @@
|
|
|
14
14
|
"{\"media_type\":\"audio\",\"channels\":2}": {
|
|
15
15
|
"rung_specs": [
|
|
16
16
|
{
|
|
17
|
-
"bit_rate":
|
|
17
|
+
"bit_rate": 192000,
|
|
18
|
+
"media_type": "audio",
|
|
19
|
+
"pregenerate": true
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"{\"media_type\":\"audio\",\"channels\":6}": {
|
|
24
|
+
"rung_specs": [
|
|
25
|
+
{
|
|
26
|
+
"bit_rate": 384000,
|
|
18
27
|
"media_type": "audio",
|
|
19
28
|
"pregenerate": true
|
|
20
29
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// for scripts that work with Drafts (new unfinalized objects/versions)
|
|
2
2
|
const Client = require("./Client");
|
|
3
3
|
const Logger = require("./Logger");
|
|
4
|
+
const Utils = require("../../../src/Utils");
|
|
4
5
|
|
|
5
6
|
const blueprint = {
|
|
6
7
|
name: "Draft",
|
|
@@ -44,13 +45,19 @@ const New = context => {
|
|
|
44
45
|
};
|
|
45
46
|
};
|
|
46
47
|
|
|
48
|
+
const decode = ({writeToken}) => {
|
|
49
|
+
if(!writeToken) throw Error("Draft.decode() - missing writeToken");
|
|
50
|
+
return Utils.DecodeWriteToken(writeToken);
|
|
51
|
+
};
|
|
52
|
+
|
|
47
53
|
// instance interface
|
|
48
54
|
return {
|
|
49
|
-
create
|
|
55
|
+
create,
|
|
56
|
+
decode
|
|
50
57
|
};
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
module.exports = {
|
|
54
61
|
blueprint,
|
|
55
62
|
New
|
|
56
|
-
};
|
|
63
|
+
};
|