veplayer-mp-douyin
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -344,10 +344,10 @@ "use strict"; | ||
const { seeking } = this.data; | ||
const _data = { | ||
ended: true, | ||
paused: true | ||
}; | ||
if (seeking) { | ||
this.setData({ | ||
seeking: false | ||
}); | ||
_data.seeking = false; | ||
} | ||
this.setData({ | ||
ended: true | ||
}); | ||
this.setData(_data); | ||
this._emitEvt(index_1.MediaEvents.ENDED, e); | ||
@@ -354,0 +354,0 @@ }, |
@@ -50,3 +50,3 @@ "use strict"; | ||
} | ||
time = Math.round(time); | ||
time = Math.ceil(time); | ||
const hour = Math.floor(time / 3600); | ||
@@ -53,0 +53,0 @@ const minute = Math.floor((time - hour * 3600) / 60); |
{ | ||
"name": "veplayer-mp-douyin", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"license": "MIT", | ||
@@ -13,6 +13,8 @@ "miniprogramType": "tt-npm", | ||
"dist", | ||
"scripts", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"release": "npm version patch && npm publish --tag latest --registry=https://registry.npmjs.org" | ||
"release": "npm version patch && npm publish --tag latest --registry=https://registry.npmjs.org", | ||
"postinstall": "node ./scripts/postinstall.js" | ||
}, | ||
@@ -19,0 +21,0 @@ "main": "src/index.js", |
@@ -29,3 +29,3 @@ # Veplayer小程序播放器 | ||
⚠️注意由于抖音开发者工具(截止4.0.7-1版本)npm功能的缺陷,目前引用npm功能,需要手动将`node_modules`的`veplayer-mp-douyin`复制到`miniprogram_npm`内才可正常引入。 | ||
⚠️注意由于抖音开发者工具(截止4.0.7-1版本)npm功能的缺陷,目前引用npm功能,需要手动将`node_modules`的`veplayer-mp-douyin`复制到`components`内。 | ||
```json | ||
@@ -67,3 +67,3 @@ { | ||
> | ||
> - `playDomain`是调用火山引擎视频点播OpenAPI的接口地址,业务方如果做了该接口的代理,可以替换成业务方的地址。 | ||
> - `playDomain`是调用火山引擎视频点播OpenAPI的接口地址,业务方如果做了该接口的代理,可以替换成业务方的地址。使用正式appid调试时需要将该地址配置在小程序[服务器域名配置](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/basic-function/network/)白名单中。 | ||
> - `playAuthToken`是获取视频播放信息(包括播放地址,传入此项时不需要传入src)的临时凭证,由业务方服务端通过调用火山服务端SDK本地生成,具体生成参考[火山引擎视频点播文档](https://www.volcengine.com/docs/4/67350#%E6%9C%8D%E5%8A%A1%E7%AB%AF-sdk) | ||
@@ -70,0 +70,0 @@ ## [组件属性](#VideoProps) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71696
44
1406
1
2