@shijiu/jsview-vue 2.3.0 → 2.3.728-alpha.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.vue.mjs +4 -1
- package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +13913 -8048
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +28 -4
- 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 +70 -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 +5 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +27 -14
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
- 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 +5 -3
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- 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 +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +8 -4
- package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
- package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
- package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
- package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
- package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
- package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
- package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
- package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
- package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
- package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
- package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
- package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
- package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
- package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
- package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
- package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
- package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
- package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
- package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
- package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
- package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
- package/dist/utils/export-sfc.mjs +12 -0
- package/dist/utils/index.mjs +29000 -0
- package/dist/utils/jsview-vue-common.mjs +39 -0
- package/package.json +1 -1
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +51 -3
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
- 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 +62 -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 +434 -264
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +29 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -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} +61 -11
- 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 +5 -1
- package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
- package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
- 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 +30 -12
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
- 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/JsvDashPath.vue +150 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
- 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 +22 -12
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +34 -31
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
- package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
- package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
- 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 +9 -3
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
- /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -18,11 +18,18 @@ let EVENT_STATUS_END = 12;
|
|
|
18
18
|
|
|
19
19
|
let MediaPluginInfo = getPluginInfo();
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
let mediaArray = [];
|
|
22
|
+
|
|
23
|
+
let pluginLoadListener = [];
|
|
24
|
+
let PluginEventKey = "JsvPlayer";
|
|
25
|
+
let chipType = "";
|
|
26
|
+
let globalOperator = null;
|
|
27
|
+
let JsvPlayerProbeMulticastChannelID = -1;
|
|
28
|
+
let JsvPlayerProbeMulticastUrl = null;
|
|
29
|
+
let globalStreamChangedListener = null;
|
|
30
|
+
let JsvPlayerMobileEventParam = null;
|
|
31
|
+
let JsvPlayerStbID = null;
|
|
32
|
+
let JsvPlayerGlobalListener = null;
|
|
26
33
|
|
|
27
34
|
let LOG_LEVEL_FATAL = 5;
|
|
28
35
|
let LOG_LEVEL_ERROR = 4;
|
|
@@ -115,7 +122,12 @@ function JsvPlayerPluginLoadResult(result){
|
|
|
115
122
|
pluginLoadState = 5;
|
|
116
123
|
notify_obj.status = 4;
|
|
117
124
|
if(ret_obj){
|
|
118
|
-
|
|
125
|
+
if(ret_obj.hasOwnProperty("error_code")){
|
|
126
|
+
notify_obj.code = ret_obj.error_code;
|
|
127
|
+
}else{
|
|
128
|
+
notify_obj.code = ret_obj.status;
|
|
129
|
+
}
|
|
130
|
+
|
|
119
131
|
}else{
|
|
120
132
|
notify_obj.code = -1;
|
|
121
133
|
}
|
|
@@ -223,11 +235,30 @@ function JsvPlayerPluginEvent(data){
|
|
|
223
235
|
logWarning("Load plugin status, invalid status: "+status)
|
|
224
236
|
return;
|
|
225
237
|
}
|
|
226
|
-
|
|
227
|
-
pluginLoadListener[i](notify_obj);
|
|
228
|
-
}
|
|
238
|
+
|
|
229
239
|
if(pluginLoadState === 4){
|
|
230
240
|
let capabilitySet = getJsvPlayerCapabilitySet();
|
|
241
|
+
|
|
242
|
+
if(globalOperator !== null){
|
|
243
|
+
setOperator(globalOperator);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if(JsvPlayerProbeMulticastChannelID >= 0){
|
|
247
|
+
setProbeMulticastChannelID(JsvPlayerProbeMulticastChannelID);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if(JsvPlayerProbeMulticastUrl != null){
|
|
251
|
+
setProbeMulticastUrl(JsvPlayerProbeMulticastUrl);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if(JsvPlayerMobileEventParam != null){
|
|
255
|
+
setMobileEventParam(JsvPlayerMobileEventParam);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if(JsvPlayerStbID != null){
|
|
259
|
+
setStbID(JsvPlayerStbID);
|
|
260
|
+
}
|
|
261
|
+
|
|
231
262
|
if(capabilitySet !== null && capabilitySet !== ""){
|
|
232
263
|
let capabilitySetObj = JSON.parse(capabilitySet);
|
|
233
264
|
if(capabilitySetObj !== null && capabilitySetObj.hasOwnProperty("chipType")){
|
|
@@ -238,6 +269,10 @@ function JsvPlayerPluginEvent(data){
|
|
|
238
269
|
mediaArray[i].buildPlatformInstance();
|
|
239
270
|
}
|
|
240
271
|
}
|
|
272
|
+
|
|
273
|
+
for(let i=0; i<pluginLoadListener.length; i++){
|
|
274
|
+
pluginLoadListener[i](notify_obj);
|
|
275
|
+
}
|
|
241
276
|
}else{
|
|
242
277
|
let type = event_obj.type;
|
|
243
278
|
let param = event_obj.param;
|
|
@@ -535,9 +570,10 @@ class JsvBaseMedia {
|
|
|
535
570
|
keepLastFrame: true,
|
|
536
571
|
timeUpdateLess: false,
|
|
537
572
|
rate: 1.0,
|
|
538
|
-
volume:
|
|
573
|
+
volume: null,
|
|
539
574
|
chromaKey: null,
|
|
540
575
|
audioTrack: -1,
|
|
576
|
+
videoDeltaTime: 0,
|
|
541
577
|
};
|
|
542
578
|
|
|
543
579
|
this.local = {
|
|
@@ -566,6 +602,7 @@ class JsvBaseMedia {
|
|
|
566
602
|
this.frameRateLimit = false;
|
|
567
603
|
this._onEvent = this.onEvent.bind(this);
|
|
568
604
|
this._onVisibilityChangeCallBack = this.onVisibilityChangeCallBack.bind(this);
|
|
605
|
+
this.srcList = [];
|
|
569
606
|
|
|
570
607
|
let found = false;
|
|
571
608
|
for(let i=0; i<mediaArray.length; i++){
|
|
@@ -698,6 +735,18 @@ class JsvBaseMedia {
|
|
|
698
735
|
if(this.state["audioTrack"] !== -1){
|
|
699
736
|
this.setState("audioTrack", this.state["audioTrack"], "number");
|
|
700
737
|
}
|
|
738
|
+
|
|
739
|
+
if(this.state["volume"]){
|
|
740
|
+
this.setState("volume", this.state["volume"], "string");
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
if(this.state["videoDeltaTime"] !== 0){
|
|
744
|
+
this.setState("videoDeltaTime", this.state["videoDeltaTime"], "number");
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
if(this.playerType == 4 && this.srcList.length > 0){
|
|
748
|
+
window.jsvPlayerBridge.addSrcList(this.key, JSON.stringify(this.srcList));
|
|
749
|
+
}
|
|
701
750
|
}
|
|
702
751
|
|
|
703
752
|
onVisibilityChangeCallBack(){
|
|
@@ -743,6 +792,8 @@ class JsvBaseMedia {
|
|
|
743
792
|
logDebug("currentTime: "+this.local.currentTime);
|
|
744
793
|
this.unloadPrivate();
|
|
745
794
|
}
|
|
795
|
+
|
|
796
|
+
this.clearLastFrame();
|
|
746
797
|
}
|
|
747
798
|
this.appVisible = visible;
|
|
748
799
|
}
|
|
@@ -802,7 +853,7 @@ class JsvBaseMedia {
|
|
|
802
853
|
logDebug("changeFrameRate, key="+this.key+", enable="+enable);
|
|
803
854
|
this.frameRateLimit = enable;
|
|
804
855
|
if(enable){
|
|
805
|
-
window.JsView?.reduceFps?.(
|
|
856
|
+
window.JsView?.reduceFps?.(25);
|
|
806
857
|
}else{
|
|
807
858
|
window.JsView?.reduceFps?.(0);
|
|
808
859
|
}
|
|
@@ -975,7 +1026,7 @@ class JsvBaseMedia {
|
|
|
975
1026
|
}
|
|
976
1027
|
|
|
977
1028
|
if (this.hasOwnProperty("ondurationchange")) {
|
|
978
|
-
this["ondurationchange"]();
|
|
1029
|
+
this["ondurationchange"](data.duration);
|
|
979
1030
|
}
|
|
980
1031
|
this.currentEventStatus = EVENT_STATUS_LOAD;
|
|
981
1032
|
}
|
|
@@ -1120,6 +1171,40 @@ class JsvBaseMedia {
|
|
|
1120
1171
|
this.currentEventStatus = EVENT_STATUS_BACKLIVED;
|
|
1121
1172
|
}
|
|
1122
1173
|
break;
|
|
1174
|
+
case "onStreamChanged":
|
|
1175
|
+
logDebug("onStreamChanged");
|
|
1176
|
+
if(this.hasOwnProperty("onstreamchanged")){
|
|
1177
|
+
this["onstreamchanged"](JSON.stringify(data));
|
|
1178
|
+
}else if(globalStreamChangedListener != null && typeof globalStreamChangedListener === "function"){
|
|
1179
|
+
globalStreamChangedListener(JSON.stringify(data));
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
break;
|
|
1183
|
+
case "onChangeUrlComplete":
|
|
1184
|
+
logDebug("onChangeUrlComplete");
|
|
1185
|
+
this.local.currentTime = data.currentTime;
|
|
1186
|
+
this.local.duration = data.duration;
|
|
1187
|
+
if(this.hasOwnProperty("onchangeurlcomplete")){
|
|
1188
|
+
this["onchangeurlcomplete"](data.src, data.width, data.height);
|
|
1189
|
+
}
|
|
1190
|
+
if (this.hasOwnProperty("ondurationchange")) {
|
|
1191
|
+
this["ondurationchange"](data.duration);
|
|
1192
|
+
}
|
|
1193
|
+
if (this.hasOwnProperty("ontimeupdate")) {
|
|
1194
|
+
this["ontimeupdate"](data.currentTime);
|
|
1195
|
+
}
|
|
1196
|
+
break;
|
|
1197
|
+
case "onChangeUrlRenderStart":
|
|
1198
|
+
logDebug("onChangeUrlRenderStart");
|
|
1199
|
+
if(this.hasOwnProperty("onchangeurlrenderstart")){
|
|
1200
|
+
this["onchangeurlrenderstart"](data.src);
|
|
1201
|
+
}
|
|
1202
|
+
break;
|
|
1203
|
+
case "onSizeChangeError":
|
|
1204
|
+
logDebug("onSizeChangeError");
|
|
1205
|
+
if(this.hasOwnProperty("onsizechangeerror")){
|
|
1206
|
+
this["onsizechangeerror"](data.width, data.height);
|
|
1207
|
+
}
|
|
1123
1208
|
default:
|
|
1124
1209
|
break;
|
|
1125
1210
|
}
|
|
@@ -1237,11 +1322,25 @@ class JsvBaseMedia {
|
|
|
1237
1322
|
* 属性,float类型,播放器音量,0-1.0,只影响当前播放器实例。
|
|
1238
1323
|
*/
|
|
1239
1324
|
get volume() {
|
|
1240
|
-
return this.
|
|
1325
|
+
return this.getProperty("volume");
|
|
1241
1326
|
}
|
|
1242
1327
|
|
|
1243
1328
|
set volume(value) {
|
|
1244
|
-
this.
|
|
1329
|
+
this.setVolume(value, value);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* 属性,float类型,播放器左声道音量,0-1.0。
|
|
1334
|
+
*/
|
|
1335
|
+
get leftVolume() {
|
|
1336
|
+
return this.getProperty("leftVolume");
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* 属性,float类型,播放器右声道音量,0-1.0。
|
|
1341
|
+
*/
|
|
1342
|
+
get rightVolume() {
|
|
1343
|
+
return this.getProperty("rightVolume");
|
|
1245
1344
|
}
|
|
1246
1345
|
|
|
1247
1346
|
/**
|
|
@@ -1321,6 +1420,91 @@ class JsvBaseMedia {
|
|
|
1321
1420
|
this.eventReport = true;
|
|
1322
1421
|
}
|
|
1323
1422
|
|
|
1423
|
+
/**
|
|
1424
|
+
* 添加短视频播放地址列表,数组格式。
|
|
1425
|
+
* @param {array} url_list 播放地址列表,数组格式,[url1, url2, ...]。
|
|
1426
|
+
*/
|
|
1427
|
+
addSrcList(url_list){
|
|
1428
|
+
if(!url_list || url_list.length == 0 || this.playerType !== 4){
|
|
1429
|
+
return;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
if(this.playerCreate){
|
|
1433
|
+
window.jsvPlayerBridge.addSrcList(this.key, JSON.stringify(url_list));
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
for(let i=0; i<url_list.length; i++){
|
|
1437
|
+
let found = false;
|
|
1438
|
+
for(let j=0; j<this.srcList; j++){
|
|
1439
|
+
if(url_list[i] === this.srcList[j]){
|
|
1440
|
+
found = true;
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
if(!found){
|
|
1446
|
+
this.srcList.push(url_list[i]);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
removeSrcList(url_list){
|
|
1452
|
+
if(!url_list || url_list.length == 0 || this.playerType !== 4){
|
|
1453
|
+
return;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
if(this.playerCreate){
|
|
1457
|
+
window.jsvPlayerBridge.removeSrcList(this.key, JSON.stringify(url_list));
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
for(let i=0; i<url_list.length; i++){
|
|
1461
|
+
let found = false;
|
|
1462
|
+
let j = 0;
|
|
1463
|
+
for(j=0; j<this.srcList; j++){
|
|
1464
|
+
if(url_list[i] === this.srcList[j]){
|
|
1465
|
+
found = true;
|
|
1466
|
+
break;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
if(found){
|
|
1471
|
+
this.srcList.splice(j, 1);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
changeUrl(url){
|
|
1477
|
+
if(typeof url !== "string" || this.playerType !== 4){
|
|
1478
|
+
return;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
if(this.playerCreate && this.appVisible){
|
|
1482
|
+
window.jsvPlayerBridge.changeUrl(this.key, url);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
let src = {};
|
|
1486
|
+
src.url = url;
|
|
1487
|
+
src.type = 1;
|
|
1488
|
+
|
|
1489
|
+
this.state["src"] = JSON.stringify(src);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* 设置音量,可以分别设置左声道和右声道,如果只用左声道,把rightVolume设置为0,如果只使用右声道,把leftVolume设置为0。
|
|
1494
|
+
* @param {float} leftVolume 左声道音量,0-1.0
|
|
1495
|
+
* @param {float} rightVolume 右声道音量,0-1.0
|
|
1496
|
+
*/
|
|
1497
|
+
setVolume(leftVolume, rightVolume){
|
|
1498
|
+
if(typeof leftVolume != "number" || typeof rightVolume != "number"){
|
|
1499
|
+
logTrace("setVolume, invalid volume value: leftVolume = "+leftVolume+", rightVolume = "+rightVolume);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
let volume = {};
|
|
1503
|
+
volume.leftVolume = leftVolume;
|
|
1504
|
+
volume.rightVolume = rightVolume;
|
|
1505
|
+
this.setState("volume", JSON.stringify(volume), "string");
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1324
1508
|
/**
|
|
1325
1509
|
* 添加监听事件。
|
|
1326
1510
|
* @param {string} type 事件类型。
|
|
@@ -1404,6 +1588,23 @@ class JsvBaseMedia {
|
|
|
1404
1588
|
this.changeFrameRate(false);
|
|
1405
1589
|
}
|
|
1406
1590
|
|
|
1591
|
+
/**
|
|
1592
|
+
* 视频和音频同步时间的差值,当视频比音频快时,设置大于0的时间差值,当视频比音频慢,设置小于0的时间差值,单位为毫秒。播放器会使用视频时间戳+差值去和音频做同步。
|
|
1593
|
+
* 只有jsv视频播放器(playerType=2)时支持。
|
|
1594
|
+
* @param {int} time 时间差值,单位ms。
|
|
1595
|
+
* @returns {int} 0,表示成功;-1,表示失败
|
|
1596
|
+
*/
|
|
1597
|
+
videoSynTime(time){
|
|
1598
|
+
if(typeof time != "number"){
|
|
1599
|
+
return -1;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
if(this.type === "audio" || this.playerType !== 2){
|
|
1603
|
+
return -1;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
this.setState("videoDeltaTime", time, "number");
|
|
1607
|
+
}
|
|
1407
1608
|
/**
|
|
1408
1609
|
* 要求终端访问指定的频道,并立即返回。对由本地设置为跳过的频道,也返回-1。
|
|
1409
1610
|
* 频道地址为通过 CTCSetConfig 设置的频道列表中的地址:
|
|
@@ -1415,9 +1616,15 @@ class JsvBaseMedia {
|
|
|
1415
1616
|
*/
|
|
1416
1617
|
joinChannel(mixNo){
|
|
1417
1618
|
logTrace("joinChannel, key="+this.key+", mixNo="+mixNo);
|
|
1619
|
+
|
|
1620
|
+
if(typeof mixNo !== "number"){
|
|
1621
|
+
logWarning("joinChannel failed, invalid channel number!");
|
|
1622
|
+
return -1;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1418
1625
|
if(this.type === "audio"){
|
|
1419
1626
|
logWarning("Audio player do not support joinChannel.");
|
|
1420
|
-
return
|
|
1627
|
+
return -1;
|
|
1421
1628
|
}
|
|
1422
1629
|
|
|
1423
1630
|
let ret = this.joinChannelPrivate(mixNo);
|
|
@@ -1434,13 +1641,17 @@ class JsvBaseMedia {
|
|
|
1434
1641
|
return 0;
|
|
1435
1642
|
}
|
|
1436
1643
|
|
|
1437
|
-
if(mixNo
|
|
1644
|
+
if(mixNo < 0){
|
|
1438
1645
|
return -1;
|
|
1439
1646
|
}
|
|
1440
1647
|
|
|
1441
1648
|
let ret = 0;
|
|
1442
1649
|
if(this.playerCreate && this.appVisible){
|
|
1443
|
-
|
|
1650
|
+
let set_mix_no = mixNo;
|
|
1651
|
+
if(globalOperator === "ZJDX_HW" && mixNo == 101){
|
|
1652
|
+
set_mix_no = 862;
|
|
1653
|
+
}
|
|
1654
|
+
ret = window.jsvPlayerBridge.JoinChannel(this.key, set_mix_no);
|
|
1444
1655
|
}
|
|
1445
1656
|
|
|
1446
1657
|
if(ret >= 0){
|
|
@@ -1630,19 +1841,24 @@ class JsvBaseMedia {
|
|
|
1630
1841
|
/**
|
|
1631
1842
|
* 设置色度抠像参数,只支持扣绿。
|
|
1632
1843
|
* 参考格式:{color: 0x30FF30, colorDistance: 0.15, edgeDistance: 0.4, greenOffset: 0.05}
|
|
1633
|
-
* @param {
|
|
1844
|
+
* @param {string} chromaKey,抠像参数,JSON Object结构,包含的参数如下:
|
|
1634
1845
|
* color,色值,int类型,为抠图色值范围的中心点,格式为0xRRGGBB。
|
|
1635
1846
|
* colorDistance,float类型,色域范围,范围0-1.0。
|
|
1636
1847
|
* edgeDistance,float类型,alpha透明度距离,范围colorDistance-1.0,从colorDistance到edgeDistance的alpha值从1.0-0线性递减。
|
|
1637
1848
|
* greenOffset,float类型,红蓝差值,范围0-1.0。
|
|
1638
1849
|
*/
|
|
1639
1850
|
setChromaKey(chromaKey){
|
|
1640
|
-
logTrace("setChromaKey, key="+this.key+", chroma key="+
|
|
1851
|
+
logTrace("setChromaKey, key="+this.key+", chroma key="+chromaKey);
|
|
1641
1852
|
if(this.type === "audio"){
|
|
1642
1853
|
logWarning("Audio player do not support setChromaKey.");
|
|
1643
1854
|
return;
|
|
1644
1855
|
}
|
|
1645
|
-
|
|
1856
|
+
if(typeof chromaKey !== "string"){
|
|
1857
|
+
logWarning("Invalid chromaKey type.");
|
|
1858
|
+
return;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
this.setState("chromaKey", chromaKey, "string");
|
|
1646
1862
|
}
|
|
1647
1863
|
|
|
1648
1864
|
setDebugMode(mode){
|
|
@@ -1665,6 +1881,50 @@ class JsvBaseMedia {
|
|
|
1665
1881
|
return false;
|
|
1666
1882
|
}
|
|
1667
1883
|
|
|
1884
|
+
/**
|
|
1885
|
+
* 获取视频信息,包括配置参数,视频状态,视频格式参数等。
|
|
1886
|
+
* @returns {string} 视频信息字符串,为json string,包括config、status、info三个字端,每个字段也是一个json string格式。
|
|
1887
|
+
* 1、对于config字段,包含的字段定义如下:
|
|
1888
|
+
* 1)如果ConfigType字段值为1,表示是IPTV格式,包括:
|
|
1889
|
+
* ChannelURL:频道直播地址;
|
|
1890
|
+
* TimeShiftURL:频道时移地址;
|
|
1891
|
+
* ChannelID:频道编码,字符串格式;
|
|
1892
|
+
* UserChannelID:频道编号,频道名称前的编号;
|
|
1893
|
+
* ChannelName:频道名称。
|
|
1894
|
+
* 2)如果ConfigType字段值为2,表示JsvPlayer格式,包括:
|
|
1895
|
+
* URL:播放地址;
|
|
1896
|
+
* Type:视频类型:1表示点播,2表示直播,3表示时移,4表示回看;
|
|
1897
|
+
* Head:视频网络请求head;
|
|
1898
|
+
* ShiftTime:时移时间,Type==3有效。
|
|
1899
|
+
* 3)如果ConfigType字段值为3,表示ctc media格式,包括:
|
|
1900
|
+
* MediaURL:媒体播放地址;
|
|
1901
|
+
* MediaCode:媒体code;
|
|
1902
|
+
* MediaType:媒体类型;
|
|
1903
|
+
* TimeShiftUrl:时移地址。
|
|
1904
|
+
* 4)ConfigType等于其它值无效。
|
|
1905
|
+
* 2、对于status字段,包含的字段定义如下:
|
|
1906
|
+
* URL:实际播放地址;
|
|
1907
|
+
* VideoType:视频类型:1表示点播,2表示直播,3表示时移,4表示回看;
|
|
1908
|
+
* Duration:视频总时长,单位秒,直播/时移状态时为-1;
|
|
1909
|
+
* CurrentTime:当前播放时间,直播/时移为时间戳,单位秒;
|
|
1910
|
+
* StartPlayTime:开始播放系统时间,单位秒。
|
|
1911
|
+
* 3、对于info字段,包含的字段定义如下:
|
|
1912
|
+
* VideoWidth:视频宽度,视频起播后有效;
|
|
1913
|
+
* VideoHeight:视频高度,视频起播后有效;
|
|
1914
|
+
* AudioTrackNum:音轨个数;
|
|
1915
|
+
* Fps:帧率。
|
|
1916
|
+
*
|
|
1917
|
+
*
|
|
1918
|
+
*/
|
|
1919
|
+
getVideoInfo(){
|
|
1920
|
+
logTrace("getVideoInfo, key="+this.key);
|
|
1921
|
+
if(typeof window.jsvPlayerBridge !== "undefined"){
|
|
1922
|
+
return window.jsvPlayerBridge.GetVideoInfo(this.key);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
return null;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1668
1928
|
/**
|
|
1669
1929
|
* 私有接口,外部不需要调用此接口。
|
|
1670
1930
|
*/
|
|
@@ -1728,7 +1988,7 @@ class JsvMedia extends JsvBaseMedia {
|
|
|
1728
1988
|
|
|
1729
1989
|
class JsvMediaAudio extends JsvMedia {
|
|
1730
1990
|
constructor(key, design_map_width) {
|
|
1731
|
-
super("audio", "resizable",
|
|
1991
|
+
super("audio", "resizable", null, 3, key, true, design_map_width, 0);
|
|
1732
1992
|
}
|
|
1733
1993
|
}
|
|
1734
1994
|
|
|
@@ -1815,10 +2075,15 @@ function getJsvPlayerRunningNum(){
|
|
|
1815
2075
|
return -1;
|
|
1816
2076
|
}
|
|
1817
2077
|
|
|
2078
|
+
/**
|
|
2079
|
+
* 设置运营商信息,主要用于不同运营商特殊的配置
|
|
2080
|
+
* @param {*} operator 运营商信息。
|
|
2081
|
+
*/
|
|
1818
2082
|
function setOperator(operator){
|
|
1819
|
-
logTrace("setOperator");
|
|
2083
|
+
logTrace("setOperator: "+operator);
|
|
2084
|
+
globalOperator = operator;
|
|
1820
2085
|
if(typeof window.jsvPlayerBridge !== "undefined"){
|
|
1821
|
-
|
|
2086
|
+
window.jsvPlayerBridge.setOperator(operator);
|
|
1822
2087
|
}
|
|
1823
2088
|
}
|
|
1824
2089
|
|
|
@@ -1826,6 +2091,114 @@ function globalLoadSetOperator(operator){
|
|
|
1826
2091
|
setOperator(operator)
|
|
1827
2092
|
}
|
|
1828
2093
|
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* 设置组播网络连通性探测频道
|
|
2097
|
+
* @param {Number} mixNo 探测的频道ID
|
|
2098
|
+
*/
|
|
2099
|
+
function setProbeMulticastChannelID(mixNo){
|
|
2100
|
+
logTrace("setProbeMulticastChannelID: "+mixNo);
|
|
2101
|
+
if(typeof mixNo === "number"){
|
|
2102
|
+
if(typeof window.jsvPlayerBridge !== "undefined"){
|
|
2103
|
+
window.jsvPlayerBridge.setProbeMulticastChannelID(mixNo);
|
|
2104
|
+
}else{
|
|
2105
|
+
JsvPlayerProbeMulticastChannelID = mixNo;
|
|
2106
|
+
}
|
|
2107
|
+
}else{
|
|
2108
|
+
logTrace("setProbeMulticastChannelID error, typeof mixNo is " + typeof mixNo);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* 设置组播网络连通性探测地址
|
|
2115
|
+
* @param {String} url 探测的组播地址,需是igmp协议格式,如igmp://224.0.0.1:xxxx
|
|
2116
|
+
*/
|
|
2117
|
+
function setProbeMulticastUrl(url){
|
|
2118
|
+
logTrace("setProbeMulticastUrl: "+url);
|
|
2119
|
+
if(typeof url === "string"){
|
|
2120
|
+
if(typeof window.jsvPlayerBridge !== "undefined" && typeof url === "string"){
|
|
2121
|
+
window.jsvPlayerBridge.setProbeMulticastUrl(url);
|
|
2122
|
+
}else{
|
|
2123
|
+
JsvPlayerProbeMulticastUrl = url;
|
|
2124
|
+
}
|
|
2125
|
+
}else{
|
|
2126
|
+
logTrace("setProbeMulticastUrl error, typeof url is " + typeof url);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* 注册视频流重试时的监听接口,用于上报log使用。当listener = null时,相当于注销监听。同时只能有一个全局监听接口,后注册的会覆盖之前注册的。
|
|
2132
|
+
* 如果通过组件注册了播放器此事件的监听,不会通过此接口通知。
|
|
2133
|
+
* @param {function name(data) {
|
|
2134
|
+
let obj = JSON.parse(data);
|
|
2135
|
+
let old_src = obj["oldSrc"]; //String类型,报错的url
|
|
2136
|
+
let new_src = obj["newSrc"]; //String类型,重新尝试的URL,如果oldSrc正常播放了,会继续使用oldSrc,否则看是否有备份URL,对于直播,会使用时移地址作为备份URL。
|
|
2137
|
+
let same_src = obj["sameSrc"]; //boolean类型,old_src是否和new_src相等。
|
|
2138
|
+
let video_type = obj["videoType"]; //播放场景。1是点播场景;2是直播场景,3是直播时移场景;4是直播回看场景。
|
|
2139
|
+
}}
|
|
2140
|
+
*/
|
|
2141
|
+
function registerStreamChangedListener(listener){
|
|
2142
|
+
if(listener == null || typeof listener === "function"){
|
|
2143
|
+
globalStreamChangedListener = listener;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* 设置移动卡花事件上报相关参数
|
|
2149
|
+
* @param {string} param json格式
|
|
2150
|
+
*/
|
|
2151
|
+
function setMobileEventParam(param){
|
|
2152
|
+
if(typeof param === "string"){
|
|
2153
|
+
if(typeof window.jsvPlayerBridge !== "undefined"){
|
|
2154
|
+
window.jsvPlayerBridge.setMobileEventParam(param);
|
|
2155
|
+
}else{
|
|
2156
|
+
JsvPlayerMobileEventParam = param;
|
|
2157
|
+
}
|
|
2158
|
+
}else{
|
|
2159
|
+
logTrace("setMobileEventParam error, typeof param is " + typeof param);
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* 设置stbid
|
|
2165
|
+
* @param {string} stbid 机顶盒stbid
|
|
2166
|
+
*/
|
|
2167
|
+
function setStbID(stbid){
|
|
2168
|
+
if(typeof stbid === "string"){
|
|
2169
|
+
if(typeof window.jsvPlayerBridge !== "undefined"){
|
|
2170
|
+
window.jsvPlayerBridge.setStbID(stbid);
|
|
2171
|
+
}else{
|
|
2172
|
+
JsvPlayerStbID = stbid;
|
|
2173
|
+
}
|
|
2174
|
+
}else{
|
|
2175
|
+
logTrace("setStbID error, typeof param is " + typeof stbid);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
function globalEventProcess(event_str){
|
|
2180
|
+
logTrace("player global event: "+event_str);
|
|
2181
|
+
if(JsvPlayerGlobalListener != null){
|
|
2182
|
+
let obj = JSON.parse(event_str);
|
|
2183
|
+
let event_obj = JSON.parse(obj.param);
|
|
2184
|
+
let event = event_obj.event;
|
|
2185
|
+
let data = event_obj.data;
|
|
2186
|
+
|
|
2187
|
+
JsvPlayerGlobalListener(event, data);
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
function setGlobalEventListener(listener){
|
|
2192
|
+
if(JsvPlayerGlobalListener != null){
|
|
2193
|
+
window.JMD.unsubscribe("JsvPlayerGlobalEvent", globalEventProcess);
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
if(listener != null){
|
|
2197
|
+
JsvPlayerGlobalListener = listener;
|
|
2198
|
+
window.JMD.subscribe("JsvPlayerGlobalEvent", globalEventProcess);
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
|
|
1829
2202
|
export {
|
|
1830
2203
|
JsvMediaVideo,
|
|
1831
2204
|
JsvMediaAudio,
|
|
@@ -1844,4 +2217,10 @@ export {
|
|
|
1844
2217
|
setJsvPlayerDebugMode,
|
|
1845
2218
|
getJsvPlayerRunningNum,
|
|
1846
2219
|
setOperator,
|
|
2220
|
+
setProbeMulticastChannelID,
|
|
2221
|
+
setProbeMulticastUrl,
|
|
2222
|
+
registerStreamChangedListener,
|
|
2223
|
+
setMobileEventParam,
|
|
2224
|
+
setStbID,
|
|
2225
|
+
setGlobalEventListener,
|
|
1847
2226
|
}
|