ezuikit-js 0.4.3 → 0.4.4
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/ezuikit.js +10 -8
- package/package.json +1 -1
package/ezuikit.js
CHANGED
|
@@ -29157,14 +29157,16 @@ class EZUIKitPlayer {
|
|
|
29157
29157
|
});
|
|
29158
29158
|
}
|
|
29159
29159
|
play(options) {
|
|
29160
|
-
if(
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
this.Theme.
|
|
29160
|
+
if(options) {
|
|
29161
|
+
if(typeof options.url === 'string') {
|
|
29162
|
+
this.url = options.url;
|
|
29163
|
+
}
|
|
29164
|
+
if(typeof options.accessToken === 'string') {
|
|
29165
|
+
this.accessToken = options.accessToken;
|
|
29166
|
+
}
|
|
29167
|
+
if(this.Theme && (typeof options.url === 'string' || typeof options.accessToken === 'string')) {
|
|
29168
|
+
this.Theme.getDeviceInfo();
|
|
29169
|
+
}
|
|
29168
29170
|
}
|
|
29169
29171
|
const promise = new Promise((resolve, reject) => {
|
|
29170
29172
|
this._getRealUrlPromise(this.accessToken, this.url)
|