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