Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

veplayer-mp-douyin

Package Overview
Dependencies
Maintainers
2
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

veplayer-mp-douyin - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

scripts/postinstall.js

12

dist/index.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc