提交 6c34d630 编写于 作者: W wangzuohuai

1、解决JSON包过大时接收问题;2、更新VLC小程序,播放支持同时设置多个选项;3、更新文件及文档等

上级 e065fbb9
......@@ -43,7 +43,7 @@ BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
Url:加载小程序所在的网页实际地址
Open:为需要签章的文件路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_AppletStart","rid":8,"para":{"Type":"0","Title":"AIPSign Applet","NodeName":"AIPSignApplet","PID":"AIPSignApplet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/AIPApplet.html","Open":"http://zorrosoft.com/Files/PluginOK.pdf"}}
......
......@@ -45,7 +45,7 @@ BarW和BarH分别是网页右侧和底部预留区域
App:0启动AutoCAD实现在线编辑(推荐用2015及以上版本,可根据具体版本定制) 1启动DWG TrueView在线查看和转换 2启动Design Review在线审阅
Url:加载小程序所在的网页实际地址
Open:为需要打开的文档路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器并启动AutoCAD程序在线编辑dwg、dxf等文档
{"req":"Wrl_ACADApplet","rid":5,"para":{"Type":"0","Title":"Autodesk Applet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/acadframe.html","App":"0","Open":"D:/Zorro/test.dwg"}}
......
......@@ -44,7 +44,7 @@ BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
Url:加载小程序所在的网页实际地址
Open:为需要播放的多媒体路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_FlashApplet","rid":1,"para":{"Type":"0","Title":"Flash Applet","Flag":2,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url":"http://zorrosoft.com/FlashApplet.html","Open":"http://zorrosoft.com/Files.swf"}}
......
......@@ -44,7 +44,7 @@ BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
Url:加载小程序所在的网页实际地址
Open:为需要播放的多媒体路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_FlashApplet","rid":1,"para":{"Type":"0","Title":"Flash Applet","Flag":2,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url":"http://zorrosoft.com/FlashApplet.html","Open":"http://zorrosoft.com/Files.swf"}}
......
......@@ -46,7 +46,7 @@ Version 指定加载的IE版本,0不指定,比如9999是IE9标准模式 8888
X64:是否启动64位版
Url:加载小程序所在的网页实际地址
Open:为需要用IE内核打开的Url地址或本地网页地址
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
......
......@@ -46,7 +46,7 @@ Version 指定加载的IE版本,0不指定,比如9999是IE9标准模式 8888
X64:是否启动64位版
Url:加载小程序所在的网页实际地址
Open:为需要用IE内核打开的Url地址或本地网页地址
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
......
......@@ -17,7 +17,7 @@ Version 指定加载的IE版本,0不指定,比如9999是IE9标准模式 8888
X64:是否启动64位版
Url:加载小程序所在的网页地址
Open:为需要用IE内核打开的Url实际地址或本地网页地址
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器启动:
......
......@@ -45,7 +45,7 @@ BarW和BarH分别是网页右侧和底部预留区域
OType 1启动微软Word;OType 2启动微软Excel;OType 3启动微软PPT;
Url:加载小程序所在的网页实际地址
Open:为需要打开的文档路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器并启动微软Word程序
{"req":"Wrl_OfficeApplet","rid":5,"para":{"Type":"0","Title":"Office Applet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/OfficeApplet2.html","OType":"1","Open":"D:/Zorro/test.doc"}}
......
@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||(
powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT)
sc stop "Flash Helper Service" >NUL 2>NUL
taskkill /f /im FlashHelperService.exe >NUL 2>NUL
taskkill /f /im FlashPlayerUpdateService.exe >NUL 2>NUL
schtasks /delete /tn "Adobe Flash Player Updater" /f >NUL 2>NUL
schtasks /delete /tn "FlashHelper TaskMachineCore" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Macromedia\FlashHelper" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Macromedia\FlashHelper" /f >NUL 2>NUL
reg delete "HKLM\SYSTEM\CurrentControlSet\services\Flash Helper Service" /f >NUL 2>NUL
reg delete "HKLM\SYSTEM\CurrentControlSet\services\AdobeFlashPlayerUpdateSvc" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashHelperService.exe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerUpdateService.exe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION" /f /v "FlashHelperService.exe" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION" /f /v "FlashHelperService.exe" >NUL 2>NUL
ver|findstr "\<6\.[0-9]\.[0-9][0-9]*\> \<10\.[0-9]\.[0-9][0-9]*\>" > NUL && (
takeown /f "%WinDir%\System32\Macromed\Flash\*" /a /r /d y >NUL 2>NUL
takeown /f "%WinDir%\SysWOW64\Macromed\Flash\*" /a /r /d y >NUL 2>NUL
if exist "%WinDir%\System32\FlashPlayerApp.exe" takeown /f "%WinDir%\System32\FlashPlayerApp.exe" /a >NUL 2>NUL
if exist "%WinDir%\System32\FlashPlayerCPLApp.cpl" takeown /f "%WinDir%\System32\FlashPlayerCPLApp.cpl" /a >NUL 2>NUL
if exist "%WinDir%\SysWOW64\FlashPlayerApp.exe" takeown /f "%WinDir%\SysWOW64\FlashPlayerApp.exe" /a >NUL 2>NUL
if exist "%WinDir%\SysWOW64\FlashPlayerCPLApp.cpl" takeown /f "%WinDir%\SysWOW64\FlashPlayerCPLApp.cpl" /a >NUL 2>NUL
echo y|icacls "%WinDir%\System32\Macromed\*" /t /c /grant "Everyone:f" >NUL 2>NUL
echo y|icacls "%WinDir%\SysWOW64\Macromed\*" /t /c /grant "Everyone:f" >NUL 2>NUL
echo y|icacls "%WinDir%\System32\FlashPlayerApp.exe" /c /grant "Everyone:f" >NUL 2>NUL
echo y|icacls "%WinDir%\System32\FlashPlayerCPLApp.cpl" /c /grant "Everyone:f" >NUL 2>NUL
echo y|icacls "%WinDir%\SysWOW64\FlashPlayerApp.exe" /c /grant "Everyone:f" >NUL 2>NUL
echo y|icacls "%WinDir%\SysWOW64\FlashPlayerCPLApp.cpl" /c /grant "Everyone:f" >NUL 2>NUL
)
IF NOT EXIST "%ProgramW6432%" (
regsvr32 /s /u "%WinDir%\system32\Macromed\Flash\Flash.ocx"
) ELSE (
regsvr32 /s /u "%WinDir%\SysWOW64\Macromed\Flash\Flash.ocx"
regsvr32 /s /u "%WinDir%\system32\Macromed\Flash\Flash.ocx"
)
rd/s/q "%AppData%\Adobe\Flash Player"2>NUL
rd/s/q "%AppData%\Macromedia\Flash Player"2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\activex.vch" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\activex.vch" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\FlashPlayerUpdateService.exe" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\FlashPlayerUpdateService.exe" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\FlashUtil*_ActiveX.dll" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\FlashUtil*_ActiveX.dll" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\FlashUtil*_ActiveX.exe" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\FlashUtil*_ActiveX.exe" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\flashupdater.cfg" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\flashupdater.cfg" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\Flash*.ocx.bak_*" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\Flash*.ocx.bak_*" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\Flash*.ocx" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\Flash*.ocx" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\mms.cfg" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\mms.cfg" >NUL 2>NUL
del/f/q "%WinDir%\System32\Macromed\Flash\*.log" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\Macromed\Flash\*.log" >NUL 2>NUL
del/f/q "%WinDir%\System32\FlashPlayerApp.exe" >NUL 2>NUL
del/f/q "%WinDir%\System32\FlashPlayerCPLApp.cpl" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\FlashPlayerApp.exe" >NUL 2>NUL
del/f/q "%WinDir%\SysWOW64\FlashPlayerCPLApp.cpl" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Macromedia\FlashPlayer" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Macromedia\FlashPlayerActiveX" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Macromedia\FlashPlayerActiveXReleaseType" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Macromedia\FlashPlayer" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Macromedia\FlashPlayerActiveX" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Macromedia\FlashPlayerActiveXReleaseType" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerApp.exe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\.mfp" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\.sol" /f /v "Content Type" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\.sor" /f /v "Content Type" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\.spl" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\.swf" /f /v "Content Type" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\FlashFactory.FlashFactory" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\FlashFactory.FlashFactory.1" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{B019E3BF-E7E5-453C-A2E4-D2C18CA0866F}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{299817DA-1FAC-4CE2-8F48-A108237013BD}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{307F64C0-621D-4D56-BBC6-91EFC13CE40D}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{57A0E747-3863-4D20-A811-950C84F1DB9B}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{86230738-D762-4C50-A2DE-A753E5B1686F}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{D27CDB6C-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{D27CDB6D-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\MIME\Database\Content Type\application/futuresplash" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\MIME\Database\Content Type\application/x-shockwave-flash" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\TypeLib\{57A0E746-3863-4D20-A811-950C84F1DB9B}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\TypeLib\{D27CDB6B-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\TypeLib\{FAB3E735-69C7-453B-A446-B6823C6DF1C9}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{B019E3BF-E7E5-453C-A2E4-D2C18CA0866F}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{299817DA-1FAC-4CE2-8F48-A108237013BD}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{307F64C0-621D-4D56-BBC6-91EFC13CE40D}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{57A0E747-3863-4D20-A811-950C84F1DB9B}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{86230738-D762-4C50-A2DE-A753E5B1686F}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{D27CDB6C-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{D27CDB6D-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerApp.exe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerUpdateService.exe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved\{D27CDB6E-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB70-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{FAF199D2-BFA7-4394-A4DE-044A08E59B32}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Ext\PreApproved\{D27CDB6E-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB70-AE6D-11cf-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{FAF199D2-BFA7-4394-A4DE-044A08E59B32}" /f >NUL 2>NUL
\ No newline at end of file
IF NOT EXIST "%ProgramW6432%" (
regsvr32 /s "%WinDir%\system32\Macromed\Flash\Flash.ocx"
) ELSE (
regsvr32 /s "%WinDir%\SysWOW64\Macromed\Flash\Flash.ocx"
regsvr32 /s "%WinDir%\system32\Macromed\Flash\Flash.ocx"
)
\ No newline at end of file
......@@ -44,7 +44,7 @@ BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
App 指定加载软件,0微信桌面版 1企业微信桌面版 2腾讯会议桌面版
Url:加载小程序所在的网页实际地址
注意:Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
......
......@@ -50,7 +50,7 @@ BarW和BarH分别是网页右侧和底部预留区域
ShowType 播放窗口分屏类型,默认1只显示一个播放窗口,支持1-21 24 25等多达20种多窗口播放。
Url:加载小程序所在的网页实际地址
Open :启动后自动播放的流地址或本地多媒体文件路径,斜杠\替换成/再传
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_VLCApplet","rid":4,"para":{"Type":"0","Title":"VLC Applet","Flag":2,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/VLCApplet.html","ShowType":1,"Open":"https://vjs.zencdn.net/v/oceans.mp4"}}
......@@ -114,13 +114,13 @@ ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
1)、请求安装VLC多媒体播放网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"90FC7E0E-0D2F-4C38-9875-B06407CE4556","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcPlayer.pid","MD5":"657D5744A504784AEE40B69804CEE5D8","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"04270928BB79942B84E5A8989CEE51B794A23F22908550AF70DB47E5CD58883EC1370EA11A6CB3DA0761889EF7ED15FA9C86547CFC80836AC7CEFC9FCB7FE35B05923401B1B71D22A3F6190A3A214C2BE8051432B9A30925F1C60A6433493E57DCCCB54B9365D2765677DA8F16FFD9F34E88CEE904CE242B07D03D3F399A3D95AB1C997B9FD4562892E3D571AA67A9DE88451A1209B19544B52EC4889F0FBC6B386DBAA3B0D0117B69C3A4E3F5457D439867FCA242D7FA583C16CCC2CFAB24E2508896345CB1B9EF279D812331747E09FEE6575248D5D4CBB82237C37D2E40B3E166EB666F186ED39DDC6149E8DC788AF8CDA6844718108AA3CCB213AC022C90"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"90FC7E0E-0D2F-4C38-9875-B06407CE4556","Date":"2021-04-09","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcPlayer.pid","MD5":"9ACFEC194B8D787C45FE0E8A00639549","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"3EFFADD02296C5A3C39A0C47BAA1F0D51AFA57759D2CA008452305B3909648C23D8AC81071CE84356F28D791BB43E1CF65529BA4DC065409FCDEE956792FA91372957244F98E5871902B6BB2E8CCD11DECC8C625935EC2C42D4DE669992D19B1FE3A74576B68AD56CE0E99D805BEAE89567763B43E0D794B3B2E6118D69F01C8782AAD7AA446A40C9E0821EE8B3D64EB7F72CEC5CD1CC5C2B3623693F4062BA15CBB6C8AE779958984CC4AD701ADB9DED2D63EE49F323EB5531C2A7DF8F7FF8DCDBCFC13B0D337C6FFBEA8D64443E9A61FCFE5A6C1565EF2A9963C5045CDC8FCE9535EACBC0B795027A3BCDB2B156DBC9125F343D7AEEBA6B442006F5EDA4A6C"}}
启动安装后,会不断收到安装进度直到安装结束。
2)、请求升级VLC多媒体播放网页小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"90FC7E0E-0D2F-4C38-9875-B06407CE4556","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcPlayer_Update.pid","MD5":"A78EA53984A7035DCFF374F9882DB764","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"A7C4E78C65A4780C1EEB4C4FBC1485DAC0C4E3E837073E639FA96112399B3AF4C0287775751117C5ADFD24567530A19A8B6899632EACC55D98E2AC1330E578EE97D64C7A629328898D47FD4920A934441C810D417C10463C8A4AD2F28395BC77F91306B625BBF1EC0D03489FA3557C8ED46395AC2DF5D845992EBDA9AE1C3685A613AC3C88E686C0BDDA03BAAFB98505F31663B7DA0DDBFDC7831138ED918FC8205888EF8D140CF5B1C5401920AB4B54554E04ED0139408DA06C7026B4876D86C1DD807423DEB35AA88DA61D323438110045F026B301EC31A9B9034CA800724E2B1FBA2F5A6D79FE278951FB5C9D6198428F461CBC71DC520F7243EFEF70EE4F"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"90FC7E0E-0D2F-4C38-9875-B06407CE4556","Date":"2021-04-09","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcPlayer_Update.pid","MD5":"D17DE5B1111F1D52436047864A0A8428","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"3F68E71ADC51C75284E256193D4334492B1BFE08A081B4826BB554794C0A7BEFF03EEB97D0D9AB36AC22017605FB03DD17B06997AF5A8172388E06999A30B29AB320A12A000D8528F15E993A1D9D0EBA92984E6023E21B2789CCD3BC7225FD8A6CDCF8906A5D4A9A95B8C22177923A3ED7C9B49F9F3A88589F4E5F453754A1AD36205FC5007F49304892DFCA2E1C36942A17BED07A55D3166FFF09FA32EA38570C5FC387F6EC3A7A2D1193DEF4C176B6D98A3A87531E9613E1B91AB60CB4A51BD7FBC3A9FA3C1E7E6EA5B73E9738A3D341679717599BB1E820EF4B4EFA33FEF08BF2007C9370378F68632FA7600D86CF48B20EBC218F33019DE372C5EECB3D96"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
......
......@@ -50,7 +50,7 @@ BarW和BarH分别是网页右侧和底部预留区域
ShowType 播放窗口分屏类型,默认1只显示一个播放窗口,支持1-21 24 25等多达20种多窗口播放。
Url:加载小程序所在的网页实际地址
Open :启动后自动播放的流地址或本地多媒体文件路径,斜杠\替换成/再传
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_VLCWebPlayer","rid":4,"para":{"Type":"0","Title":"VLC Web Player","Flag":2,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/VLCWebPlayer.html","ShowType":1,"Open":"https://vjs.zencdn.net/v/oceans.mp4"}}
......@@ -114,13 +114,13 @@ ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
1)、请求安装VLC多媒体播放网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"VLCWebPlayer","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcWebPlayer.pid","MD5":"088D68D2CBC7A355289C05938CDA8341","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"164FC7A66F99BEFD67D7E209C8EEB9BC82B76D9F404D3C2BF9369935C1053D3D492417DBB37BA679F3884252E428D293A10D1F849171BA01A64113FD439B24A65B33D532A756B860E745BDF5E2418F645729ACAD3F7848031533CE9F7295DDBDD315FE4F4ECA0C27C5CA3BF7E0FFE0ABD2C3A7AA5F6EBA7989B1A53FC9861517D1F5178D9119D2FF16C61676CCA9098FA33ECEC2B2C934794982C3ABEB9F256C499101B8A86FCFEF325E33361F7A67A2DCAF09CEB1F5FCF7F9051734943CC9D6F09C5D511BB44524CA1F386096DAD15A5610D3C9030DCD10D0B5FAE2AD2BF19EF756C82E06603F8822A0AB0071800F0F151F1BFDEDABB37478EAA9F13D9AF734"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"VLCWebPlayer","Date":"2021-04-09","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcWebPlayer.pid","MD5":"A87A8AA1118E6D453849265C6A29D347","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"39A14CD9BA0A2FC7D401CD8844DC5C61C70EDC7D4687957D807D577BF9B6F4E19F6B6206AD22D973DCECAF9685599530AAB57A46ECE29BF82524E75D1FE5F9944539301EC7EE55D6EFB12D021FFBA32ED23AD9CD1456DD76AB12F8ECFBB38259EA6908F7963991956DD35E7D6623E21AC875110CA02AAF9AC8645C933BA1C505DCDB9C66A9A6610C20598DD8167B29E8E360E706A93177CA5CE1673FC5AAC4177F2DDDD961D9CB81D2552653642D710DF18A1D2146BF98838855FD6FC326D2BC1AB17EE9B66FCAAAB41380A096D9BAE952162A89F1D9F673CD0A68C0D64A974DE514C88CD106EFCD4ECDCB7863BB37A99A0BD133FD4C7F0EFD76922AF767FDA8"}}
启动安装后,会不断收到安装进度直到安装结束。
2)、请求升级VLC多媒体播放网页小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"VLCWebPlayer","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcWebPlayer_Update.pid","MD5":"43EDEF1F91BA4A1D4FCFAEE51257FA80","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"7F08823A9B7DC23257BA3A23FA254BF789ADAAEEBC52EDAFE920676C1BCA3F3B70DB5EA3C8C2D9F0EA3B21FBC481A7E14E1CE49E1BAD985AFDC1C9F4966DE2547BABDFBDB65E7AF15DDB2DE4A6B8CFAF363BA9BBC254AC7D779422E8AEEFB67AF8DBE25C930818F49046B9BF9565F60F28BADC4D676E4A95003324D04A54E909E787F172BF7FCD450B4635EC453D9B308ACED7541D8E887D2EE809E1BB2C046647C1760C5F8BE2C89DB088D43C0F63139193ABC65D8582A9D65DD35D2B30309BB8B73CE3F663A2A40FBF1A85043D8540BE09B00C6CA9FE4A285B99CCFB0130CF5D828E079390D44CC9A2FE8AF7F0D8CF2353AB0623089CF813432E6ED3E1BB22"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"VLC内嵌网页多媒体播放小程序","PID":"VLCWebPlayer","Date":"2021-04-09","Desc":"PluginOK之上跨浏览器的VLC多媒体播放内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中直接内嵌使用,可播放多路海康及大华等设备的实时视频","DownAddr":"http://local.zorrosoft.com/Files/Plugin/VlcWebPlayer_Update.pid","MD5":"35681E66DFB6C80112800021D7420294","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"1C546972BE214F36F994CF729E32D9BDB36B77023518C68A0C9F8D2012423B8A6C668A5C05A4456FFB232A0538A8CD489C5E0D822552BBA170ED7D53A84D7F406071AA43345BC871273B1285B206A226D76B12184FF4A1D29DD26EBD5DA7A0B394D8C93875D4EFF798597F0A4C1BFE37979B4B229170FFE435428B9408F76AEBCA45E9E8EA7239BF6A6DA0232E5099E77DA707CAE6F0AFBAB003B14C8D04B5857F44C26C08885D619D80F35D82DDBE7BDBECDB4FF53E8BD5A8DB1321EF23C9B8B537D5F70EC498DCD20ED71B68CFC07F5EAC7F6A70E866FE355517DE778A465229C93901BF9E3F2A5E294406C0AD186685F9E4B5D1C44ABCDE0B844F9D6A2B66"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
......
......@@ -45,7 +45,7 @@ BarW和BarH分别是网页右侧和底部预留区域
OType 11启动WPS 文字处理;OType 12启动WPS 表格;OType 13启动WPS 演示;
Url:加载小程序所在的网页实际地址
Open:为需要打开的文档路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器并启动WPS文字处理
{"req":"Wrl_OfficeApplet","rid":6,"para":{"Type":"0","Title":"Office Applet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/OfficeApplet2.html","OType":"11","Open":"D:/Zorro/test.doc"}}
......
无法预览此类型文件
......@@ -4,10 +4,10 @@
3、打开程序目录下的各种小程序接口说明,VlcWebPlayer.txt和VlcPlayerApplet.txt都是VLC多媒体播放网页小程序,IEApplet.txt为IE控件小程序,MSOfficeApplet.txt为微软Office在线编辑查看小程序,WPSOfficeApplet.txt为金山WPS在线编辑查看小程序,FlashPlayerApplet.txt为Adobe的Flash网页播放小程序,FileApplet.txt为文件操作小程序,AIPSignApplet.txt为点聚印章网页小程序,AutodeskApplet.txt为Autodesk公司dwg等工程图在线编辑查看小程序,TXWebApplet.txt为腾讯桌面微信客户端内嵌网页运行小程序,IETabApplet.txt为IE标签页小程序(和浏览器IETAB扩展程序功能接近),SApiApplet.txt为微软语音引擎小程序,SerialPortApplet.txt为串口操作小程序,请按这些文档进行体验和开发集成;举例:
体验VLC网页播放小程序,VlcWebPlayer.txt请打开测试网页 http://local.zorrosoft.com/vlcwebplayer.html 或 http://local.zorrosoft.com/vlcwebfull.html ;VlcPlayerApplet.txt请打开测试网页 http://local.zorrosoft.com/vlcframe.html 或 http://local.zorrosoft.com/vlcfull.html 修改发送上面JSON里的Open参数为自己的RTSP流地址;如要测试同一网页加载2个VLC播放小程序,请打开网页 http://local.zorrosoft.com/vlcdbplayer.html 进行测试。
体验VLC网页播放小程序,VlcWebPlayer.txt请打开测试网页 http://zorrosoft.com/vlcwebplayer.html 或 http://zorrosoft.com/vlcwebfull.html ;VlcPlayerApplet.txt请打开测试网页 http://zorrosoft.com/vlcframe.html 或 http://zorrosoft.com/vlcfull.html 修改发送上面JSON里的Open参数为自己的RTSP流地址;如要测试同一网页加载2个VLC播放小程序,请打开网页 http://zorrosoft.com/vlcdbplayer.html 进行测试。
测试Office网页小程序,请打开测试网页 http://local.zorrosoft.com/wordfull.html 或 http://local.zorrosoft.com/Officeframe.html 改发送上面JSON里的Open参数为自己的doc文档路径,如本地路径是中文或有特殊符号,请先拿到路径到浏览器地址栏访问一下再复制作为Open的路径。
测试Office网页小程序,请打开测试网页 http://zorrosoft.com/wordfull.html 或 http://zorrosoft.com/Officeframe.html 改发送上面JSON里的Open参数为自己的doc文档路径,如本地路径是中文或有特殊符号,请先拿到路径到浏览器地址栏访问一下再复制作为Open的路径。
测试IE控件小程序,请打开测试网页 http://local.zorrosoft.com/ieframe.html 或 http://local.zorrosoft.com/iefull.html 改发送上面JSON里的Open参数为自己的网站URL地址。
测试IE控件小程序,请打开测试网页 http://zorrosoft.com/ieframe.html 或 http://zorrosoft.com/iefull.html 改发送上面JSON里的Open参数为自己的网站URL地址。
友情提示:测试过程中有啥问题可随时微信(ZorroSoft)在线沟通,请严格遵守测试协议中的相关条款,感谢配合!
\ No newline at end of file
......@@ -44,7 +44,7 @@ BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
Url:加载小程序所在的网页实际地址
Open:为需要签章的文件路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_AppletStart","rid":8,"para":{"Type":"0","Title":"AIPSign Applet","NodeName":"AIPSignApplet","PID":"AIPSignApplet","Flag":2,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/AIPApplet.html","Open":"http://zorrosoft.com/Files/PluginOK.pdf"}}
......
......@@ -45,7 +45,7 @@ BarW和BarH分别是网页右侧和底部预留区域
App:0启动AutoCAD实现在线编辑(推荐用2015及以上版本,可根据具体版本定制) 1启动DWG TrueView在线查看和转换 2启动Design Review在线审阅
Url:加载小程序所在的网页实际地址
Open:为需要打开的文档路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器并启动AutoCAD程序在线编辑dwg、dxf等文档
{"req":"Wrl_ACADApplet","rid":5,"para":{"Type":"0","Title":"Autodesk Applet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/acadframe.html","App":"0","Open":"D:/Zorro/test.dwg"}}
......
......@@ -44,7 +44,7 @@ BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
Url:加载小程序所在的网页实际地址
Open:为需要播放的多媒体路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_FlashApplet","rid":1,"para":{"Type":"0","Title":"Flash Applet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url":"http://zorrosoft.com/FlashApplet.html","Open":"http://zorrosoft.com/Files/test.swf"}}
......
Flash Player小程序(内嵌网页):基于跨浏览器的小程序系统-PluginOK(牛插)中间件( https://github.com/wangzuohuai/WebRunLocal )网络版开发,底层调用Adobe公司的ActiveX控件Flash.ocx实现播放。最低可用在Chrome 41、Firefox 50、Edge 80(Chromium内核)、360极速/安全、IE 8、Oprea 36、QQ、搜狗等浏览器,也兼容运行于这些浏览器的最新版本。
1、牛插(PluginOK)中间件的安装:
1)、如果是exe的安装程序,请直接运行安装;
2)、如果是绿色版的程序包,请解压到磁盘某个目录后,双击“InstallWrl.bat”进行安装;
3)、安装完成时会启动PluginOK中间件服务,在安装目录下的Data子目录有ZbaService.txt日志文件输出运行情况。
2、Flash Player内嵌网页小程序控制相关接口:
说明:以下功能请通过Web Socket连接PluginOK主服务(ws://localhost?sid=12345&flag=1)后可执行,如默认侦听端口不是80(关于如何配置侦听端口,请参考SDK包中的文档“PluginOK开发者手册.doc”),请在连接地址中指定端口号进行连接。
HTTP网页在线测试:http://zorrosoft.com/flashfull.html HTTPS网页在线测试:https://zorrosoft.com/flashframe.html
前端集成可参考以上测试网页进行,HTML网页中需要嵌入以下类似代码;
A、标记小程序的显示位置和大小
.FlashApplet {
margin: 20px 0 0 20px;
width: 480px;
height: 320px;
border: 1px solid blue;
}
或者
.FlashApplet {
width: 480px;
height: 320px;
top: 20px;
left: 20px;
border: 1px solid blue;
}
如果在网页Header区没有标记小程序初始显示位置和大小,请在启动小程序的JSON参数里,添加以下参数:
"Left":20,"Top":20,"Width":480,"Height":320
B、网页中嵌入元素
支持IFrame的:
<iframe name="FlashApplet" id="FlashApplet" src="FlashApplet3.html" frameborder="0" align="left" width="550" height="540" scrolling="no">
或者直接用
<div id="FlashApplet" class="FlashApplet"</div>
另外需要嵌入用到的JS脚本,脚本程序是完全开源的。
1)、请求启动Flash Player内嵌网页小程序:
Type为浏览器类型,传0自动判断(前提是当前浏览器已启动并显示在最前端,Flag指定当前页加载时必须是0) 可强制指定浏览器类型Type(1代表IE 2代表Chrome 4代表Firefox 8代表Opera 16代表Edge(Chromium内核) 32代表360极速浏览器 33代表360安全浏览器 34代表360企业安全浏览器 50代表QQ浏览器 60代表搜狗浏览器)
Title:网页标题中的关键词
Flag掩码标记:1指定新标签加载(1和16都不指定时为当前页加载) 2小程序显示窗口边框 4不自动裁剪越界窗口 8自动适配网页高度和宽度显示 64根据标题避免重复加载相同的小程序
IframeX和IframeY分别为iframe嵌套的横竖偏移修正坐标
BarW和BarH分别是网页右侧和底部预留区域
小程序实际显示首先会基于网页中指定的坐标和大小,再根据IframeX、IframeY、BarW、BarH设定的值做修正
Url:加载小程序所在的网页实际地址
Open:为需要播放的多媒体路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_FlashApplet","rid":1,"para":{"Type":"0","Title":"Flash Applet","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url":"http://zorrosoft.com/FlashApplet.html","Open":"http://zorrosoft.com/Files/test.swf"}}
自动识别当前浏览器自动适配网页大小启动:
{"req":"Wrl_FlashApplet","rid":3,"para":{"Type":"0","Title":"Flash Applet","Flag":8,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url":"http://zorrosoft.com/FlashApplet.html","Open":"http://zorrosoft.com/Files/test.swf"}}
当前页指定位置自动适配网页加载测试
http://zorrosoft.com/flashframe.html
启动后会先后收到三个JSON数据包
A、{"ret":0,"rid":1,"data":{"ID":2}}
代表小程序WS侦听服务就绪
B、{"event":"Wrl_Listen","aid":2,"data":{"SID":"123","PID":"FlashWebPlayer","port":990}}
返回的侦听端口,可再建立一个Web Socket连接后,调用小程序中的相关功能,比如新播放一个Flash。
代表小程序创建成功,返回ID为当前小程序运行ID,通过此ID,可执行Wrl_AppletControl、Wrl_AppletScroll、Wrl_AppletResize等命令。
C、{"event":"Wrl_AppletOK","aid":2,"data":{"SID":"123","PID":"FlashWebPlayer","Port":990}}
2)、请求控制Flash Player内嵌网页小程序:
当前端不再需要小程序时可指定关闭,或者显示/隐藏及全屏显示等
ID为Wrl_FlashApplet启动小程序时返回JSON中的ID值,Code代表控制类型掩码:1关闭 2全屏显示 4自动隐藏 8还原显示 16自动适配网页高度和宽度显示模式切换 32强制隐藏。其中全屏显示2,可直接通过热键ESC或取消,4和32隐藏后可通过8恢复显示
{"req":"Wrl_AppletControl","rid":2,"para":{"ID":"1","Code":4}}
3)、请求滚动网页中Flash Player内嵌网页小程序:
当前端截取到网页滚动通知时,需要调用此接口实现小程序和网页的滚动联动
ID为启动小程序时返回JSON中的ID值
Code为滚动方向1是水平直,2是垂直,3是同时
Left为横向滚动条位置,Top为纵向滚动条位置
{"req":"Wrl_AppletScroll","rid":3,"para":{"ID":"1","Code":2,"Left":0,"Top":100}}
4)、请求改变网页中Flash Player内嵌网页小程序显示位置或大小:
当前端网页显示区域缩放时,可动态修改小程序的显示位置或大小
ID为Wrl_FlashApplet启动小程序时返回JSON中的ID值,Width和Height分别为新的宽度和高度
X和Y分别为新的显示位置,不指定时保持不变,指定时原设置的IframeX和IframeY失效
{"req":"Wrl_AppletResize","rid":4,"para":{"ID":1,"Width":500,"Height":600}}
或,同时修改小程序显示起始坐标
{"req":"Wrl_AppletResize","rid":5,"para":{"ID":1,"Width":500,"Height":600,"X":20,"Y":20}}
5)、请求设置网页预留右侧宽度和底部高度,滚动条信息、垂直滚动及水平滚动位置:
当小程序显示区域超过当前网页时,需去除滚动条的显示影响
ID为启动小程序时返回JSON中的ID值,BarW为预留右侧宽度 BarH为预留底部高度
Code 1代表有水平滚动条,2代表有垂直滚动条,3代表都有
ScrollTop垂直滚动条位置 ScrollTop水平滚动条位置
{"req":"Wrl_ScrollBar","rid":6,"para":{"ID":"1","Code":2,"BarW":0,"BarH":0,"ScrollTop":0,"ScrollLeft":0}}
6)、请求对小程序窗口做Alpha透明处理,便于前端临时显示覆盖到小程序窗口的菜单等:
ID为Wrl_FlashApplet启动小程序时返回的ID值,Alpha为透明度百分比,1-100
{"req":"Wrl_AppletAlpha","rid":7,"para":{"ID":1,"Alpha":30}}
7)、请求对小程序窗口内容进行截图:
ID为启动小程序时返回JSON中的ID值,
File为指定截图文件保存路径或扩展名
Base64指定为1时代表返回BASE64编码的图像内容
{"req":"Wrl_AppletSnap","rid":10,"para":{"ID":1,"Base64":1,"File":".png"}}
8)、请求缩放IE控件内嵌网页小程序,用于浏览器网页按比例缩放,一般不需要处理:
ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
{"req":"Wrl_AppletScale","rid":11,"para":{"ID":1,"Scale":120}}
3、小程序安装、升级、卸载
1)、请求安装Flash Player内嵌网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"Flash Player内嵌网页小程序","PID":"FlashWebPlayer","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的Flash Player网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Net/FlashPlayer.pid","MD5":"B575A65D148F3616BBAD39C84C5E5B64","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"98F8953DB920DBD914C567825DB8DA846AED2DAE998BD627F05582114046A85F6F72874F5347ED04483B71CEE54F42FA3BEE540D8D324F59450B15327E879D44FC3059F399A275C5DE0B0D1F47CBDDCDC07D390221D7E94534736FEF27948513B063A10C95C47747D98EBAB5CF55D1030D7431DBEF1C0CCA09E16FC8855FE98D58EF2A0AC62FAAD1640C22E1C1661C50144F0751A335DC24A0B367E6589AC58620BEF3F372CFD84849487C83A53C9FACD7E18E95B028488F19CA64C23FAD9EE033455970A093E9CE53B3B4076AD030A5134D382EBE95DF1C00C47AB5348058E9E51077BA7CF2A9168C85795664F564004FD801DA6F48AB31A879CA9C2A4BAD84"}}
启动安装后,会不断收到安装进度直到安装结束。
2)、请求升级Flash Player内嵌网页小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"Flash Player内嵌网页小程序","PID":"FlashWebPlayer","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的Flash Player网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Net/FlashPlayer_Update.pid","MD5":"E1DC830393C32E7DC6BE130F9343A6C0","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"297028CC4088623B78A0213E1A40C8FC36136CBB128395F4969DC86A5BFABC06F4A35BCE7E9BE9DC4CBBADC1127041BC4737DA68B5C7EEE64AE253EA024844D4FE2E67662DF59CF8EED6FF7D940289DFE0D0C8485AA0C0C90EDF6A738C6FF930198ABC413E1D741046982D994F107BD5B69841C8F3D29ACAA2DCE2F314F0F03926CB05F9BED059CD9FE2BF4057FC3A4596E4A9693E39E30970A60A768794ED36198A0458B3DA99CF9055BB0F92224902F395659C1B7F3D92A0481D02B960CED17D89883A7C6AA39E644613ABBCB55BC3F216121CC132BA6FF3AF8DF5F21E186BBB5E761FB3C94A803304C0E56E5218857ACF61266DB8AB993B2E1137F23CDCCE"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
3)、请求卸载Flash Player内嵌网页小程序:
{"req":"Plugin_Remove","rid":3,"para":{"PID":"FlashWebPlayer","Type":8}}
4、Flash Player小程序转调用ActiveX接口,先根据Wrl_FlashApplet请求启动后返回的端口号,新建立一个WebSocket连接后可执行如下指令:
A、常用功能请求:
1) 当前是否在播放
请求:{"req":"Flash_IsPlaying","rid":50,"para":{}}
返回:{"ret":0,"rid":50,"data":{"IsPlaying":"1"}}
ret为请求返回值,0正常,非零不正常,不正常时请取和ret同级的错误描述err,下同
IsPlaying为1代表正常播放
2) 设置是否循环播放
请求:{"req":"Flash_PutLoop","rid":51,"para":{"Loop":"1"}}
返回:{"ret":0,"rid":51,"data":{"Ret":"0"}}
Ret为调用ActiveX对应函数返回值,0代表正常
3) 获取是否循环播放
请求:{"req":"Flash_GetLoop","rid":52,"para":{}}
返回:{"ret":0,"rid":52,"data":{"Loop":"1"}}
Loop返回是否循环播放,1代表循环
4) 设置播放内容
请求:{"req":"Flash_PutMovie","rid":53,"para":{"Movie":"http://zorrosoft.com/Files/test.swf"}}
Movie为播放路径,如果是本地文件或非英文的,本地路径斜杠\替换为反斜杠/,非英文的需要URL编码后再传递
返回:{"ret":0,"rid":53,"data":{"Ret":"0"}}
Ret为调用ActiveX对应函数返回值,0代表正常
5) 获取循环内容
请求:{"req":"Flash_GetMovie","rid":54,"para":{}}
返回:{"ret":0,"rid":54,"data":{"Movie":"http://zorrosoft.com/Files/test.swf"}}
Movie返回循环内容
6) 请求播放执行
请求:{"req":"Flash_Play","rid":55,"para":{}}
返回:{"ret":0,"rid":55,"data":{"Ret":"0"}}
Ret为调用ActiveX对应函数返回值,0代表正常
7) 请求播放停止
请求:{"req":"Flash_Stop","rid":56,"para":{}}
返回:{"ret":0,"rid":56,"data":{"Ret":"0"}}
Ret为调用ActiveX对应函数返回值,0代表正常
8) 请求播放回退
请求:{"req":"Flash_Back","rid":57,"para":{}}
返回:{"ret":0,"rid":57,"data":{"Ret":"0"}}
Ret为调用ActiveX对应函数返回值,0代表正常
9) 请求播放前进
请求:{"req":"Flash_Forward","rid":58,"para":{}}
返回:{"ret":0,"rid":58,"data":{"Ret":"0"}}
Ret为调用ActiveX对应函数返回值,0代表正常
10) 请求Flash的版本
请求:{"req":"Flash_Version","rid":59,"para":{}}
返回:{"ret":0,"rid":59,"data":{"Ret":"0"}}
Version返回版本信息
11) 请求退出小程序
请求:{"req":"Flash_Exit","rid":60,"para":{}}
B、其他功能请求:
1) 请求获取Flash参数
请求:{"req":"Flash_GetFlashVars","rid":70,"para":{}}
返回:{"ret":0,"rid":70,"data":{"FlashVars":""}}
FlashVars返回参数
2) 请求设置Flash参数
请求:{"req":"Flash_PutFlashVars","rid":71,"para":{"FlashVars":"Test"}}
返回:{"ret":0,"rid":71,"data":{"Ret":""}}
Ret为调用ActiveX对应函数返回值,0代表正常
3) 请求获取参数
请求:{"req":"Flash_GetVariable","rid":72,"para":{"Name":"Test"}}
返回:{"ret":0,"rid":72,"data":{"Variable":""}}
FlashVars返回参数
4) 请求设置参数
请求:{"req":"Flash_PutVariable","rid":73,"para":{"Name":"Test","Value":"1"}}
返回:{"ret":0,"rid":73,"data":{"Ret":""}}
Ret为调用ActiveX对应函数返回值,0代表正常
5) 请求获取就绪状态
请求:{"req":"Flash_GetReadyState","rid":74,"para":{}}
返回:{"ret":0,"rid":74,"data":{"ReadyState":""}}
ReadyState返回就绪状态
6) 请求获取总帧数
请求:{"req":"Flash_GetTotalFrames","rid":75,"para":{}}
返回:{"ret":0,"rid":75,"data":{"TotalFrames":""}}
ReadyState返回就绪状态
7) 请求获取加载百分比
请求:{"req":"Flash_PercentLoaded","rid":76,"para":{}}
返回:{"ret":0,"rid":76,"data":{"PercentLoaded":""}}
PercentLoaded返回加载百分比
8) 请求获取播放品质
请求:{"req":"Flash_GetQuality","rid":77,"para":{}}
返回:{"ret":0,"rid":77,"data":{"Quality":""}}
Quality返回播放品质
9) 请求设置播放品质
请求:{"req":"Flash_PutQuality","rid":78,"para":{"Quality":1}}
返回:{"ret":0,"rid":78,"data":{"Ret":""}}
Ret为调用ActiveX对应函数返回值,0代表正常
10) 请求获取背景色
请求:{"req":"Flash_GetBackgroundColor","rid":79,"para":{}}
返回:{"ret":0,"rid":79,"data":{"BackgroundColor":""}}
BackgroundColor返回播放品质
11) 请求设置背景色
请求:{"req":"Flash_PutBackgroundColor","rid":80,"para":{"BackgroundColor":-1}}
返回:{"ret":0,"rid":80,"data":{"Ret":""}}
Ret为调用ActiveX对应函数返回值,0代表正常
如您需要更多的接口,请联系我们。
5、Flash Player内嵌网页小程序接收的通知:
这些通知必须通过WebSocket连接到此小程序侦听的端口才能接收到。
A、ActiveX事件:
1) ReadyState状态变化事件通知
{"event":"Flash_ReadyStateChange","data":{"State":0}} State为状态值
2) Progress进度事件通知
{"event":"Flash_Progress","data":{"Percent":0}} Percent为进度百分比
3) FSCommand执行事件通知
{"event":"Flash_FSCommand","data":{"Command":"","Args":""}} Command为请求命令,Args为参数
4) Call事件通知
{"event":"Flash_Call","data":{"Request":""}} Request为请求
B、PluginOK支持的事件通知:
1) Flash_FullScreen 小程序是否响应了热键全屏
{"event":"Flash_FullScreen","data":{"FullScreen":0}} FullScreen为当前是否全屏标记
2) Wrl_AppletExit 小程序退出通知
{"event":"Wrl_AppletExit","data":{"ID":1}}
6、其它
请求参数的JSON数据包,请确保是UTF-8无签名的编码。
更多接口请求说明,请参考安装目录中的文档TestWrl.txt和SDK包中的“PluginOK开发者手册.doc”。
如还有疑问请直接联系客服 加微信:ZorroSoft,或加QQ群:23126938
\ No newline at end of file
......@@ -46,7 +46,7 @@ Version 指定加载的IE版本,0不指定,比如9999是IE9标准模式 8888
X64:是否启动64位版
Url:加载小程序所在的网页实际地址
Open:为需要用IE内核打开的Url地址或本地网页地址
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
注意:Open和Url如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递
举例: