1 |
- import{a0 as r}from"./radical-24ede98f.js";import{q as e}from"./index-bad227d6.js";import{f as p}from"./vue-fae2b924.js";function u(){return e.get({url:"/proxy/pull/list"})}function c(t){return e.post({url:"/proxy/pull/add",data:t})}function s(t){return e.post({url:`/proxy/pull/remove/${t.ID}`})}function i(t){return e.post({url:"/proxy/pull/update",data:t})}function m(){return e.get({url:"/proxy/push/list"})}function d(t){return e.post({url:"/proxy/push/add",data:t})}function x(t){return e.post({url:`/proxy/push/remove/${t.ID}`})}const y=t=>e.post({url:"/proxy/push/update",data:t}),h=(t,o)=>({type:"object",properties:{layout:{type:"void","x-component":"FormLayout","x-component-props":{layout:"inline"},properties:{add:{type:"void","x-component":"Button","x-component-props":{"@click":()=>t()},"x-content":{default:o,icon:()=>p(r,{icon:"ant-design:plus-outlined",class:"v-text-bottom mr-4px"},null)}}}}}}),I=()=>({type:"object",properties:{layout:{type:"void","x-component":"FormLayout","x-component-props":{layout:"horizontal",labelCol:6,wrapperCol:14},properties:{name:{type:"string",title:"设备名称","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"请输入设备名称",allowClear:!0},required:!0},pushURL:{type:"string",title:"推流地址",description:"远端的rtmp或rtsp的推流地址","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"请输入推流地址",allowClear:!0},required:!0},streamPath:{type:"string",title:"流标识",description:"要转推的m7s流标识","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"live/test",allowClear:!0}},type:{type:"string",title:"设备类型",description:"无法根据地址识别推流协议,需要您确认","x-decorator":"FormItem","x-component":"Input","x-hidden":!0},pushOnStart:{type:"boolean",title:"推流方式",enum:[{label:"按需推流",value:!1},{label:"自动推流",value:!0}],default:!1,"x-decorator":"FormItem","x-component":"Radio.Group"},audio:{type:"boolean",title:"音频","x-decorator":"FormItem","x-component":"Switch",default:!1},description:{type:"string",title:"描述","x-decorator":"FormItem","x-component":"Input"}}}}}),f=()=>({type:"object",properties:{layout:{type:"void","x-component":"FormLayout","x-component-props":{layout:"horizontal",labelCol:6,wrapperCol:14},properties:{name:{type:"string",title:"设备名称","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"请输入设备名称",allowClear:!0},required:!0},pullURL:{type:"string",title:"拉流地址",description:"远端的http-flv、rtmp、rtsp或m3u8的地址","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"请输入源地址",allowClear:!0},required:!0},streamPath:{type:"string",title:"流标识",description:"拉流进入m7s后的流地址,留空则自动生成","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"live/test",allowClear:!0}},type:{type:"string",title:"设备类型",description:"无法根据源地址识别拉流协议,需要您确认","x-decorator":"FormItem","x-component":"Input","x-hidden":!0},pullOnStart:{type:"boolean",title:"拉流方式",enum:[{label:"按需拉流",value:!1},{label:"自动拉流",value:!0}],default:!1,"x-decorator":"FormItem","x-component":"Radio.Group"},stopOnIdle:{type:"boolean",title:"无人订阅时关闭","x-decorator":"FormItem","x-component":"Switch",default:!1},audio:{type:"boolean",title:"音频","x-decorator":"FormItem","x-component":"Switch",default:!1},recordPath:{type:"string",title:"录制路径",description:"录制文件保存路径,留空则不录制","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"record",allowClear:!0}},recordFragment:{type:"string",title:"录制片段",description:"录制文件片段时长","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"10s",allowClear:!0},"x-hidden":!0},status:{type:"boolean",title:"是否禁用","x-decorator":"FormItem","x-component":"Switch","x-component-props":{checkedValue:4,unCheckedValue:0},default:0},description:{type:"string",title:"描述","x-decorator":"FormItem","x-component":"Input"}}}}});export{m as a,f as b,c,s as d,x as e,I as f,u as g,y as h,d as i,h as q,i as u};
|