mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
release: xgplayer@3.0.21-alpha.12
This commit is contained in:
parent
307e330e3e
commit
749d0d367c
@ -280,6 +280,7 @@ I18N.extend([
|
||||
window.player = null
|
||||
window.player1 = null
|
||||
function init(index = 0, config = {}) {
|
||||
console.log('>>>init')
|
||||
const p = `player${index}`
|
||||
if (window[p]) {
|
||||
window[p].destroy()
|
||||
@ -292,7 +293,7 @@ function init(index = 0, config = {}) {
|
||||
url: url
|
||||
}
|
||||
},
|
||||
url: "./heatmap.mp4",
|
||||
url: "https://mv-video-akamai.serealplus.com/202412252109/e80b646e59b1bd6c4508627f8581b6bb/prod/video/147756332186091520/EP01/2ced2650c7b98b01dd6103c3e481b37d-sd.mp4",
|
||||
pip: true,
|
||||
loop: false,
|
||||
autoplay: false,
|
||||
@ -339,6 +340,7 @@ function init(index = 0, config = {}) {
|
||||
},
|
||||
mobile: {
|
||||
// gestureX: false
|
||||
disablePress: false
|
||||
},
|
||||
// timeSegments: ,
|
||||
// timeSegmentsControls:{
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xgplayer",
|
||||
"version": "3.0.21-rc.9",
|
||||
"version": "3.0.21-alpha.12",
|
||||
"description": "video player",
|
||||
"main": "dist/index.min.js",
|
||||
"module": "es/index.js",
|
||||
@ -16,7 +16,7 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/",
|
||||
"access": "public",
|
||||
"tag": "rc"
|
||||
"tag": "alpha"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -145,7 +145,7 @@ class MobilePlugin extends Plugin {
|
||||
this.touch = new Touche(this.root, {
|
||||
eventType,
|
||||
needPreventDefault: !disableGesture,
|
||||
disablePress,
|
||||
disablePress
|
||||
})
|
||||
|
||||
this.root.addEventListener('contextmenu', e => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user