提交 e065fbb9 编写于 作者: W wangzuohuai

网络版2.1.3.1(单机版1.3.3.1)

    1、细化网络版服务端审批具体到指定小程序的使用权,支持SAAS模式;
    2、标准版不再要求管理员权限启动中间件主程序;
    3、中间件支持OEM配置联系方式,支持渠道销售;
    4、WPS网页小程序增强个人版的安装检测机制;
    5、IE控件及Flash网页播放小程序支持在同一网页同时加载两个实例;
    6、修改部分范例及内置小程序的唯一标识为友好字符串;
    7、解决个别情况下内嵌小程序滚动时显示位置错误问题。
上级 a60b6baa
......@@ -46,7 +46,7 @@ Open:为需要签章的文件路径,磁盘目录斜杠用/
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_AppletStart","rid":8,"para":{"Type":"0","Title":"AIPSign Applet","NodeName":"AIPSignApplet","PID":"62978E9A-9B00-4E42-9E70-0BE7526E14C0","Flag":0,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/AIPApplet.html","Open":"http://zorrosoft.com/Files/PluginOK.pdf"}}
{"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"}}
指定页面内加载后适配网页切换显示:
http://zorrosoft.com/aipframe.html
......@@ -54,10 +54,10 @@ http://zorrosoft.com/aipframe.html
启动后会先后收到三个JSON数据包
A、{"ret":0,"rid":1,"data":{"ID":2}}
代表小程序WS侦听服务就绪
B、{"event":"Wrl_Listen","aid":2,"data":{"SID":"123","PID":"62978E9A-9B00-4E42-9E70-0BE7526E14C0","port":1200}}
B、{"event":"Wrl_Listen","aid":2,"data":{"SID":"123","PID":"AIPSignApplet","port":1200}}
返回的侦听端口,可再建立一个Web Socket连接后,调用小程序中的相关功能。
代表小程序创建成功,返回ID为当前小程序运行ID,通过此ID,可执行Wrl_AppletControl、Wrl_AppletScroll、Wrl_AppletResize等命令。
C、{"event":"Wrl_AppletOK","aid":2,"data":{"SID":"123","PID":"62978E9A-9B00-4E42-9E70-0BE7526E14C0","Port":1200}}
C、{"event":"Wrl_AppletOK","aid":2,"data":{"SID":"123","PID":"AIPSignApplet","Port":1200}}
2)、请求控制AIP电子签章内嵌网页小程序:
当前端不再需要小程序时可指定关闭,或者显示/隐藏及全屏显示等
......@@ -104,19 +104,19 @@ ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
1)、请求安装AIP电子签章内嵌网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"AIP电子签章内嵌网页小程序","PID":"62978E9A-9B00-4E42-9E70-0BE7526E14C0","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的AIP电子签章内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/AIPSignApplet.pid","MD5":"74F4AF60F9196B55683E4493BD3F1801","Version":"2.1.2.1","Size":557056,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"2FAAAADAA7509A1EC88338E09AB5A450F2A5E1BC60EC15736B0C3662FCA0F53A3EEEF39DE7220F3D1A62DEB51BB4EB3E9FC0D97B2D32E2ABAF26571F7A42E30478585B89BD1CE017B75084D0745D51FF4F0389FAE4944294ED154D388F981215575C053A32B6548004ACC45C8FAE5B53C69B12C07E2A1D1864DBD24FAEFA8F93E77103BC1704DF59F4D81EE43CF98036CEDF4DD366702F8A35550C98D296B9B33E6E7A967825FE2F2D7BB4C44E6C555FE843B058852CE483AB55CD3A9694AC0A775174BAC8E11AE774089AAC4C75A39EAE3FFCFA0678CDB29F0F31C86CA5078DBC4784013B02901E27454FA0A1508A121B434BC515A105BB81F4D72916EE81C9"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"AIP电子签章内嵌网页小程序","PID":"AIPSignApplet","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的AIP电子签章内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/AIPSignApplet.pid","MD5":"4F9514D7B72B3CE2E6952268F3ED6D75","Version":"2.1.3.1","Size":557056,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"580F3AF790C25EA9234B0852B1B62E22983E56875A8CE822A8CDA0108A4505F9B8676E4E8AE8B0BFCB9533FE8D9E5EB7B04366389D1ACD1BF60CAD3246BB0DEE2A1563BB7D7063AAF7EC7A229E13CDB863DC34CB1577A8A0E57A7451848272C350BB9E2DAD65E6F911217DF566384B26EB357005098374765895464F17AB4D5203E367101955A7752E8ED17D6C002B3558A23C8AF7EA6085E6BF1A07865E21C8D139F56F344FCE84918E03CEACD2795C6DFA15F8BA07906128A6802943FEA53833B232B1727F7BF7889AC609B77763A1A1DBFD855B5484C7E66B795A56BE1D7E3A46A33D69E9D7E8B358928575B71741EBDF7CC7B664159DECB8D2769AA21279"}}
启动安装后,会不断收到安装进度直到安装结束。
2)、请求升级点聚AIP电子签章内嵌网页小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"AIP电子签章内嵌网页小程序","PID":"62978E9A-9B00-4E42-9E70-0BE7526E14C0","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的AIP电子签章内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/AIPSignApplet_Update.pid","MD5":"5E13E3E45C95B88EC3EF0D52C5C71983","Version":"2.1.2.1","Size":557056,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"BD11775C01E2516BE4DE876A594D2669F49ED28086AE81C270F913C4251D7418498B857683A2D1D751697884401CF9A05EBE444539C928AD2DC507A97F3BD8B88366D3A224ADAF74D2B248EACFB670A357D490A4862643DE5EA8754430DCD9DA784396D36B211035DAF315C46625C49E4F3ABD7BCEB9D677186DC578DFCCBD5B0DB8C48905CC07920F2C148019DBA72EFBCD2967D1B4DA915C4A747B0E850ABDE6D28ACE53491BDD8CDA04E8B110B96F7451A67EAD1A4F0A63FD819D1874E2B0FD3FD7D2965F9EDA35826CF2B8EDDBC207ED73DD83D680F9E25A0C2FD504C3D76638096F4BE575E68A87BE9BD2E3957BCD74AF9F84A6D53F3560CD232FD891B2"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"AIP电子签章内嵌网页小程序","PID":"AIPSignApplet","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的AIP电子签章内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/AIPSignApplet_Update.pid","MD5":"6EF30751D1E397932C91E3B4FDF1F189","Version":"2.1.3.1","Size":557056,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"1E45F581BAFABF65027FCF8D896C408475499CF1497CA9310B5E0EF770F77F573657AE376E6D0BD9BC6947171D42CDEDE9E2838A954C1BA13C8E757E755CC6074F0D120EC18D8BF5F5B5A0CA2EEA3438A56F1DE9F87C7514D67B93958B547C9DF6B3DCD9FB6FACA9339FB9210AEE27F14924746523BAA25B990F99325A1736AA77A69C11F89DF82356250BB5093C29FDC0D2713560A8CA7B001F3FBB6684487B4BF409C2D8A06A7B02178EA9BE833337A121C23F6268E65947F1BAF8B14EFCEEB25817C10CCD05110F54625D4CC8E9A1158628F7FB982E963D726D06C58F34F87C9065307287A150EB5C17E8E0E017CF9F180D83D60D35A51BC145B270CADFB8"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
3)、请求卸载AIP电子签章内嵌网页小程序:
{"req":"Plugin_Remove","rid":3,"para":{"PID":"62978E9A-9B00-4E42-9E70-0BE7526E14C0","Type":8}}
{"req":"Plugin_Remove","rid":3,"para":{"PID":"AIPSignApplet","Type":8}}
4、AIP电子签章内嵌网页小程序转调用ActiveX接口(接口函数及方法说明详情请参考文档“AIP电子签名系统开发接口.chm”),先根据Wrl_AppletStart请求启动后返回侦听端口号,针对此端口新建一个WebSocket连接后可执行如下指令:
A、属性操作:
......
......@@ -65,10 +65,10 @@ http://zorrosoft.com/acadframe.html
启动后会前后收到三个JSON数据包
A、{"ret":0,"rid":1,"data":{"ID":3}}
代表小程序WS侦听服务就绪
B、{"event":"Wrl_Listen","aid":3,"data":{"SID":"123","PID":"997599C3-3C4D-445E-B741-0AD934B45459","port":990}}
B、{"event":"Wrl_Listen","aid":3,"data":{"SID":"123","PID":"ACadApplet","port":990}}
返回的侦听端口,可再建立一个Web Socket连接后,调用小程序中的相关功能,比如新打开一个网页。
代表小程序创建成功,返回ID为当前小程序运行ID,通过此ID,可执行Wrl_AppletControl、Wrl_AppletScroll、Wrl_AppletResize等命令。
C、{"event":"Wrl_AppletOK","aid":3,"data":{"SID":"123","PID":"997599C3-3C4D-445E-B741-0AD934B45459","Port":990}}
C、{"event":"Wrl_AppletOK","aid":3,"data":{"SID":"123","PID":"ACadApplet","Port":990}}
2)、请求控制Autodesk内嵌网页小程序:
当前端不再需要小程序时可指定关闭,或者显示/隐藏及全屏显示等
......@@ -114,20 +114,20 @@ ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
1)、请求安装Autodesk内嵌网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"Autodesk内嵌网页小程序","PID":"997599C3-3C4D-445E-B741-0AD934B45459","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的Autodesk内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌AutoCAD等程序进行在线编辑、查看或审阅工程图","DownAddr":"http://local.zorrosoft.com/Files/Plugin/ACadApplet.pid","MD5":"F95BE973B6115E2058796915A74E8669","Version":"2.1.2.1","Size":688128,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"218FE6C160495AA53F1D4B688502F3D2C37CDFD4BE9A27EF07C94F52927635B78F216CE909826BBDD30897240D51065393E4042C19E89A0BDAC451FF12B921DE141E66EF71D84633014351D1E46BEEDEA741C6BA079733FB9389D8EE46A19608D091058AFC1DABFB7C6EFFCCC0B088533BF2A7B2ECC74D0B2698293A7026F23093B90B7B70BD0223C8D6F6DD0DA5D4BFB870D2FD5634201C2C44CB060533EB7DCE856BFDAA4C05C4B3E473F4F8D45ED61A5F05730B0904929C9E81724752DD087D7CE3E7FDDFE992EE64238C500B7BE33246C22E9420CD8105E5A3664C5B8267C465BB03B5FEA0D68B93ADA3321D88BEE5C5F5C54D1D6C8CFE61680A747320AE"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"Autodesk内嵌网页小程序","PID":"ACadApplet","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的Autodesk内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌AutoCAD等程序进行在线编辑、查看或审阅工程图","DownAddr":"http://local.zorrosoft.com/Files/Plugin/ACadApplet.pid","MD5":"3A770DC57730216289722D8241CA3C96","Version":"2.1.3.1","Size":688128,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"31AA84AC8F09649EF3E484E8E48497CA0C418E16807DB57A12EAA43D37AB6C7168C91F9A5C24CEE1E727CD511333A3E51A7697F456A406934F29B9A3EC121DEA21B8EE61F3C98C8AA9343BAE34DCE13E4426CF5B774D73154BCE109A25C84BCB24A277722DEFC4C32ECE652116C77EC3FF67ECFCFB7B4D381144DD15B2E4024D95F2FB027138C0742730D5FB326AC0975AECF3E3536A3B9FF115B0520A62456445ED55D9986995B67563912FBDF1D8444DE711EF8E42FF4B26DBFEB53B60C896475F3D08EE9C7292F61B0E867E8B1A431A829C098F719DA41F28082934AA991A6F11101002DC0087781D9C23FBB13F77156A14AA1CF1E06BCAD3D8D64BD33747"}}
启动安装后,会不断收到安装进度直到安装结束。
在发布时,也可以把此小程序目录文件和中间件一起打包后发布,不用单独分发。
2)、请求升级Autodesk内嵌网页小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"Autodesk内嵌网页小程序","PID":"997599C3-3C4D-445E-B741-0AD934B45459","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的Autodesk内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌AutoCAD等程序进行在线编辑、查看或审阅工程图","DownAddr":"http://local.zorrosoft.com/Files/Plugin/ACadApplet_Update.pid","MD5":"43D84348D877DD4678E73C2EB1DB8C6F","Version":"2.1.2.1","Size":688128,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"19841B79EA20C09A3C6312B50C1C5A868324379B193CFB807895D4A9E6502D2C52D5599BB023162256BF764253EF5A6E6026A18C418794A6757232F60C5CBD109F458D8FD7908D43F36D0CC979ADE49329A658445D1C6562F18F9F355AC82D051564623C81037AB07AD011853BA57277EFEB1C4B9E32D011804D690CFC219505673E85BF04B4653B1BBE550F09674F37FE1447EDED744C1C9E7DF224B733AC087CCD495BF9526BFAC1C550F674D6460B7FC4C2848D368B3656ED9D9B914D3A158BDEADFDA27487AD017C78721C67A2C69AF5F080A8518190B9A06F645CF43E20DD358AA8EEF90DF99F68547932DE0329C34C19B851A698DC182379817E5AA47D"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"Autodesk内嵌网页小程序","PID":"ACadApplet","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的Autodesk内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌AutoCAD等程序进行在线编辑、查看或审阅工程图","DownAddr":"http://local.zorrosoft.com/Files/Plugin/ACadApplet_Update.pid","MD5":"1A0BF408CCC18A78A2483B13E47FEA6D","Version":"2.1.3.1","Size":688128,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"C19A813EE9C820F6544B79CA0E720DD8BC813CE711B99ED2E6077D864390FB0030EF591993F16F15DF666A0482EB993CABA28BAE189B1E1478E8D06A0E52116211D00655504A6F491458ACF5FFDCC5B42C85FFA7351463584FBD730F96E3BC8AA9493248357B091A7BB2E3964C9A90FB5C301E9978BC3725EF0D182882BFF32E92DA372C58A7911F754A67344465B28A3FEC9DF28EBF8EA8CA50AE2EB7FBA4FED2994F4F94B1E37029C21B33756091254DCFDE8D4E656825524893ECDC57D97AC3D6EC533BD83457BA07B709B3FA23C997F58AA021B6E50CC43DA6A80BABFCC569129C04654B6276E7C19986DB22E80D1B39DA6894A9DF21A7E9E7F6AAA4FF23"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
3)、请求卸载Autodesk内嵌网页小程序:
{"req":"Plugin_Remove","rid":3,"para":{"PID":"997599C3-3C4D-445E-B741-0AD934B45459","Type":8}}
{"req":"Plugin_Remove","rid":3,"para":{"PID":"ACadApplet","Type":8}}
4、Autodesk内嵌网页小程序转调用Autodesk的AutoCAD软件VBA接口及DWG TrueView或Design Review的OCX控件接口,先根据Wrl_ACADApplet请求启动后返回的端口号,新建立一个WebSocket连接后可执行如下指令:
A、常用功能请求:
......
2021-03-21 PluginOK升级网络版2.1.2.2(单机版1.3.2.2)
2021-03-30 PluginOK升级网络版2.1.3.1(单机版1.3.3.1)
1、细化网络版服务端审批具体到指定小程序的使用权,支持SAAS模式;
2、标准版不再要求管理员权限启动中间件主程序;
3、中间件支持OEM配置联系方式,支持渠道销售;
4、WPS网页小程序增强个人版的安装检测机制;
5、IE控件及Flash网页播放小程序支持在同一网页同时加载两个实例;
6、修改部分范例及内置小程序的唯一标识为友好字符串;
7、解决个别情况下内嵌小程序滚动时显示位置错误问题。
2021-03-21 PluginOK升级网络版2.1.2.2(单机版1.3.2.2)
1、单机版增加绑定设备唯一序号授权方式;
2、实现VLC等小程序在同一网页同时加载两个实例机制;
3、网络版授权服务器端每个申请授权增加备注信息;
4、内嵌网页小程序运行更好兼容微软新版Edge浏览器;
5、解决内嵌小程序网页区域点击切换输入焦点错误问题;
6、解决指定位置启动内嵌小程序时可能取网页多源配置失败问题;
7、解决VLC多媒体播放网页小程序点击切换焦点显示边框异常问题;
8、解决Windows 7下中间件安装到系统程序目录可能无法加载内嵌小程序问题。
2021-03-15 PluginOK升级网络版2.1.2.1(单机版1.3.2.1)
1、网络版终端授权使用实现审批机制,后台管理员授权确认后方可使用;
2、优化网络版授权时效机制,更精准实现终端授权期限更新和显示;
3、优化HTTP上传和下载处理,解决个别情况网络操作错误问题;
4、大幅度提高内嵌小程序在浏览器多窗口情况下的响应速度;
5、优化小程序安装引擎,增强小程序包安全检查及覆盖安装失败后续处理;
6、解决内嵌小程序启动时返回的aid参数值错误问题;
7、解决高级版内嵌小程序启动时可能不显示窗口问题;
8、解决Exe小程序退出后端口号可能不能重复使用问题。
3、网络版授权服务器端实现审批机制,每个申请授权增加备注信息;
4、优化网络版授权时效机制,更精准实现终端授权期限更新和显示;
5、优化HTTP上传和下载处理,解决个别情况网络操作错误问题;
6、内嵌网页小程序运行更好兼容微软新版Edge浏览器;
7、大幅度提高内嵌小程序在浏览器多窗口情况下的响应速度;
8、优化小程序安装引擎,增强小程序包安全检查及覆盖安装失败后续处理;
9、解决内嵌小程序网页区域点击切换输入焦点错误问题;
10、解决指定位置启动内嵌小程序时可能取网页多源配置失败问题;
11、解决内嵌小程序启动时返回的aid参数值错误问题;
12、解决VLC多媒体播放网页小程序点击切换焦点显示边框异常问题;
13、解决高级版内嵌小程序启动时可能不显示窗口问题;
14、解决Exe小程序退出后端口号可能不能重复使用问题;
15、解决Windows 7下中间件安装到系统程序目录可能无法加载内嵌小程序问题。
2021-02-23 PluginOK升级网络版2.1.1.2(单机版1.3.1.2)
1、适配企业域控环境电脑使用和非管理员权限登录桌面使用;
......
......@@ -7,18 +7,18 @@
2、请求安装文件操作小程序:
{"req":"Plugin_Install","rid":1,"para":{"Name":"文件操作小程序","PID":"199BB8A7-9DD5-41F5-AE9D-2AA94300B0B3","Date":"2021-03-15","Desc":"PluginOK中间件之上跨浏览器的文件操作小程序,提供文件HTTP协议上传与下载、本地图像文件缩放与旋转、本地文件访问、本地程序运行等服务,可在Chrome、Edge、Firefox、IE、Opera、360、QQ等的浏览器最新版中调用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/WrlFileApplet.pid","MD5":"209F52880CAB73A4DD311E564ACEC8CB","Version":"2.1.2.1","Size":491520,"HideIns":0,"Type":1,"Cookie":"","Auth":"","TK":"3890022782028FAFE2D84840C433F663AB02B827CA642A856DD8EAE48688601F78D883A4AF690C7B2D48B4E2A5D05217D02E66779A01019D4A31B09142278698D510C40A91F8003B94C2043A6A52E39399382A6A1F63C9DE3A4D7A96AD65CFC60FAC48717C1BE297CD3403E6B2A8DD051A528796E4C856C985A0ED71848E280F1735464D42CCCB374554408B6897B063558EEE1217814A5CA453C1C34E5AF77D74F545BD1FF45A5DA4A2F0AF98B23588C0F57D5321A8F5AF8BCBB58D24262B6D76FE0E2816BA6B8E127A7F5F54D63E526C3018A2686A7BD176616CA29AFFA36C617A4916117D89C5BEAE5160A3415D4D15624D70EAECEBAF173625AA74F08FCC"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"文件操作小程序","PID":"199BB8A7-9DD5-41F5-AE9D-2AA94300B0B3","Date":"2021-03-27","Desc":"PluginOK中间件之上跨浏览器的文件操作小程序,提供文件HTTP协议上传与下载、本地图像文件缩放与旋转、本地文件访问、本地程序运行等服务,可在Chrome、Edge、Firefox、IE、Opera、360、QQ等的浏览器最新版中调用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/WrlFileApplet.pid","MD5":"AC63F717076ACD7FDC0A4D5B79026C0C","Version":"2.1.3.1","Size":491520,"HideIns":0,"Type":1,"Cookie":"","Auth":"","TK":"9BBE6F48DD17C0F06B6DD47AAA1D8B6152AAB5A15C3E2245AE71D325F27CF273B802110287FCC3A3019E72CB79A4822C3A963E4E736970757C8D52D74F1A28A9947356065C0BC0039E8E6EA41D1DE742F0D9A6E1B1B18B59E6A31F75229D3C1374E0FF0CC78A1BB787D03B213B4349298884864D43879C62A5FF38CA15E3E5A0EA16992C9E82BC628AEDD1BC7ADB8271CEB1829611C424309226E7BC5892995F31498F7AA061D74A2C20082F1CF74BE2C33E2A6444576F3140DB41EE3921011945907AF87C8B3FC4BA6FC0E5C32D5E9919E955FE2F1F7DC7B030285CEBA198F662E4FDB9B47A040CC00C152C11540EAD93EBF42EDA8F1F397B8EA1576ACD8E4C"}}
3、请求更新文件操作小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"文件操作小程序","PID":"199BB8A7-9DD5-41F5-AE9D-2AA94300B0B3","Date":"2021-03-15","Desc":"PluginOK中间件之上跨浏览器的文件操作小程序,提供文件HTTP协议上传与下载、本地图像文件缩放与旋转、本地文件访问、本地程序运行等服务,可在Chrome、Edge、Firefox、IE、Opera、360、QQ等的浏览器最新版中调用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/WrlFileApplet_Update.pid","MD5":"154E710B80F5D42038E66D158BDF2A5F","Version":"2.1.2.1","Size":491520,"HideIns":0,"Type":1,"Cookie":"","Auth":"","TK":"5ADE8F2DC3FED587155F0FB13D9141BB347D86FEEE6AD9F7C7A8877A8EBFA2C86AFFAA59854DCF39DA25209681A5CAC3A0D6A26504144AE3CE206E440D9375A5594C9AD7A7EB288BA43F3DE2B5B1041989D856719ABF1704A075815F4DFEABEE58DAE29525C6CAEF870C20566D5E5884476C8D47524D5DCBCB57960B105FC86A8A3ECB73CD4AF7A2DA286B1AEA5B2C2A33BC327FD821C0F675BB81A8CD58F41D186732B3CA3DF108F2598DBF3260030B37D564FB9A5650A2E1D9B455531C36BC82FF4039C9BC6BA070491498CA2C0CBCA1024363BDBC0A5952C8AFD0E02F37E231654224B0A55E29B8B92A370364FD9EB159239853564C435770EBCC1340CA8C"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"文件操作小程序","PID":"199BB8A7-9DD5-41F5-AE9D-2AA94300B0B3","Date":"2021-03-27","Desc":"PluginOK中间件之上跨浏览器的文件操作小程序,提供文件HTTP协议上传与下载、本地图像文件缩放与旋转、本地文件访问、本地程序运行等服务,可在Chrome、Edge、Firefox、IE、Opera、360、QQ等的浏览器最新版中调用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/WrlFileApplet_Update.pid","MD5":"1D1F627802D92E33516CF17F31C15F82","Version":"2.1.3.1","Size":491520,"HideIns":0,"Type":1,"Cookie":"","Auth":"","TK":"094AA8318B2791EB1DAE1CEE58DB9571DB6D5453D1801E82D1C79E8D0BA62E545713AD4791980AC47D6C83417BDAC148FF4E84C277E68939B6D18A6B825726B9E68EDEE44F060B0A4E849A3E13B6263237A6E465A6E0B050F28F55FF788EDC5B18A93B74407F508DEB04DCB6C2B3FF2027B4E0412D03128561D57ED1799A0F2F4068A0011E95151DC5351BA02FB4E84778211CC602A5919D096F102D83D87A6C394B8CD97D9441CBE7ADA3554E6E17F3B36AB05FB7486DB2BFD134781A2783C27D227F8C39C8BD1BB28122EA5BA4F45D4A6884C492659E79407135BB6C523EEB392769FFC79D09322D8D8EF71EBF4C440DE70DE6E24FB5F6CBB5C53D0BEEEA14"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
4、连接请求文件操作小程序服务:
1)、图像文件处理及本地文件操作服务
说明:以下功能请通过Web Socket连接后可执行,如默认侦听端口不是80(关于如何配置侦听端口,请参考SDK包中的文档“PluginOK开发者手册.doc”),请在连接地址中指定端口号进行连接。
打开测试网页,输入地址:ws://localhost?sid=667&pid=D325C871-AB46-479B-B20E-1D861D26CA89&flag=1 点击连接;
打开测试网页,输入地址:ws://localhost:80?sid=667&pid=D325C871-AB46-479B-B20E-1D861D26CA89&flag=1 点击连接;
支持的协议功能如下:
A、批量旋转图像文件
......@@ -68,7 +68,7 @@ Dir
无属性Attr、大小Size和文件修改时间Write的是目录,否则是文件
2)、文件HTTP上传与下载服务
打开测试网页,输入地址:ws://localhost?sid=678&pid=762C3400-B3E5-4F00-8AA7-18E00F13E414&flag=1 点击连接;
打开测试网页,输入地址:ws://localhost:80?sid=678&pid=762C3400-B3E5-4F00-8AA7-18E00F13E414&flag=1 点击连接;
支持的协议功能如下:
A、下载文件
......
......@@ -108,13 +108,13 @@ ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
1)、请求安装Flash Player内嵌网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"Flash Player内嵌网页小程序","PID":"E7C7BDA6-C828-46F1-A7BA-B4C572A01100","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的Flash Player网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/FlashApplet.pid","MD5":"D4C17C5AA8A8506878A795145861CE93","Version":"2.1.2.2","Size":49872896,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"3C9FC466E93286BFC07EB74060DC0D32BEAF90D2A26497086C3292582B3E94E02525B1C06EEA7E13BA53A2F93D925068FEAB09B0D7F9C469EA60617010C0E7E1F3CEFBE364839B1470F2C7137E041EF6BF3BCC86F482559022849A625E51BF9756DAAE72E5AE614F0CDF4E740D835F984CB32DBA74E301ED6DF7F45FC316EB87F186BA2F5156B68145D27F700344335D1950D3057B334AC9B9284F68E3F601F435ADE08541329E40F4DEC67D6003FF2A69169EAE313B4A6511256191A538F5E91345EBD44CE81D8EF9785636AB7A178DB8EEB174385D4D1758FD72105CEBB33093A0988A8A9A16DCCA67128FCBE91C3D7CB5CCF8A88CDCDCA463D149AA4FB584"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"Flash Player内嵌网页小程序","PID":"E7C7BDA6-C828-46F1-A7BA-B4C572A01100","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的Flash Player网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/FlashWebPlayer.pid","MD5":"D96BC7340D2D821C4404E3D408655379","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"91559E5E6B1E18E7A4A5B41376DD55E10997EBCAD8D105DFE97CE5A957D7FAD65FFAD67BA65528B61A41B26F038F9124FA3B3289615B68E4EF73528A51CEC17B175C34B527FB9CBF0BD8086C2788E45E3B1771022E60FCC7ED2F56D6077D9C0E2773314937771CE57AA29CBA41A89ECC8C758F6C8FCD2237E2C7E0FF31458EBF03114CFD99AAEAE98E09002FBB9D42B9152DA4D55C5E12B00D918190FED22F8E1A219A7478E29A6D0CD64D1B1357EDA3A953FCAF878F1FC02AF23071E6B6A2A1AF8139A9F4EBEF86D20DB6A766AD5BA35F6E488968FD883847FA7ABFACB31FB9D021420545E78846C8FF3688F4CA28677737D3217EB5F66A92F341717A3EDEF3"}}
启动安装后,会不断收到安装进度直到安装结束。
2)、请求升级Flash Player内嵌网页小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"Flash Player内嵌网页小程序","PID":"E7C7BDA6-C828-46F1-A7BA-B4C572A01100","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的Flash Player网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/FlashApplet_Update.pid","MD5":"D14BB047610DA36DFE4DE525B7D1286A","Version":"2.1.2.2","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"6470097FE94D553751589EB0B1C3C16947221681772CC91118421D9F8BD6217AA7F3842BF4D7A54D06D268DA433FF53504FA59B5C1A68DC1DB73180FF14427E0FA18DC6C84E97B6AFEFBED49CDF91669866B4FD2BC965FDA8C87CF0E6C868240BF0F21E7C2B460C01C11FE7B0582F78971CADA72F5429DA6AC302B48341491BECFCE7406BF21BD711543ED97809067A488638E71CB7B8C6BF23959387BC8389953D54C6F92DDD3521DEB706816A46492897E3958D3195D31FEA5FC34C4DB3CA8426BE18422855BF88BA21DD661968AB472637C1A4908CC847AFEBBED21C6F750F480D9854A1031F33F835AC51006B1FE1E91BB66A74F7B9B7743B57F7CA2032D"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"Flash Player内嵌网页小程序","PID":"E7C7BDA6-C828-46F1-A7BA-B4C572A01100","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的Flash Player网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/FlashWebPlayer_Update.pid","MD5":"8B29F292EF67A15D8D44659A010BFB8B","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"916F15D12746E9A5B0346CE307395FB8212C4C04A9F4B487EC08C1E0C0A574243C7280352C6F442AD9F91209527FE2291915B4EE6189A2138AF36A8629B6AE28E524771C552E2C24C22B296B450F2BE71CD15E680B09B97C7C4CB7E8E7CEEDF0720A24042315E54DAD7E5D02FED9BC0C14ED3445297F92B190F1E7850A5293EA8238452EBEF47998E5E3D30290815C6F0EA4454C4A02B870A75C9839C62FF773DD642A2D024BB4393E36F2371FF2EEE554F0E55BFA3941970B2063A1C3DAFA430DE06D6E92D0DC4E7AAC0A0B3BB8703401C4A1F9F2C3ECB165855C0493861B28C1CB2921DE9451568B296C2B58C595AFF32BB27153FB02CD33E917801DF36CBA"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
......
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子目录有WrlService.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":2,"IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url":"http://zorrosoft.com/FlashApplet.html","Open":"http://zorrosoft.com/Files.swf"}}
自动识别当前浏览器自动适配网页大小启动:
{"req":"Wrl_FlashApplet","rid":3,"para":{"Type":"0","Title":"Flash Applet","Flag":10,"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/Plugin/FlashPlayer.pid","MD5":"5AEA9B5526CCD50CB896FB1F10B9BF1F","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"A4CD3C1ECF11CD87DFD26E68664B2740B2911615ADDEF8FD39D74CD229090B07E23268707344781A334068EA7A6B19D3D28471C04E782245709FF19CC1F9A0A9A576C4323D38506F1446B2016214BD54A30297D38E689DDD0D1D3352EFD065BCEE5751950831CE6178A2E94BA9B73824F86FE5EE1F648110E36726645422396ED9F8BD7C6A117414CB3EF4DB212D2B307E3DBB3AE8EB03FF3BF640FE126503ECB24E7A0936505BFE05533629788949BCE429038493E88D0814BB24B18C8E40C807103B95FCA7D35C362BAA3B25F52B423C78A0A648CED26AA6A86DC86F1F88EEA7AD2F976910DF81CCD24B8FD97B12C0682EFAD5CE211ED8743212D26DEE8F38"}}
启动安装后,会不断收到安装进度直到安装结束。
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/Plugin/FlashPlayer_Update.pid","MD5":"13660533183AE38F79CBF5AB1AB95C18","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"0A9FA63F0128DE7D10C084CA6781E8436BC72ECA14C058713B9CA9D7AE29917D751DCD5ABE82AEDA730C785F85D5B6EF84B763255D4C8DB89137D3F529BC4F5037A1F777B9AF31C66D3E31522048D0DCF9E86C86FFA45B1D08FB1922C5DA151387190FF1DD7398CAFDA80E2D780774035ED53836527DCC7577B6262A87E10674FE9B4C24F7CE02EA3326989C964E639A0D2A1D3879C81A7423F7A3C9B06AB065F71BD4D32FE7B782F6E061A6C3EC445264A5FFCE6517646B5E1B7D7796BDF7CF426F3FDB1A487694A276311610F2AD489E10AE04F404650FCC82DB9890B8A363E2EBD317F403F266C2571F4D2F7DD2DCDCD9270284E984C1052BD1EBFFF8C682"}}
以上安装和升级的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代表正常
12) 请求退出小程序
请求:{"req":"Flash_Exit","rid":81,"para":{}}
如您需要更多的接口,请联系我们。
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”及“PluginOK中间件安全解决方案”。
如还有疑问请直接联系客服 加微信:ZorroSoft,或加QQ群:23126938
\ No newline at end of file
......@@ -110,14 +110,14 @@ ID为启动小程序时返回JSON中的ID值,Scall为缩放百分比
1)、请求安装IE控件内嵌网页小程序
请在输入框中,输入如下请求,然后点击发送,完成安装:
{"req":"Plugin_Install","rid":1,"para":{"Name":"IE控件小程序","PID":"18BDC030-AF37-50E1-B0AE-E5EF336BE282","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的IE控件内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/IEApplet.pid","MD5":"AB4D6D65F4020656876209A307719EE2","Version":"2.1.2.2","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"18C37B9004FA7B1DA077E9C8384E4398A5710C7887CE00D7DAFFDCED29526E6099F7DF6A1449569CC3B2AB65061BCFA78B9343BCF044CAF650272FC777F56E59B293463306E936D7157A431DFBD91579B2B83E8024216B454C94EE9FE9448AD0BE7697D7D4E4D881B5B9067A29D9FD46B0C06E86BEED71B0A483807C4344A36A3DB65D48C6F2AD87A80710B96F31D4B2B048D28E1F5B7EC88F19260D3DC6E4947E2F93DE2400550BA1B792C4554581F75ACD03FF6D402403611D6E04FF43EB57AF81A5A89473D7A3B96E8B18717C4693908A2672E3E73990484A3B87B6BFB8D52B1699ADE6BE34579B07AE905602B479A73CFB0B0EAF2AC0D6726DF6515B3796"}}
{"req":"Plugin_Install","rid":1,"para":{"Name":"IE控件小程序","PID":"18BDC030-AF37-50E1-B0AE-E5EF336BE282","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的IE控件内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/IEApplet.pid","MD5":"371D37DB60DF8F127024FD935E2E7EF5","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"A735B68871F8524E1ED49D28A7EA921838CBE3944B6E891A07B58137F28B4EC218486D2DBD6C432138AA576A212B2E1D6379A4B7943F48CE7B1C8E680BEFDCB68C56A769897CBB96A1F0D4233BAAD8D1431B9E57B10517B771B89BB3A0247FF434248DDA4E395D70284C554F9C59558D1885097E274F70015C32FC2574B3C6F9627B06E9EFDB014094A3945F56121244F07F2802C89A994ED28E3A30158830B72D8A31D0596CDDC251F86D10BD3716989AB06973D250D04491E54D6443FB88DCF575686EC2CAE6E907FAF4127D7A9089FF07247345F9AB8AE5DA0E26E1DE76B95C9BC35E70477B00C39E322AAE1FA437BC29C2172AA2A6B19F803A319596E19B"}}
启动安装后,会不断收到安装进度直到安装结束。
在发布时,也可以把此小程序目录文件和中间件一起打包后发布,不用单独分发。
2)、请求升级IE内核内嵌小程序:
{"req":"Plugin_Update","rid":1,"para":{"Name":"IE控件小程序","PID":"18BDC030-AF37-50E1-B0AE-E5EF336BE282","Date":"2021-03-15","Desc":"PluginOK之上跨浏览器的IE控件内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/IEApplet_Update.pid","MD5":"044339E5945F01E6D18E26293E6F5489","Version":"2.1.2.2","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"1466810EEEE89F55ECE923487160AD78E21A772E680C57099C1CD681F7487E2CB74FA52ECF40F124F255FE2D723399D3D76325AA362F6CFFF33E6197437F38732F80CE009D83E56E6BE9615D9FEC9B8CEA05420A65A221A2D7D507D32FAB273A9F30F583CFF701961B1B5E6BDFFDBB5C0F79F064D00E26F1DC0A396C60AC5D0F818929079CA14B37A5764496696692DFF81A8297C23108FABFDF1278CC92D3BB48BA707E83FBDD1774366715808AB2C27F38043DF4E17146DDE64E84C17F4384DED9B4848A0311F74317A0C7B9A65537F6ADB2F7C47BD332A6C65D2FED3DB0DAC8054D8A6DF2B93FC5398F09C4589140A360452D4FA348D7FE00F625A84AE6C2"}}
{"req":"Plugin_Update","rid":1,"para":{"Name":"IE控件小程序","PID":"18BDC030-AF37-50E1-B0AE-E5EF336BE282","Date":"2021-03-27","Desc":"PluginOK之上跨浏览器的IE控件内嵌网页小程序,支持在Chrome、Edge、Firefox、IE、Oprea、360、QQ等最新版本浏览器网页中内嵌使用","DownAddr":"http://local.zorrosoft.com/Files/Plugin/IEApplet_Update.pid","MD5":"A7E915B8A5F5D0FBEE5C954EC64052FE","Version":"2.1.3.1","Size":753664,"HideIns":0,"Type":8,"Cookie":"","Auth":"","TK":"3760ABF90A0C3213DA3D0F996BDA3A5E6953FE9D8F6EA9C46DD86213F5AAA6DF8DE33894C43870394E750117DD1E355BFEEF634259AD1D24F545D04626A34DF0933C1435E789C496F9BE0BEADEFFC5835EE38C5E8311BB70D146BCB1C3243CFCFC73CF6C8586818E59DA1625F69094714835B825675993064DE35AD2AAC80D97D8470A0E0711A100AC72066216BA38CF078972A30C5BE737D1CC651D87EECC09B6D9FE2C0B9010237324CCC27FF796632E556F97CD7F7CD48DF62B3B1BAF13F4B3488B219D7B7602EC273A40BD6E6793F6BBF39A4FB35FBDD360C76F4F8CA2FF4C63A70F10D8B8B6119277971D769B72CA43104FDA19FD5060C7AABB4C101E10"}}
以上安装和升级的JSON请求包,可能因版本升级导致内容不同,如遇安装或升级时报错,请联系客服获取最新的请求包。
......
IE控件小程序(内嵌网页):基于跨浏览器的小程序系统-PluginOK(牛插)中间件( https://github.com/wangzuohuai/WebRunLocal )开发,底层调用IE内核的ActiveX控件实现可程序化驱动的双内核浏览器。最低可用在Chrome 41、Firefox 50、Edge 80(Chromium内核)、360极速/安全、IE 8、Oprea 36、QQ、搜狗等浏览器,也兼容运行于这些浏览器的最新版本。
1、PluginOK(牛插)中间件的安装:
1)、如果是exe的安装程序,请直接运行安装;
2)、如果是绿色版的程序包,请解压到磁盘某个目录后,双击“InstallWrl.bat”进行安装;
3)、安装完成时会启动PluginOK中间件服务,在安装目录下的Data子目录有WrlService.txt日志文件输出运行情况。
2、IE控件内嵌网页小程序控制相关接口:
说明:以下功能请通过Web Socket连接PluginOK主服务(ws://localhost?sid=12345&flag=1)后可执行,如默认侦听端口不是80(关于如何配置侦听端口,请参考SDK包中的文档“PluginOK开发者手册.doc”),请在连接地址中指定端口号进行连接。
HTTP网页在线测试:http://zorrosoft.com/iefull.html HTTPS网页在线测试:https://zorrosoft.com/ieframe.html
前端集成可参考以上测试网页进行,HTML网页中需要嵌入以下类似代码;
A、标记小程序的显示位置和大小
.IEApplet {
margin: 20px 0 0 20px;
width: 480px;
height: 320px;
border: 1px solid blue;
}
或者
.IEApplet {
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="IEApplet" id="IEApplet" src="IEApplet3.html" frameborder="0" align="left" width="550" height="540" scrolling="no">
或者直接用
<div id="IEApplet" class="IEApplet"</div>
另外需要嵌入用到的JS脚本,脚本程序是完全开源的。
1)、请求启动IE控件内嵌网页小程序实现网页中局部加载IE内核网页显示:
Type为浏览器类型,传0自动判断(前提是当前浏览器已启动并显示在最前端,Flag指定当前页加载时必须是0) 可强制指定浏览器类型Type(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设定的值做修正
Version 指定加载的IE版本,0不指定,比如9999是IE9标准模式 8888是IE8标准模式 8000是IE8兼容模式 7000是IE7 详细定义参考:https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/general-info/ee330730(v=vs.85)?redirectedfrom=MSDN#browser_emulation
X64:是否启动64位版
Url:加载小程序所在的网页实际地址
Open:为需要用IE内核打开的Url地址或本地网页地址
注意:Open和Url如果有特殊字符或中文等,需要用URL编码处理后传递
举例:
自动识别当前浏览器指定位置和大小启动:
{"req":"Wrl_IEApplet","rid":1,"para":{"Type":"0","Title":"IE Applet","Flag":2,"Version":"0","X64":"0","IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/IEApplet.html","Open":"http://www.zorrosoft.com"}}
自动识别当前浏览器指定位置自动适配网页大小启动:
{"req":"Wrl_IEApplet","rid":2,"para":{"Type":"0","Title":"IE Applet","Flag":10,"Version":"0","X64":"0","IframeX":0,"IframeY":0,"BarW":0,"BarH":0,"Url": "http://zorrosoft.com/IEApplet.html","Open":"http://www.zorrosoft.com"}}
当前页指定位置自动适配网页加载测试
http://zorrosoft.com/ieframe.html
启动后会先后收到三个JSON数据包
A、{"ret":0,"rid":1,"data":{"ID":3}}
代表小程序WS侦听服务就绪
B、{"event":"Wrl_Listen","aid":3,"data":{"SID":"123","PID":"IEApplet","port":985}}
返回的侦听端口,可再建立一个Web Socket连接后,调用小程序中的相关功能,比如新打开一个网页。
代表小程序创建成功,返回ID为当前小程序运行ID,通过此ID,可执行Wrl_AppletControl、Wrl_AppletScroll、Wrl_AppletResize等命令。