声卡接口完善
This commit is contained in:
parent
7d23747811
commit
8c6c7e5f09
@ -1265,13 +1265,13 @@ export default {
|
|||||||
const onlinePlayModel = this.deviceInfo.thingsModels.find(model => model.id === '103#onlinePlay');
|
const onlinePlayModel = this.deviceInfo.thingsModels.find(model => model.id === '103#onlinePlay');
|
||||||
if (onlinePlayModel) {
|
if (onlinePlayModel) {
|
||||||
// 构建包含 interrupt 参数的 JSON 数据
|
// 构建包含 interrupt 参数的 JSON 数据
|
||||||
const playData = {
|
const playData = 'JSON=' + JSON.stringify({
|
||||||
"online_play": {
|
online_play: {
|
||||||
url: "http://1.94.62.14:8080" + result.resourcePath,
|
url: "http://1.94.62.14:8080" + result.resourcePath,
|
||||||
},
|
},
|
||||||
interrupt: 98
|
interrupt: 98
|
||||||
};
|
});
|
||||||
onlinePlayModel.shadow = JSON.stringify(playData);
|
onlinePlayModel.shadow = playData;
|
||||||
await this.mqttPublish(this.deviceInfo, onlinePlayModel);
|
await this.mqttPublish(this.deviceInfo, onlinePlayModel);
|
||||||
this.$message.success('音频已下发到设备');
|
this.$message.success('音频已下发到设备');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user