-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsharedcamera.html
41 lines (40 loc) · 1.73 KB
/
sharedcamera.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
<title>Shared camera view</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<script src="core/jquery-3.5.1.js"></script>
<link rel="stylesheet" type="text/css" href="core/common/sdk/vxgwebsdk/video-js.min.css">
<link rel="stylesheet" type="text/css" href="core/common/sdk/vxgwebsdk/CloudSDK.min.css">
<script type="text/javascript" src="core/common/sdk/vxgwebsdk/video.min.js"></script>
<script type="text/javascript" src="core/common/sdk/vxgwebsdk/webrtc-adapter-latest.js"></script>
<script type="text/javascript" src="core/common/sdk/vxgwebsdk/vxg_cloud_player.js"></script>
<script type="text/javascript" src="core/common/sdk/vxgwebsdk/CloudSDK.min.js"></script>
<script type="text/javascript" src="core/common/sdk/vxgwebsdk/LocalPlayer.js"></script>
<script type="text/javascript">
CloudSDK.flashswf = "core/common/sdk/vxgwebsdk/video-js-by-vxg-buff200.swf";
</script>
<style>
</style>
<script>
$(document).ready(function () {
let p = new URLSearchParams(location.search);
let token = p.get('token');
let time = p.get('time') || 0;
window.player = new CloudPlayerSDK('investigation_player', {
autohide: 3000,
mute: true,
timeline: true,
calendar: true,
});
player.setSource(token);
if (time) player.setPosition(time);
});
</script>
</head>
<body>
<div id="investigation_player"></div>
</body>
</html>