Browse Source

https->http

release_0.0.2
巴林闲侠 2 years ago
parent
commit
f0760bd0e5
  1. 1
      code/VideoAccess-VCMP/web/client/index.ejs
  2. 1
      code/VideoAccess-VCMP/web/client/index.html
  3. 11
      code/VideoAccess-VCMP/web/client/src/sections/monitor/containers/videoPlayCross.jsx

1
code/VideoAccess-VCMP/web/client/index.ejs

@ -4,6 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
<meta content="upgrade-insecure-requests" http-equiv="Content-Security-Policy">
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<script src="/assets/js/jessibuca/jessibuca.js"></script>
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_14797_10.b43556420cacd0119dedf94deff663bb.js"></script>

1
code/VideoAccess-VCMP/web/client/index.html

@ -4,6 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
<meta content="upgrade-insecure-requests" http-equiv="Content-Security-Policy">
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<script src="/assets/js/jessibuca/jessibuca.js"></script>
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_14797_10.b43556420cacd0119dedf94deff663bb.js"></script>

11
code/VideoAccess-VCMP/web/client/src/sections/monitor/containers/videoPlayCross.jsx

@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import qs from "qs";
import { VideoPlay } from '$components'
import '../style.less'
@ -7,6 +8,15 @@ const VideoPlayCross = (props) => {
const [videoParams, setVideoParams] = useState(null)
useEffect(() => {
if (props.location.search) {
const params = qs.parse(props.location.search.slice(1))
if (params.videoObj) {
params.videoObj = (new Function("return " + params.videoObj))()
setVideoParams(params)
return
}
}
function messageListen (e) {
//
const { data } = e
@ -16,7 +26,6 @@ const VideoPlayCross = (props) => {
}
}
}
if (window.parent) {
window.addEventListener('message', messageListen);
}

Loading…
Cancel
Save