comein-player-web 0.1.5 → 0.1.6
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 +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +22 -8
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,9 +20,11 @@ const player = await createWebPlayer('#comein-player-web', {
|
|
|
20
20
|
page: 'room',
|
|
21
21
|
locale: 'zh-cn',
|
|
22
22
|
isBuild: false,
|
|
23
|
+
hideWebFullscreen: true,
|
|
24
|
+
hideFullscreen: false,
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
player.destroy();
|
|
26
28
|
```
|
|
27
29
|
|
|
28
|
-
`roadshowId`、`userInfo`、`page` 为必填参数。`userInfo` 只从初始化参数读取,SDK 不会从页面 URL 或浏览器缓存中自动补取。
|
|
30
|
+
`roadshowId`、`userInfo`、`page` 为必填参数。`hideWebFullscreen` 和 `hideFullscreen` 为可选参数,不传时使用 SDK 默认值。`userInfo` 只从初始化参数读取,SDK 不会从页面 URL 或浏览器缓存中自动补取。
|
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -106,6 +106,12 @@ function normalizeOptions(options = {}) {
|
|
|
106
106
|
...(options.player || {}),
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
|
+
if (typeof options.hideWebFullscreen === 'boolean') {
|
|
110
|
+
bridge.player.hideWebFullscreen = options.hideWebFullscreen;
|
|
111
|
+
}
|
|
112
|
+
if (typeof options.hideFullscreen === 'boolean') {
|
|
113
|
+
bridge.player.hideFullscreen = options.hideFullscreen;
|
|
114
|
+
}
|
|
109
115
|
normalized.bridge = bridge;
|
|
110
116
|
|
|
111
117
|
return normalized;
|
|
@@ -41146,12 +41152,20 @@ var _cof = function (it) {
|
|
|
41146
41152
|
return toString$3.call(it).slice(8, -1);
|
|
41147
41153
|
};
|
|
41148
41154
|
|
|
41149
|
-
|
|
41150
|
-
var
|
|
41151
|
-
|
|
41152
|
-
|
|
41153
|
-
|
|
41154
|
-
|
|
41155
|
+
var _iobject;
|
|
41156
|
+
var hasRequired_iobject;
|
|
41157
|
+
|
|
41158
|
+
function require_iobject () {
|
|
41159
|
+
if (hasRequired_iobject) return _iobject;
|
|
41160
|
+
hasRequired_iobject = 1;
|
|
41161
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
41162
|
+
var cof = _cof;
|
|
41163
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
41164
|
+
_iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
41165
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
41166
|
+
};
|
|
41167
|
+
return _iobject;
|
|
41168
|
+
}
|
|
41155
41169
|
|
|
41156
41170
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
41157
41171
|
var _defined = function (it) {
|
|
@@ -41160,7 +41174,7 @@ var _defined = function (it) {
|
|
|
41160
41174
|
};
|
|
41161
41175
|
|
|
41162
41176
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
41163
|
-
var IObject =
|
|
41177
|
+
var IObject = require_iobject();
|
|
41164
41178
|
var defined$2 = _defined;
|
|
41165
41179
|
var _toIobject = function (it) {
|
|
41166
41180
|
return IObject(defined$2(it));
|
|
@@ -41315,7 +41329,7 @@ function require_objectAssign () {
|
|
|
41315
41329
|
var gOPS = _objectGops;
|
|
41316
41330
|
var pIE = require_objectPie();
|
|
41317
41331
|
var toObject = _toObject;
|
|
41318
|
-
var IObject =
|
|
41332
|
+
var IObject = require_iobject();
|
|
41319
41333
|
var $assign = Object.assign;
|
|
41320
41334
|
|
|
41321
41335
|
// should work with symbols and should have deterministic property order (V8 bug)
|