old mode 100644
new mode 100755
| | |
| | | <el-form-item label="SECRET" prop="secret"> |
| | | <el-input v-model="mediaServerForm.secret" placeholder="媒体服务SECRET" clearable :disabled="mediaServerForm.defaultServer"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="类型" prop="type"> |
| | | <el-select v-model="mediaServerForm.type" style="float: left; width: 100%" > |
| | | <el-option key="zlm" label="ZLMediaKit" value="zlm"></el-option> |
| | | <el-option key="abl" label="ABLMediaServer" value="abl"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div style="float: right;"> |
| | | <el-button type="primary" v-if="currentStep === 1 && serverCheck === 1" @click="next" >下一步</el-button> |
| | |
| | | <el-switch v-model="mediaServerForm.autoConfig" :disabled="mediaServerForm.defaultServer"></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="收流端口模式" > |
| | | <el-switch active-text="多端口" inactive-text="单端口" v-model="mediaServerForm.rtpEnable" :disabled="mediaServerForm.defaultServer"></el-switch> |
| | | <el-switch active-text="多端口" inactive-text="单端口" @change="portRangeChange" v-model="mediaServerForm.rtpEnable" :disabled="mediaServerForm.defaultServer"></el-switch> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item v-if="!mediaServerForm.rtpEnable" label="收流端口" prop="rtpProxyPort"> |
| | | <el-input v-model.number="mediaServerForm.rtpProxyPort" clearable :disabled="mediaServerForm.defaultServer"></el-input> |
| | |
| | | <el-input v-model="rtpPortRange1" placeholder="起始" @change="portRangeChange" clearable style="width: 100px" prop="rtpPortRange1" :disabled="mediaServerForm.defaultServer"></el-input> |
| | | - |
| | | <el-input v-model="rtpPortRange2" placeholder="终止" @change="portRangeChange" clearable style="width: 100px" prop="rtpPortRange2" :disabled="mediaServerForm.defaultServer"></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="mediaServerForm.sendRtpEnable" label="发流端口" > |
| | | <el-input v-model="sendRtpPortRange1" placeholder="起始" @change="portRangeChange" clearable style="width: 100px" prop="rtpPortRange1" :disabled="mediaServerForm.defaultServer"></el-input> |
| | | - |
| | | <el-input v-model="sendRtpPortRange2" placeholder="终止" @change="portRangeChange" clearable style="width: 100px" prop="rtpPortRange2" :disabled="mediaServerForm.defaultServer"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="录像管理服务端口" prop="recordAssistPort"> |
| | | <el-input v-model.number="mediaServerForm.recordAssistPort" :disabled="mediaServerForm.defaultServer"> |
| | |
| | | hookIp: "", |
| | | sdpIp: "", |
| | | streamIp: "", |
| | | secret: "035c73f7-bb6b-4889-a715-d9eb2d1925cc", |
| | | secret: "", |
| | | httpPort: "", |
| | | httpSSlPort: "", |
| | | recordAssistPort: "", |
| | |
| | | rtmpSSlPort: "", |
| | | rtpEnable: false, |
| | | rtpPortRange: "", |
| | | sendRtpPortRange: "", |
| | | rtpProxyPort: "", |
| | | rtspPort: "", |
| | | rtspSSLPort: "", |
| | | type: "zlm", |
| | | }, |
| | | rtpPortRange1:30000, |
| | | rtpPortRange2:30500, |
| | | |
| | | sendRtpPortRange1:50000, |
| | | sendRtpPortRange2:60000, |
| | | |
| | | rules: { |
| | | ip: [{ required: true, validator: isValidIp, message: '请输入有效的IP地址', trigger: 'blur' }], |
| | |
| | | this.currentStep = 3; |
| | | if (param.rtpPortRange) { |
| | | let rtpPortRange = this.mediaServerForm.rtpPortRange.split(","); |
| | | let sendRtpPortRange = this.mediaServerForm.sendRtpPortRange.split(","); |
| | | if (rtpPortRange.length > 0) { |
| | | this.rtpPortRange1 = rtpPortRange[0] |
| | | this.rtpPortRange2 = rtpPortRange[1] |
| | | } |
| | | if (sendRtpPortRange.length > 0) { |
| | | this.sendRtpPortRange1 = sendRtpPortRange[0] |
| | | this.sendRtpPortRange2 = sendRtpPortRange[1] |
| | | } |
| | | } |
| | | } |
| | |
| | | that.mediaServerForm.autoConfig = true; |
| | | that.rtpPortRange1 = 30000 |
| | | that.rtpPortRange2 = 30500 |
| | | that.sendRtpPortRange1 = 50000 |
| | | that.sendRtpPortRange2 = 60000 |
| | | that.serverCheck = 1; |
| | | }else { |
| | | that.serverCheck = -1; |
| | |
| | | hookIp: "", |
| | | sdpIp: "", |
| | | streamIp: "", |
| | | secret: "035c73f7-bb6b-4889-a715-d9eb2d1925cc", |
| | | secret: "", |
| | | httpPort: "", |
| | | httpSSlPort: "", |
| | | recordAssistPort: "", |
| | |
| | | rtmpSSlPort: "", |
| | | rtpEnable: false, |
| | | rtpPortRange: "", |
| | | sendRtpPortRange: "", |
| | | rtpProxyPort: "", |
| | | rtspPort: "", |
| | | rtspSSLPort: "", |
| | | }; |
| | | this.rtpPortRange1 = 30500; |
| | | this.rtpPortRange2 = 30500; |
| | | this.sendRtpPortRange1 = 50000; |
| | | this.sendRtpPortRange2 = 60000; |
| | | this.listChangeCallback = null |
| | | this.currentStep = 1; |
| | | }, |
| | |
| | | var that = this; |
| | | await that.$axios({ |
| | | method: 'get', |
| | | url:`./api/platform/exit/${deviceGbId}` |
| | | url:`/api/platform/exit/${deviceGbId}` |
| | | }).then(function (res) { |
| | | result = res.data; |
| | | }).catch(function (error) { |
| | |
| | | } |
| | | }, |
| | | portRangeChange: function() { |
| | | this.mediaServerForm.rtpPortRange = this.rtpPortRange1 + "," + this.rtpPortRange2 |
| | | console.log(this.mediaServerForm.rtpPortRange) |
| | | if (this.mediaServerForm.rtpEnable) { |
| | | this.mediaServerForm.rtpPortRange = this.rtpPortRange1 + "," + this.rtpPortRange2 |
| | | this.mediaServerForm.sendRtpPortRange = this.sendRtpPortRange1 + "," + this.sendRtpPortRange2 |
| | | } |
| | | } |
| | | }, |
| | | }; |