VIWI接口

VIWI协议
https://www.w3.org/Submission/viwi-protocol/

rsi server setup
https://github.com/wzr1337/rsi.server

Windows 下载
https://nodejs.org/en/download/
在这里插入图片描述安装完成
在这里插入图片描述

下载并解压项目 https://github.com/wzr1337/rsi.server
rsi.server-master

To install the server’s dependencies, run the following command
进入项目目录执行 npm install
在这里插入图片描述
To build the server, use
$ npm run build
在这里插入图片描述
下载RSI demo
https://github.com/wzr1337/rsi.demo

$ npm -g install typescript
$ npm run build

To run the server, use

$ http_proxy=’’ npm run serve

订阅
Client side subscription

To subscribe to the netfux media renderer from within a JavaScript application or the JavaScript console, use the following code snippet

ws = new WebSocket(“ws://localhost:3000”);
ws.onopen = () => {
ws.onmessage = (data) => {console.log(JSON.parse(data.data))}
ws.send(JSON.stringify({type:“subscribe”, event:"/media/renderers/d6ebfd90-d2c1-11e6-9376-df943f51f0d8"}))
}

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值