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

veplayer-mp-douyin

Package Overview
Dependencies
Maintainers
3
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 1.2.7-alpha.5 to 1.2.8-rc.0

CHANGELOG.md

8

dist/behaviors/interact_behavior.js

@@ -40,2 +40,6 @@ "use strict";

},
enableTapActive: {
type: Boolean,
value: true,
},
},

@@ -287,3 +291,3 @@ data: {

const { mode, loadedMeta, paused, ended, videoId, customControls, interactState, controls } = this.data;
const { enablePlayGesture, interactiveConfig } = this.properties;
const { enablePlayGesture, interactiveConfig, enableTapActive } = this.properties;
if (!customControls) {

@@ -304,3 +308,3 @@ return;

// 由外部交互的的时候关闭内部交互
if (controls !== "custom" /* ControlsStates.CUSTOM */ || !enablePlayGesture) {
if (controls !== "custom" /* ControlsStates.CUSTOM */ || !(customControls && enableTapActive)) {
return;

@@ -307,0 +311,0 @@ }

@@ -27,3 +27,3 @@ "use strict";

exports.PKG = 'douyin';
exports.VERSION = '1.2.7-alpha.5';
exports.VERSION = '1.2.8-rc.0';
/**

@@ -30,0 +30,0 @@ * 控制栏状态枚举

@@ -434,10 +434,9 @@ "use strict";

onTimeupdate(e) {
const { seeking, paused } = this.data;
const { seeking } = this.data;
const { currentTime, duration } = e.detail;
let ext = {};
if (this.isReplay && paused) {
ext = { paused: false };
this.isReplay = false;
}
const data = Object.assign({ currentTime: currentTime || 0, duration: duration || 0, playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0 }, ext);
const data = {
currentTime: currentTime || 0,
duration: duration || 0,
playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0,
};
if (seeking) {

@@ -463,3 +462,2 @@ // /* 开发工具中不会触发onSeekComplete */

};
this.isReplay = true;
if (seeking) {

@@ -466,0 +464,0 @@ _data.seeking = false;

@@ -5,3 +5,3 @@ "use strict";

/* eslint-disable @typescript-eslint/no-explicit-any */
const xgplayer_service_miniprogram_1 = require("xgplayer-service-miniprogram");
const xgplayer_service_miniprogram_1 = require("xgplayer-service-miniprogram/index.js");
const index_1 = require("../xgerror/index");

@@ -8,0 +8,0 @@ function serviceRequest(playAuthToken, playDomain) {

{
"name": "veplayer-mp-douyin",
"version": "1.2.7-alpha.5",
"version": "1.2.8-rc.0",
"license": "MIT",
"miniprogramType": "tt-npm",
"description": "小程序播放器抖音原生版",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"dist",
"README.md",
"postinstall.js"
],
"scripts": {
"release": "npm version patch && npm run build && npm publish --tag latest --registry=https://registry.npmjs.org",
"release:alpha": "npm version prerelease --preid=alpha && npm run build && npm publish --tag alpha --registry=https://registry.npmjs.org",
"build": "TRANSFORM_TYPE=douyin gulp -f ../../scripts/gulp.file.ts --cwd ../../packages/douyin/",
"postinstall": "node postinstall.js"
},
"main": "src/index.js",
"main": "./index.js",
"exports": {
"components": {
"veplayer": "dist/index"
"veplayer": "./index"
}

@@ -31,3 +16,13 @@ },

"xgplayer-service-miniprogram": "^0.5.0"
},
"devDependencies": {
"@byted/lux-core": "^1.3.0",
"@byted/lux-cli": "^1.2.3"
},
"scripts": {
"build": "TRANSFORM_TYPE=douyin gulp -f ../../scripts/gulp.file.ts --cwd .",
"postinstall": "node postinstall.js",
"postbuild": "lux release commit",
"version:rc": "lux version --preid rc"
}
}
}
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