@shijiu/jsview-vue 2.3.151-test.0 → 3.0.0-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/browser/BrowserAudio.mjs +200 -0
- package/bin/browser/BrowserJsvLatex.mjs +61 -0
- package/bin/export-sfc.mjs +8 -9
- package/bin/jsview-vue-common.mjs +9 -35
- package/bin/jsview-vue.mjs +22246 -23643
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +9 -71
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +10 -7
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +19 -178
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +19 -178
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +24 -3
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +9 -47
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +40 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +6 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +140 -7
- package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +12 -11
- package/bin/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +10 -10
- package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +204 -17
- package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +11 -11
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.ts +11 -11
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +75 -12
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +88 -13
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +5 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +39 -12
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +120 -17
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +108 -29
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +8 -7
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +614 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +36 -34
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +89 -30
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +89 -30
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +11 -11
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/DebugTool.d.ts +1 -1
- package/bin/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +7 -7
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +3 -3
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/index.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +10 -98
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +10 -114
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +20 -61
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +44 -13
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +12 -11
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +5 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +16 -10
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +21 -17
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +19 -16
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +7 -7
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +12 -66
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +73 -12
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +59 -10
- package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +41 -81
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +17 -100
- package/bin/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +13 -50
- package/bin/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +50 -70
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +32 -68
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +57 -74
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +41 -71
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +83 -14
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +79 -83
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +70 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +20 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +108 -5
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +88 -3
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +6 -1
- package/bin/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +19 -18
- package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +34 -11
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +193 -6
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +54 -11
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +89 -11
- package/bin/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +9 -8
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +2 -2
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +170 -138
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +5 -5
- package/bin/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +48 -72
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +139 -20
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +56 -8
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +20 -11
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +63 -11
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +8 -7
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +95 -12
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +2 -2
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +51 -78
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +5 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +84 -193
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +23 -148
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +56 -9
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +22 -67
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +44 -10
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +47 -14
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +26 -67
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +7 -6
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +147 -109
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +173 -16
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +216 -139
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +7 -6
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +101 -96
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +89 -74
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +21 -20
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +43 -70
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +6 -5
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +62 -82
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +95 -74
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +51 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +105 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +51 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +105 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +5 -3
- package/package.json +2 -2
- package/tools/jsview-vue-build.mjs +13 -9
- package/tsconfig.json +2 -2
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +183 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +269 -122
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +989 -357
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
- package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
- package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
- package/utils/JsViewEngineWidget/RectUtils.js +1 -1
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +50 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +342 -174
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +12 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +54 -12
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +15 -2
- package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
- package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
- package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
- package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
- package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
- package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
- package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
- package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
- package/utils/JsViewVueTools/BlobApi.ts +55 -0
- package/utils/JsViewVueTools/FeatureActive.ts +3 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +25 -18
- package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
- package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
- package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
- package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
- package/utils/JsViewVueTools/index.js +3 -1
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +11 -2
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +1 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +242 -25
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +11 -5
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +118 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +56 -14
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +2 -1
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
- package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
- package/utils/JsViewVueWidget/JsvNinePatch.vue +13 -8
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +25 -3
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +0 -3
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
- package/utils/JsViewVueWidget/index.js +6 -2
- package/bin/browser/BrowserAudio.vue.mjs +0 -258
- package/bin/browser/BrowserJsvLatex.vue.mjs +0 -145
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.ts +0 -10
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +0 -78
- package/bin/types/utils/JsViewVueWidget/JsvPosterDiv.vue.d.ts +0 -63
- package/bin/types/utils/JsViewVueWidget/JsvPosterImage.vue.d.ts +0 -78
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -1,501 +1,396 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
findMediaObjectByKey,
|
|
6
|
-
logDebug,
|
|
7
|
-
} from "./JsvMedia";
|
|
8
|
-
import { JsvNativeSharedDiv } from "../../JsViewVueWidget";
|
|
2
|
+
import {JsvMediaVideo, JsvMediaAudio, findMediaObjectByKey, logDebug} from './JsvMedia.js'
|
|
3
|
+
import {JsvNativeSharedDiv} from 'jsview'
|
|
4
|
+
export * from "./JsvMedia.js"
|
|
9
5
|
|
|
10
6
|
export default {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return {};
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
/**
|
|
190
|
-
* 回调函数,正常播放后触发。
|
|
191
|
-
*/
|
|
192
|
-
onPlaying: {
|
|
193
|
-
type: Function,
|
|
194
|
-
default: () => {
|
|
195
|
-
return {};
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
/**
|
|
199
|
-
* 回调函数,正常显示后触发此事件。
|
|
200
|
-
*/
|
|
201
|
-
onCanPlay: {
|
|
202
|
-
type: Function,
|
|
203
|
-
default: () => {
|
|
204
|
-
return {};
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
/**
|
|
208
|
-
* 回调函数,音频失去焦点后触发此事件,可能会导致pause(点播)或者离开频道(直播)。
|
|
209
|
-
*/
|
|
210
|
-
onAudioFocusLoss: {
|
|
211
|
-
type: Function,
|
|
212
|
-
default: () => {
|
|
213
|
-
return {};
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
/**
|
|
217
|
-
* 回调函数,音频获取焦点后触发此事件,可能会触发resume(点播)或者加入频道(直播)。
|
|
218
|
-
*/
|
|
219
|
-
onAudioFocusGain: {
|
|
220
|
-
type: Function,
|
|
221
|
-
default: () => {
|
|
222
|
-
return {};
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
/**
|
|
226
|
-
* 回调函数,直播进入时移状态时,触发此事件。
|
|
227
|
-
*/
|
|
228
|
-
onTimeShift: {
|
|
229
|
-
type: Function,
|
|
230
|
-
default: () => {
|
|
231
|
-
return {};
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
/**
|
|
235
|
-
* 回调函数,直播进入时移状态时,成功播放触发此事件。
|
|
236
|
-
*/
|
|
237
|
-
onTimeShifted: {
|
|
238
|
-
type: Function,
|
|
239
|
-
default: () => {
|
|
240
|
-
return {};
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
/**
|
|
244
|
-
* 回调函数,时移回到直播状态,触发此事件。
|
|
245
|
-
*/
|
|
246
|
-
onBackLive: {
|
|
247
|
-
type: Function,
|
|
248
|
-
default: () => {
|
|
249
|
-
return {};
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
/**
|
|
253
|
-
* 回调函数,时移回到直播状态时,成功播放触发此事件。
|
|
254
|
-
*/
|
|
255
|
-
onBackLived: {
|
|
256
|
-
type: Function,
|
|
257
|
-
default: () => {
|
|
258
|
-
return {};
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
/**
|
|
262
|
-
* 属性,Object类型,设置窗口属性,同其他组件的style设置。
|
|
263
|
-
*/
|
|
264
|
-
style: {
|
|
265
|
-
type: Object,
|
|
266
|
-
default: () => {
|
|
267
|
-
return {};
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
/**
|
|
271
|
-
* 属性,Boolean类型,活跃状态,当多个JsvPlayer组件指向一个video对象时,只能有一个处于活跃状态。
|
|
272
|
-
* 视频显示在活跃JsvPlayer设置的显示区域内,事件通知也只会送给活跃的JsvPlayer组件注册的回调函数。
|
|
273
|
-
*/
|
|
274
|
-
active: { type: Boolean, default: true },
|
|
275
|
-
corner: { type: Number, default: 0 },
|
|
276
|
-
},
|
|
277
|
-
components: {
|
|
278
|
-
JsvNativeSharedDiv,
|
|
279
|
-
},
|
|
280
|
-
watch: {
|
|
281
|
-
active(newValue) {
|
|
282
|
-
logDebug("active newValue: " + newValue);
|
|
283
|
-
if (this.video && this.playerType !== 3) {
|
|
284
|
-
if (newValue) {
|
|
285
|
-
this.registerEvent();
|
|
286
|
-
this.video.setHoleID(this.holeId);
|
|
287
|
-
this.holeStyle = {
|
|
288
|
-
left: 0,
|
|
289
|
-
top: 0,
|
|
290
|
-
width: this.style.width,
|
|
291
|
-
height: this.style.height,
|
|
292
|
-
};
|
|
293
|
-
} else {
|
|
294
|
-
this.holeStyle = {
|
|
295
|
-
left: 0,
|
|
296
|
-
top: 0,
|
|
297
|
-
width: 0,
|
|
298
|
-
height: 0,
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
style(newValue) {
|
|
304
|
-
logDebug(
|
|
305
|
-
"holeStyle newValue: left=" +
|
|
306
|
-
newValue.left +
|
|
307
|
-
", top=" +
|
|
308
|
-
newValue.top +
|
|
309
|
-
", width=" +
|
|
310
|
-
newValue.width +
|
|
311
|
-
", height=" +
|
|
312
|
-
newValue.height
|
|
313
|
-
);
|
|
314
|
-
if (this.active && this.playerType !== 3) {
|
|
315
|
-
this.holeStyle = {
|
|
316
|
-
left: 0,
|
|
317
|
-
top: 0,
|
|
318
|
-
width: newValue.width,
|
|
319
|
-
height: newValue.height,
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
keepLastFrame(newValue) {
|
|
324
|
-
logDebug("keepLastFrame newValue: " + newValue);
|
|
325
|
-
if (this.video && this.active) {
|
|
326
|
-
this.video.keepLastFrame = this.keepLastFrame;
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
},
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* 回调函数,播放器对象通知接口
|
|
10
|
+
* @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
|
|
11
|
+
*/
|
|
12
|
+
onRef: { type: Function, default: () => {} },
|
|
13
|
+
/**
|
|
14
|
+
* 属性,Boolean类型,true表示自动播放,默认false。
|
|
15
|
+
*/
|
|
16
|
+
autoplay: { type: Boolean, default: false },
|
|
17
|
+
/**
|
|
18
|
+
* 属性,String类型,播放器实例索引,同样的key使用同一个播放器实例。
|
|
19
|
+
*/
|
|
20
|
+
playerKey: { type: String, default: null},
|
|
21
|
+
/**
|
|
22
|
+
* 属性,String类型,播放器窗口模式,默认resizable模式。
|
|
23
|
+
* full:观影模式,全屏方式,不建议修改w/h/l/t,视频清晰度/流畅度最佳;
|
|
24
|
+
* resizable:可变窗口模式,可以随意修改w/h/l/t,支持动画效果,视频清晰度/流畅度表现可能不如full模式;
|
|
25
|
+
* pip:画中画模式,只在支持多路硬解的情况下使用,用户画中画的小窗播放,对清晰度/流畅度要求较差,可能会有反交错问题。
|
|
26
|
+
*/
|
|
27
|
+
windowMode: {type: String, default: "resizable"},
|
|
28
|
+
/**
|
|
29
|
+
* 属性,int类型,底层使用的播放器类型。1:系统播放器;2:jsv视频播放器;3:jsv音频播放器;4:jsv短视频播放器。默认2。
|
|
30
|
+
*/
|
|
31
|
+
playerType: {type: Number, default: 2},
|
|
32
|
+
/**
|
|
33
|
+
* 属性,int类型,播放器解码方式。0:根据硬件能力自动匹配;1:硬解码;2:软解码。默认0(根据芯片能力自动匹配)。
|
|
34
|
+
*/
|
|
35
|
+
decodeType: {type: Number, default: 0},
|
|
36
|
+
/**
|
|
37
|
+
* 属性,Boolean类型,层级关系,true表示在界面的下面,false表示在界面上面,默认true。
|
|
38
|
+
*/
|
|
39
|
+
background: {type: Boolean, default: true},
|
|
40
|
+
/**
|
|
41
|
+
* 属性,Boolean类型,true表示静音,默认false。
|
|
42
|
+
*/
|
|
43
|
+
muted: {type: Boolean, default: false},
|
|
44
|
+
/**
|
|
45
|
+
* 属性,Boolean类型,true表示循环播放,默认false。
|
|
46
|
+
*/
|
|
47
|
+
loop:{type: Boolean, default: false},
|
|
48
|
+
/**
|
|
49
|
+
* 属性,String类型,播放地址。
|
|
50
|
+
*/
|
|
51
|
+
src: {type: String, default: ""},
|
|
52
|
+
/**
|
|
53
|
+
* 属性,Double类型,起播时间,0-duration。
|
|
54
|
+
*/
|
|
55
|
+
currentTime: { type: Number, default: 0},
|
|
56
|
+
/**
|
|
57
|
+
* 属性,Boolean类型,是否保留最后一帧,true保留,false不保留。
|
|
58
|
+
*/
|
|
59
|
+
keepLastFrame: {type: Boolean, default: true},
|
|
60
|
+
/**
|
|
61
|
+
* 属性,String类型,视频显示比例,origin原始比例显示,full全屏显示,x:y按照指定比例显示。
|
|
62
|
+
*/
|
|
63
|
+
videoAspectRatio: {type: String, default: "origin"},
|
|
64
|
+
/**
|
|
65
|
+
* 属性,String类型,色度抠像参数,包含color,colorDistance,edgeDistance,greenOffset四个参数,
|
|
66
|
+
* 参考格式:{color: 0x30FF30, colorDistance: 0.15, edgeDistance: 0.4, greenOffset: 0.05}
|
|
67
|
+
* color,色值,int类型,为抠图色值范围的中心点,格式为0xRRGGBB。
|
|
68
|
+
* colorDistance,float类型,色域范围,范围0-1.0。
|
|
69
|
+
* edgeDistance,float类型,alpha透明度距离,范围colorDistance-1.0,从colorDistance到edgeDistance的alpha值从1.0-0线性递减。
|
|
70
|
+
* greenOffset,float类型,红蓝差值,范围0-1.0。
|
|
71
|
+
* 目前只支持扣绿。
|
|
72
|
+
*/
|
|
73
|
+
chromaKey: {type: String, default: ""},
|
|
74
|
+
/**
|
|
75
|
+
* 回调函数,播放结束时通过此回调接口通知。
|
|
76
|
+
*/
|
|
77
|
+
onEnded: {type: Function, default: ()=>{return{}}},
|
|
78
|
+
/**
|
|
79
|
+
* 回调函数,播放错误时通过此接口通知。
|
|
80
|
+
* @param {int} 错误类型,当前定义了四种错误。1是异常中断;2是网络错误;3是解码错误;4是格式不支持。
|
|
81
|
+
*/
|
|
82
|
+
onError: {type: Function, default: ()=>{return{}}},
|
|
83
|
+
// onAbort: {type: Function, default: ()=>{return{}}},
|
|
84
|
+
/**
|
|
85
|
+
* 回调函数,当正常播放时,每0.5秒上报一次,回调接口里会带上当前时间,也可以使用video对象的currentTime属性去获取当前时间。
|
|
86
|
+
* @param {Long} 当前播放时间,单位秒。
|
|
87
|
+
*/
|
|
88
|
+
onTimeUpdate: {type: Function, default: ()=>{return{}}},
|
|
89
|
+
/**
|
|
90
|
+
* 回调函数,开始加载,设置完播放地址后,上报此事件。
|
|
91
|
+
*/
|
|
92
|
+
onLoadStart: {type: Function, default: ()=>{return{}}},
|
|
93
|
+
/**
|
|
94
|
+
* 回调函数,开始正常播放,同一个播放地址仅触发一次。
|
|
95
|
+
*/
|
|
96
|
+
onCanPlayThrough: {type: Function, default: ()=>{return{}}},
|
|
97
|
+
/**
|
|
98
|
+
* 回调函数,正常下载,duration不变的情况下只触发一次。
|
|
99
|
+
*/
|
|
100
|
+
onProgress: {type: Function, default: ()=>{return{}}},
|
|
101
|
+
/**
|
|
102
|
+
* 回调函数,视频准备好后触发。
|
|
103
|
+
*/
|
|
104
|
+
onLoadedMetaData: {type: Function, default: ()=>{return{}}},
|
|
105
|
+
/**
|
|
106
|
+
* 回调函数,视频准备好后触发,这个时候可以正常seek。
|
|
107
|
+
*/
|
|
108
|
+
onLoad: {type: Function, default: ()=>{return{}}},
|
|
109
|
+
/**
|
|
110
|
+
* 回调函数,视频准备好后触发,这个时候可以获取duration。
|
|
111
|
+
*/
|
|
112
|
+
onDurationChange: {type: Function, default: ()=>{return{}}},
|
|
113
|
+
/**
|
|
114
|
+
* 回调函数,视频准备好后,seek(修改currentTime)会出发此事件。
|
|
115
|
+
*/
|
|
116
|
+
onSeeking: {type: Function, default: ()=>{return{}}},
|
|
117
|
+
/**
|
|
118
|
+
* 回调函数,seek完成后触发此事件。
|
|
119
|
+
*/
|
|
120
|
+
onSeeked: {type: Function, default: ()=>{return{}}},
|
|
121
|
+
/**
|
|
122
|
+
* 回调函数,缓冲时触发。
|
|
123
|
+
*/
|
|
124
|
+
onStalled: {type: Function, default: ()=>{return{}}},
|
|
125
|
+
/**
|
|
126
|
+
* 回调函数,正常播放后触发。
|
|
127
|
+
*/
|
|
128
|
+
onPlaying: {type: Function, default: ()=>{return{}}},
|
|
129
|
+
/**
|
|
130
|
+
* 回调函数,正常显示后触发此事件。
|
|
131
|
+
*/
|
|
132
|
+
onCanPlay: {type: Function, default: ()=>{return{}}},
|
|
133
|
+
/**
|
|
134
|
+
* 回调函数,音频失去焦点后触发此事件,可能会导致pause(点播)或者离开频道(直播)。
|
|
135
|
+
*/
|
|
136
|
+
onAudioFocusLoss: {type: Function, default: ()=>{return{}}},
|
|
137
|
+
/**
|
|
138
|
+
* 回调函数,音频获取焦点后触发此事件,可能会触发resume(点播)或者加入频道(直播)。
|
|
139
|
+
*/
|
|
140
|
+
onAudioFocusGain: {type: Function, default: ()=>{return{}}},
|
|
141
|
+
/**
|
|
142
|
+
* 回调函数,直播进入时移状态时,触发此事件。
|
|
143
|
+
*/
|
|
144
|
+
onTimeShift: {type: Function, default: ()=>{return{}}},
|
|
145
|
+
/**
|
|
146
|
+
* 回调函数,直播进入时移状态时,成功播放触发此事件。
|
|
147
|
+
*/
|
|
148
|
+
onTimeShifted: {type: Function, default: ()=>{return{}}},
|
|
149
|
+
/**
|
|
150
|
+
* 回调函数,时移回到直播状态,触发此事件。
|
|
151
|
+
*/
|
|
152
|
+
onBackLive: {type: Function, default: ()=>{return{}}},
|
|
153
|
+
/**
|
|
154
|
+
* 回调函数,时移回到直播状态时,成功播放触发此事件。
|
|
155
|
+
*/
|
|
156
|
+
onBackLived: {type: Function, default: ()=>{return{}}},
|
|
157
|
+
/**
|
|
158
|
+
* 回调函数,当流播放错误时,重试的时候发送此事件,用于上报log使用。
|
|
159
|
+
*/
|
|
160
|
+
onStreamChanged: {type: Function, default: ()=>{return{}}},
|
|
161
|
+
/**
|
|
162
|
+
* 回调函数,当短视频修改播放地址,真正执行修改动作时,触发此事件。
|
|
163
|
+
*/
|
|
164
|
+
onChangeUrlComplete: {type: Function, default: ()=>{return {}}},
|
|
165
|
+
/**
|
|
166
|
+
* 回调函数,当短视频修改播放地址,开始起播时,触发此事件。
|
|
167
|
+
*/
|
|
168
|
+
onChangeUrlRenderStart: {type: Function, default: ()=>{return {}}},
|
|
169
|
+
/**
|
|
170
|
+
* 回调函数,当短视频修改播放地址,开始起播时,触发此事件。
|
|
171
|
+
*/
|
|
172
|
+
onSizeChangeError: {type: Function, default: ()=>{return {}}},
|
|
173
|
+
/**
|
|
174
|
+
* 属性,Object类型,设置窗口属性,同其他组件的style设置。
|
|
175
|
+
*/
|
|
176
|
+
style: {type: Object, default: ()=>{return{}}},
|
|
177
|
+
/**
|
|
178
|
+
* 属性,Boolean类型,活跃状态,当多个JsvPlayer组件指向一个video对象时,只能有一个处于活跃状态。
|
|
179
|
+
* 视频显示在活跃JsvPlayer设置的显示区域内,事件通知也只会送给活跃的JsvPlayer组件注册的回调函数。
|
|
180
|
+
*/
|
|
181
|
+
active:{type: Boolean, default: true},
|
|
330
182
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
};
|
|
336
|
-
},
|
|
183
|
+
/**
|
|
184
|
+
* 属性,int类型,设置圆角属性。
|
|
185
|
+
*/
|
|
186
|
+
cornerRadius: {type: Number, default: 0},
|
|
337
187
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
188
|
+
oversize: {type: Number, default: 0},
|
|
189
|
+
},
|
|
190
|
+
components: {
|
|
191
|
+
JsvNativeSharedDiv
|
|
192
|
+
},
|
|
193
|
+
watch: {
|
|
194
|
+
active(newValue) {
|
|
195
|
+
logDebug("active newValue: "+newValue);
|
|
196
|
+
if(this.video && this.playerType !== 3){
|
|
197
|
+
if(newValue){
|
|
198
|
+
this.registerEvent();
|
|
199
|
+
this.video.setHoleID(this.holeId);
|
|
200
|
+
this.holeStyle = {
|
|
201
|
+
left: 0, top: 0,
|
|
202
|
+
width: this.style.width, height: this.style.height
|
|
203
|
+
};
|
|
204
|
+
}else{
|
|
205
|
+
this.holeStyle = {
|
|
206
|
+
left: 0, top: 0,
|
|
207
|
+
width: 0, height: 0
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
style(newValue){
|
|
213
|
+
logDebug("holeStyle newValue: left="+newValue.left+", top="+newValue.top+", width="+newValue.width+", height="+newValue.height);
|
|
214
|
+
if(this.active && this.playerType !== 3){
|
|
215
|
+
this.holeStyle = {
|
|
216
|
+
left: 0, top: 0,
|
|
217
|
+
width:newValue.width, height:newValue.height
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
keepLastFrame(newValue){
|
|
222
|
+
logDebug("keepLastFrame newValue: "+newValue);
|
|
223
|
+
if(this.video && this.active){
|
|
224
|
+
this.video.keepLastFrame = this.keepLastFrame;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
346
228
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
229
|
+
setup(){
|
|
230
|
+
return {
|
|
231
|
+
video: null,
|
|
232
|
+
holeId: "",
|
|
233
|
+
};
|
|
234
|
+
},
|
|
352
235
|
|
|
353
|
-
|
|
354
|
-
|
|
236
|
+
data() {
|
|
237
|
+
return {
|
|
238
|
+
holeStyle: {},
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
created() {
|
|
242
|
+
},
|
|
243
|
+
mounted() {
|
|
244
|
+
logDebug("JsvPlayer:",this.style)
|
|
245
|
+
|
|
246
|
+
let key = "Jsv_" + Math.floor(Math.random() * 10000);
|
|
247
|
+
if(this.playerKey){
|
|
248
|
+
key = this.playerKey;
|
|
249
|
+
}
|
|
250
|
+
logDebug("player key:"+key)
|
|
355
251
|
|
|
356
|
-
|
|
357
|
-
|
|
252
|
+
let player_type = 2;
|
|
253
|
+
if(this.playerType)
|
|
254
|
+
player_type = this.playerType;
|
|
358
255
|
|
|
359
|
-
|
|
256
|
+
let background = true;
|
|
257
|
+
if(!this.background)
|
|
258
|
+
background = this.background;
|
|
360
259
|
|
|
361
|
-
|
|
362
|
-
logDebug("JsvPlayer:", this.holeId);
|
|
260
|
+
logDebug("JsvPlayer background:"+background)
|
|
363
261
|
|
|
364
|
-
|
|
365
|
-
|
|
262
|
+
const designMap = window.Forge.DesignMap();
|
|
263
|
+
logDebug("JsvPlayer:", this.holeId)
|
|
366
264
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
this.video = new JsvMediaAudio(key, designMap.width);
|
|
370
|
-
} else {
|
|
371
|
-
this.video = new JsvMediaVideo(
|
|
372
|
-
this.holeId,
|
|
373
|
-
this.windowMode,
|
|
374
|
-
player_type,
|
|
375
|
-
key,
|
|
376
|
-
background,
|
|
377
|
-
designMap.width,
|
|
378
|
-
this.decodeType
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
} else {
|
|
382
|
-
this.video.setRef();
|
|
383
|
-
first_create = false;
|
|
384
|
-
}
|
|
265
|
+
this.video = findMediaObjectByKey(key);
|
|
266
|
+
let first_create = true;
|
|
385
267
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
268
|
+
if(!this.video){
|
|
269
|
+
if(player_type === 3){
|
|
270
|
+
this.video = new JsvMediaAudio(key, designMap.width);
|
|
271
|
+
}else{
|
|
272
|
+
this.video = new JsvMediaVideo(this.holeId, this.windowMode, player_type, key, background, designMap.width, this.decodeType);
|
|
273
|
+
}
|
|
274
|
+
}else{
|
|
275
|
+
this.video.setRef();
|
|
276
|
+
first_create = false;
|
|
277
|
+
}
|
|
389
278
|
|
|
390
|
-
|
|
391
|
-
|
|
279
|
+
if(this.video != null){
|
|
280
|
+
if(this.active){
|
|
281
|
+
this.registerEvent();
|
|
392
282
|
|
|
393
|
-
|
|
283
|
+
//if(first_create){
|
|
284
|
+
if(this.src && this.src !== "")
|
|
285
|
+
this.video.src = this.src;
|
|
286
|
+
|
|
287
|
+
if(this.currentTime !== 0)
|
|
288
|
+
this.video.currentTime = this.currentTime;
|
|
394
289
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
290
|
+
if(this.autoplay){
|
|
291
|
+
this.video.autoplay = this.autoplay;
|
|
292
|
+
}
|
|
398
293
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
294
|
+
if(this.muted){
|
|
295
|
+
this.video.muted = this.muted;
|
|
296
|
+
}
|
|
402
297
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
298
|
+
if(this.loop){
|
|
299
|
+
this.video.loop = this.loop;
|
|
300
|
+
}
|
|
406
301
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
302
|
+
if(!this.keepLastFrame){
|
|
303
|
+
this.video.keepLastFrame = this.keepLastFrame;
|
|
304
|
+
}
|
|
410
305
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
306
|
+
if(this.videoAspectRatio !== "origin"){
|
|
307
|
+
this.video.videoAspectRatio = this.videoAspectRatio;
|
|
308
|
+
}
|
|
414
309
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
}
|
|
310
|
+
if(this.chromaKey && this.chromaKey !== ""){
|
|
311
|
+
this.video.setChromaKey(this.chromaKey)
|
|
312
|
+
}
|
|
313
|
+
//}else{
|
|
314
|
+
if(!first_create){
|
|
315
|
+
this.video.setHoleID(this.holeId);
|
|
316
|
+
if(this.playerType !== 3){
|
|
317
|
+
this.holeStyle = {
|
|
318
|
+
left: 0, top: 0,
|
|
319
|
+
width: this.style.width, height: this.style.height
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
431
324
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
325
|
+
this.onRef?.(this.video)
|
|
326
|
+
}
|
|
327
|
+
},
|
|
435
328
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
329
|
+
beforeUnmount(){
|
|
330
|
+
if(this.video != null){
|
|
331
|
+
this.video.releasePlayer();
|
|
439
332
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
333
|
+
this.onRef?.(null)
|
|
334
|
+
}
|
|
335
|
+
},
|
|
443
336
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}
|
|
337
|
+
methods: {
|
|
338
|
+
getHoleId(id){
|
|
339
|
+
logDebug("getHoleId:", id)
|
|
340
|
+
this.holeId = id;
|
|
341
|
+
},
|
|
342
|
+
registerEvent(){
|
|
343
|
+
if(this.video && this.active){
|
|
344
|
+
this.video.addEventListener("end", this.onEnded);
|
|
345
|
+
this.video.addEventListener("error", this.onError);
|
|
346
|
+
//this.video.addEventListener("abort", this.onAbort);
|
|
347
|
+
this.video.addEventListener("timeupdate", this.onTimeUpdate);
|
|
348
|
+
this.video.addEventListener("loadstart", () => {
|
|
349
|
+
logDebug("JsvPlayer received loadstart event.");
|
|
350
|
+
if(this.playerType !== 3){
|
|
351
|
+
this.holeStyle = {
|
|
352
|
+
left: 0, top: 0,
|
|
353
|
+
width:this.style.width, height:this.style.height
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
this.onLoadStart();
|
|
357
|
+
});
|
|
358
|
+
this.video.addEventListener("canplaythrough", this.onCanPlayThrough);
|
|
359
|
+
this.video.addEventListener("progress", this.onProgress);
|
|
360
|
+
this.video.addEventListener("loadedmetadata", this.onLoadedMetaData);
|
|
361
|
+
this.video.addEventListener("load", this.onLoad);
|
|
362
|
+
this.video.addEventListener("durationchange", this.onDurationChange);
|
|
363
|
+
this.video.addEventListener("seeking", this.onSeeking);
|
|
364
|
+
this.video.addEventListener("seeked", this.onSeeked);
|
|
365
|
+
this.video.addEventListener("stalled", this.onStalled);
|
|
366
|
+
this.video.addEventListener("playing", this.onPlaying);
|
|
367
|
+
this.video.addEventListener("canplay", this.onCanPlay);
|
|
368
|
+
this.video.addEventListener("audiofocusloss", this.onAudioFocusLoss);
|
|
369
|
+
this.video.addEventListener("audiofocusgain", this.onAudioFocusGain);
|
|
370
|
+
this.video.addEventListener("timeshift", this.onTimeShift);
|
|
371
|
+
this.video.addEventListener("timeshifted", this.onTimeShifted);
|
|
372
|
+
this.video.addEventListener("backlive", this.onBackLive);
|
|
373
|
+
this.video.addEventListener("backlived", this.onBackLived);
|
|
374
|
+
this.video.addEventListener("streamchanged", this.onStreamChanged);
|
|
375
|
+
this.video.addEventListener("changeurlcomplete", this.onChangeUrlComplete);
|
|
376
|
+
this.video.addEventListener("changeurlrenderstart", this.onChangeUrlRenderStart);
|
|
377
|
+
this.video.addEventListener("sizechangeerror", this.onSizeChangeError);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
}
|
|
487
382
|
|
|
488
383
|
//export default JsvPlayer;
|
|
489
384
|
</script>
|
|
490
385
|
|
|
491
386
|
<template>
|
|
492
|
-
<div
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
:corner="corner"
|
|
497
|
-
></JsvNativeSharedDiv>
|
|
387
|
+
<div
|
|
388
|
+
v-if="playerType!=3"
|
|
389
|
+
:style="style">
|
|
390
|
+
<JsvNativeSharedDiv :style="holeStyle" :getId="getHoleId" :corner="cornerRadius" :frontLayer="!this.background" :oversize="oversize"></JsvNativeSharedDiv>
|
|
498
391
|
</div>
|
|
499
392
|
</template>
|
|
500
393
|
|
|
501
|
-
<style scoped
|
|
394
|
+
<style scoped>
|
|
395
|
+
|
|
396
|
+
</style>
|