wangrong
2025-09-23 40634ebaf5863a599bba8ca2c0575ca079fb8e15
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
42
43
44
45
46
47
48
49
50
51
52
<html>
 
<head>
    <title>基站监控</title>
    <style>
        body {
            margin: 0;
            overflow: hidden;
        }
    </style>
</head>
<!--网页播放器-->
<script src="xgplayer.js" charset="utf-8"></script>
<!-- flvjs(ios暂不支持) -->
<script src="srcflv.js" charset="utf-8"></script>
<script src="./js/station_video_map.js"></script>
 
 
<body>
<!-- 视频播放-->
<div id="wssFlvVideo"></div>
</body>
<script type="text/javascript">
    function getQueryParam(name) {
        const urlParams = new URLSearchParams(window.location.search);
        return urlParams.get(name);
    }
 
    const siteName = getQueryParam("site");
    const videoUrl = getCameraUrlByStationName(siteName);
 
    if (videoUrl) {
        // 正常展示播放器
        new window.FlvJsPlayer({
            id: 'wssFlvVideo',
            isLive: false,
            playsinline: true,
            url: videoUrl,
            autoplay: true,
            height: window.innerHeight,
            width: window.innerWidth
        });
    } else {
        const container = document.getElementById('wssFlvVideo');
        container.style.textAlign = 'center';
        container.style.padding = '100px';
        container.innerHTML = `<p style="font-size: 20px; color: gray;">该站点视频流未配置:${ siteName || '未知站点' }</p>`;
    }
</script>
 
 
</html>