|
@@ -202,7 +202,7 @@
|
|
|
<script src="https://unpkg.com/video.js@7.10.2/dist/video.min.js"></script>
|
|
<script src="https://unpkg.com/video.js@7.10.2/dist/video.min.js"></script>
|
|
|
<script type="module">
|
|
<script type="module">
|
|
|
import Player from './videoPlayer/videoPlay-js.js'
|
|
import Player from './videoPlayer/videoPlay-js.js'
|
|
|
- const host = "http://218.28.198.186:10508"
|
|
|
|
|
|
|
+ const domin = 'https://wx.hnyfwlw.com'
|
|
|
// 检测HLS支持
|
|
// 检测HLS支持
|
|
|
function checkHLSSupport() {
|
|
function checkHLSSupport() {
|
|
|
const video = document.createElement('video');
|
|
const video = document.createElement('video');
|
|
@@ -380,7 +380,7 @@
|
|
|
|
|
|
|
|
return $.ajax({
|
|
return $.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: `${host}/api/api_gateway?method=device.device_manage.get_device_info`,
|
|
|
|
|
|
|
+ url: `${domin}/api/api_gateway?method=device.device_manage.get_device_info`,
|
|
|
data: {
|
|
data: {
|
|
|
device_id: device_id,
|
|
device_id: device_id,
|
|
|
token: token
|
|
token: token
|
|
@@ -436,9 +436,9 @@
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
$('#dialog').html('拍照指令正在下发,请等待...').stop().show(50)
|
|
$('#dialog').html('拍照指令正在下发,请等待...').stop().show(50)
|
|
|
- let url =`${host}/api/api_gateway?method=camera.camera_manage.camera_takephoto`
|
|
|
|
|
|
|
+ let url =`${domin}/api/api_gateway?method=camera.camera_manage.camera_takephoto`
|
|
|
if (videoType == 'dgp') {
|
|
if (videoType == 'dgp') {
|
|
|
- url = `${host}/api/api_gateway?method=camera.camera_manage.multi_camera_takephoto`
|
|
|
|
|
|
|
+ url = `${domin}/api/api_gateway?method=camera.camera_manage.multi_camera_takephoto`
|
|
|
}
|
|
}
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
@@ -458,13 +458,13 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- let url = `${host}/api/api_gateway?method=camera.camera_manage.ctrl_camera`
|
|
|
|
|
|
|
+ let url = `${domin}/api/api_gateway?method=camera.camera_manage.ctrl_camera`
|
|
|
let postData = {
|
|
let postData = {
|
|
|
device_id: device_id,
|
|
device_id: device_id,
|
|
|
token
|
|
token
|
|
|
}
|
|
}
|
|
|
if (videoType == 'dgp') {
|
|
if (videoType == 'dgp') {
|
|
|
- url = `${host}/api/api_gateway?method=camera.camera_manage.multi_ctrl_camera`
|
|
|
|
|
|
|
+ url = `${domin}/api/api_gateway?method=camera.camera_manage.multi_ctrl_camera`
|
|
|
postData.ctrl = movenum
|
|
postData.ctrl = movenum
|
|
|
} else {
|
|
} else {
|
|
|
postData.ctrl = ctrl
|
|
postData.ctrl = ctrl
|
|
@@ -488,7 +488,7 @@
|
|
|
stopTimer = setTimeout(()=>{
|
|
stopTimer = setTimeout(()=>{
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: `${host}/api/api_gateway?method=camera.camera_manage.mulit_stop_move`,
|
|
|
|
|
|
|
+ url: `${domin}/api/api_gateway?method=camera.camera_manage.mulit_stop_move`,
|
|
|
data: {
|
|
data: {
|
|
|
device_id: device_id,
|
|
device_id: device_id,
|
|
|
token
|
|
token
|
|
@@ -499,7 +499,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: `${host}/api/api_gateway?method=camera.camera_manage.ctrl_camera`,
|
|
|
|
|
|
|
+ url: `${domin}/api/api_gateway?method=camera.camera_manage.ctrl_camera`,
|
|
|
data: {
|
|
data: {
|
|
|
device_id: device_id,
|
|
device_id: device_id,
|
|
|
ctrl: "stop",
|
|
ctrl: "stop",
|
|
@@ -516,7 +516,7 @@
|
|
|
form.append('token', token)
|
|
form.append('token', token)
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: `${host}/api/api_gateway?method=camera.camera_manage.save_camera_photo`,
|
|
|
|
|
|
|
+ url: `${domin}/api/api_gateway?method=camera.camera_manage.save_camera_photo`,
|
|
|
contentType: false,
|
|
contentType: false,
|
|
|
processData: false,
|
|
processData: false,
|
|
|
data: form
|
|
data: form
|
|
@@ -582,7 +582,7 @@
|
|
|
if (videoType == 'dgp') {
|
|
if (videoType == 'dgp') {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: `${host}/api/api_gateway?method=camera.camera_manage.multi_addr_camera`,
|
|
|
|
|
|
|
+ url: `${domin}/api/api_gateway?method=camera.camera_manage.multi_addr_camera`,
|
|
|
data: {
|
|
data: {
|
|
|
device_id: device_id,
|
|
device_id: device_id,
|
|
|
token
|
|
token
|
|
@@ -762,7 +762,7 @@
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
// url: "http://47.110.79.22:9000/api/api_gateway?method=camera.camera_manage.multi_addr_camera",
|
|
// url: "http://47.110.79.22:9000/api/api_gateway?method=camera.camera_manage.multi_addr_camera",
|
|
|
- url: `${host}/api/api_gateway?method=camera.camera_manage.multi_addr_camera`,
|
|
|
|
|
|
|
+ url: `${domin}/api/api_gateway?method=camera.camera_manage.multi_addr_camera`,
|
|
|
data: {
|
|
data: {
|
|
|
device_id: device_id,
|
|
device_id: device_id,
|
|
|
token
|
|
token
|