@eluvio/elv-player-js 1.0.138 → 1.0.140
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/dist/5897e28fa3e8ac0a2fae.png +0 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +80 -0
- package/package.json +1 -1
- package/src/PlayerControls.js +1 -1
- package/src/index.js +3 -2
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* JavaScript Cookie v2.1.3
|
|
3
|
+
* https://github.com/js-cookie/js-cookie
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/*!
|
|
10
|
+
* The buffer module from node.js, for the browser.
|
|
11
|
+
*
|
|
12
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
13
|
+
* @license MIT
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/*!
|
|
17
|
+
* URI.js - Mutating URLs
|
|
18
|
+
*
|
|
19
|
+
* Version: 1.19.11
|
|
20
|
+
*
|
|
21
|
+
* Author: Rodney Rehm
|
|
22
|
+
* Web: http://medialize.github.io/URI.js/
|
|
23
|
+
*
|
|
24
|
+
* Licensed under
|
|
25
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/*!
|
|
30
|
+
* URI.js - Mutating URLs
|
|
31
|
+
* IPv6 Support
|
|
32
|
+
*
|
|
33
|
+
* Version: 1.19.11
|
|
34
|
+
*
|
|
35
|
+
* Author: Rodney Rehm
|
|
36
|
+
* Web: http://medialize.github.io/URI.js/
|
|
37
|
+
*
|
|
38
|
+
* Licensed under
|
|
39
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/*!
|
|
44
|
+
* URI.js - Mutating URLs
|
|
45
|
+
* Second Level Domain (SLD) Support
|
|
46
|
+
*
|
|
47
|
+
* Version: 1.19.11
|
|
48
|
+
*
|
|
49
|
+
* Author: Rodney Rehm
|
|
50
|
+
* Web: http://medialize.github.io/URI.js/
|
|
51
|
+
*
|
|
52
|
+
* Licensed under
|
|
53
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
* mux-embed
|
|
59
|
+
* @version 4.30.0
|
|
60
|
+
* @copyright 2023 Mux, Inc
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/*! For license information please see dash.all.min.js.LICENSE.txt */
|
|
64
|
+
|
|
65
|
+
/*! https://mths.be/punycode v1.4.0 by @mathias */
|
|
66
|
+
|
|
67
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
68
|
+
|
|
69
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
70
|
+
|
|
71
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
75
|
+
*
|
|
76
|
+
* @version 0.8.0
|
|
77
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
78
|
+
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
79
|
+
* @license MIT
|
|
80
|
+
*/
|
package/package.json
CHANGED
package/src/PlayerControls.js
CHANGED
|
@@ -179,7 +179,7 @@ export const InitializeTicketPrompt = async (target, initialCode, callback) => {
|
|
|
179
179
|
classes: ["eluvio-player__ticket-modal__form__input"]
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
input.value = initialCode;
|
|
182
|
+
input.value = initialCode || "";
|
|
183
183
|
|
|
184
184
|
const submit = CreateElement({
|
|
185
185
|
parent: form,
|
package/src/index.js
CHANGED
|
@@ -595,7 +595,7 @@ export class EluvioPlayer {
|
|
|
595
595
|
async LoadCollection() {
|
|
596
596
|
if(this.collectionInfo) { return; }
|
|
597
597
|
|
|
598
|
-
let {mediaCatalogObjectId, mediaCatalogVersionHash, collectionId} = (this.sourceOptions
|
|
598
|
+
let {mediaCatalogObjectId, mediaCatalogVersionHash, collectionId} = (this.sourceOptions || {}).mediaCollectionOptions || {};
|
|
599
599
|
|
|
600
600
|
if(!collectionId) { return; }
|
|
601
601
|
|
|
@@ -625,7 +625,8 @@ export class EluvioPlayer {
|
|
|
625
625
|
.filter(content => content.media)
|
|
626
626
|
.map(content => ({
|
|
627
627
|
...content,
|
|
628
|
-
mediaHash:
|
|
628
|
+
mediaHash:
|
|
629
|
+
((content.media || {})["/"] || "").split("/").find(segment => segment.startsWith("hq__"))
|
|
629
630
|
}));
|
|
630
631
|
|
|
631
632
|
this.collectionInfo = {
|