分享Video.js观看Web视频流

界面效果

HTML结构

<div class="homePopup"  ><div class="search_box animate__animated animate__fadeInDown" style="display: none;"><div class="van-search"  style="background: rgba(0, 0, 0, 0);"><!----><div class="van-search__content van-search__content--square"><!----><div class="van-cell van-cell--borderless van-field van-search__field"><div class="van-field__left-icon"><i class="van-badge__wrapper van-icon van-icon-search"><!----><!----><!----></i></div><!----><div class="van-cell__value van-cell__value--alone van-field__value"><div class="van-field__body"><input type="search" id="van-search-1-input" class="van-field__control"placeholder="请输入搜索关键词"><!----><!----><!----></div><!----><!----></div><!----><!----></div></div><!----></div><!----></div><div class="selector animate__animated animate__fadeInLeft" style="display: none;"><div class="darkChoices"  ><div >快速选择</div><div ><div class="darkChoices_item"  style="display: none;"><div class="transition_tite" >全省路线</div><div class="transition-box" >按路线查看</div><div class="transition-box" >按城市查看</div></div><!----><div class="search_info infoList2"  style="display: none;"><div class="infoList_item" ><div >成都</div></div><div class="infoList_item" ><div >自贡</div></div><div class="infoList_item" ><div >攀枝花</div></div><div class="infoList_item" ><div >泸州</div></div><div class="infoList_item" ><div >德阳</div></div><div class="infoList_item" ><div >绵阳</div></div><div class="infoList_item" ><div >广元</div></div><div class="infoList_item" ><div >遂宁</div></div><div class="infoList_item" ><div >内江</div></div><div class="infoList_item" ><div >乐山</div></div><div class="infoList_item" ><div >南充</div></div><div class="infoList_item" ><div >眉山</div></div><div class="infoList_item" ><div >宜宾</div></div><div class="infoList_item" ><div >广安</div></div><div class="infoList_item" ><div >达州</div></div><div class="infoList_item" ><div >雅安</div></div><div class="infoList_item" ><div >巴中</div></div><div class="infoList_item" ><div >资阳</div></div><div class="infoList_item" ><div >马尔康</div></div><div class="infoList_item" ><div >康定</div></div><div class="infoList_item" ><div >西昌</div></div></div></div></div></div><div class="detail-box animate__animated animate__fadeInDown" ><div  style=""><div class="details" ><img class="details_img" src="https://etc.its-sc.com.cn/SiChuanGSTadmin/img/G4202.png"alt="" ><div class="details_box" ><p class="details_box_name" >G4202成都绕城高速</p><p class="details_box_cameraname" >四川-G4202-成都绕城高速东段-路段K11+650内环门架球机</p></div><img class="detail-video-close" src="static/img/icon-cctv-close.67e2c9ea.svg"></div><div class="videoStrs" ><div style="width: 100%; height: 100%; object-fit: fill;" data-setup="{}" type="video/m3u8" playsinline="true" webkit-playsinline="true"autoplay="true" class="video-js vjs-default-skin vjs-big-play-centered vjs-workinghover vjs-v7 videoElementCopy-dimensions vjs-controls-enabled vjs-has-started vjs-live vjs-playing vjs-user-inactive"id="videoElementCopy" tabindex="-1" role="region" lang="" translate="no"aria-label="Video Player"><video id="videoElementCopy_html5_api" class="vjs-tech" autoplay="" webkit-playsinline="true"playsinline="playsinline" type="video/m3u8" data-setup="{}" style="width: 100%; height: 100%; object-fit: fill;" tabindex="-1" role="application"preload="auto" src="blob:https://etc.its-sc.com.cn/4a1891d9-3586-4b7d-9348-d8513243e93e"><source id="source" type="application/x-mpegURL"  src="https://vcsplay.its-sc.com.cn:8196/live/HD_fe4d52ce-e45d-479c-9909-86dc3c1a5a64.m3u8?auth_key=1708570297-0-0-f4e496cf613993c38edbdd0bb88a061d"></video><div class="vjs-poster vjs-hidden" tabindex="-1" aria-disabled="false"></div><div class="vjs-text-track-display" translate="yes" aria-live="off" aria-atomic="true"><div style="position: absolute; inset: 0px; margin: 1.5%;"></div></div><div class="vjs-loading-spinner" dir="ltr"><span class="vjs-control-text">Video Player is loading.</span></div><button class="vjs-big-play-button" type="button" title="Play Video" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Play Video</span></button><div class="vjs-control-bar" dir="ltr"><button class="vjs-play-control vjs-control vjs-button vjs-playing" type="button"title="Pause" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Pause</span></button><div class="vjs-volume-panel vjs-control vjs-volume-panel-horizontal"><button class="vjs-mute-control vjs-control vjs-button vjs-vol-3" type="button"title="Mute" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Mute</span></button><div class="vjs-volume-control vjs-control vjs-volume-horizontal"><div tabindex="0" class="vjs-volume-bar vjs-slider-bar vjs-slider vjs-slider-horizontal"role="slider" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"aria-label="Volume Level" aria-live="polite" aria-valuetext="100%"><div class="vjs-mouse-display"><div class="vjs-volume-tooltip" aria-hidden="true"></div></div><div class="vjs-volume-level"><span class="vjs-control-text"></span></div></div></div></div><div class="vjs-current-time vjs-time-control vjs-control"><span class="vjs-control-text" role="presentation">Current Time&nbsp;</span><span class="vjs-current-time-display" aria-live="off" role="presentation">0:42</span></div><div class="vjs-time-control vjs-time-divider" aria-hidden="true"><div><span>/</span></div></div><div class="vjs-duration vjs-time-control vjs-control"><span class="vjs-control-text" role="presentation">Duration&nbsp;</span><span class="vjs-duration-display" aria-live="off" role="presentation">-:-:-</span></div><div class="vjs-progress-control vjs-control"><div tabindex="0" class="vjs-progress-holder vjs-slider vjs-slider-horizontal"role="slider" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100"aria-label="Progress Bar" aria-valuetext="0:00:43 of -:-:-"><div class="vjs-load-progress" style="width: 0%;"><span class="vjs-control-text"><span>Loaded</span>:<span class="vjs-control-text-loaded-percentage">0.00%</span></span><div data-start="14" data-end="64" style="left: 21.88%; width: 78.13%;"></div></div><div class="vjs-mouse-display"><div class="vjs-time-tooltip" aria-hidden="true"></div></div><div class="vjs-play-progress vjs-slider-bar" aria-hidden="true" style="width: 0%;"><div class="vjs-time-tooltip" aria-hidden="true" style="right: 0px;">0:00:43</div></div></div></div><div class="vjs-live-control vjs-control"><div class="vjs-live-display" aria-live="off"><span class="vjs-control-text">Stream Type&nbsp;</span>LIVE</div></div><button class="vjs-seek-to-live-control vjs-control" type="button" title="Seek to live, currently behind live"aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Seek to live, currently behind live</span><span class="vjs-seek-to-live-text" aria-hidden="true">LIVE</span></button><div class="vjs-remaining-time vjs-time-control vjs-control"><span class="vjs-control-text" role="presentation">Remaining Time&nbsp;</span><span aria-hidden="true">-</span><span class="vjs-remaining-time-display" aria-live="off" role="presentation">-:-:-</span></div><div class="vjs-custom-control-spacer vjs-spacer ">&nbsp;</div><div class="vjs-playback-rate vjs-menu-button vjs-menu-button-popup vjs-control vjs-button vjs-hidden"><div class="vjs-playback-rate-value" id="vjs-playback-rate-value-label-videoElementCopy_component_254">1x</div><button class="vjs-playback-rate vjs-menu-button vjs-menu-button-popup vjs-button"type="button" aria-disabled="false" title="Playback Rate" aria-haspopup="true"aria-expanded="false" aria-describedby="vjs-playback-rate-value-label-videoElementCopy_component_254"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Playback Rate</span></button><div class="vjs-menu"><ul class="vjs-menu-content"></ul></div></div><div class="vjs-chapters-button vjs-menu-button vjs-menu-button-popup vjs-control vjs-button vjs-hidden"><button class="vjs-chapters-button vjs-menu-button vjs-menu-button-popup vjs-button"type="button" aria-disabled="false" title="Chapters" aria-haspopup="true"aria-expanded="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Chapters</span></button><div class="vjs-menu"><ul class="vjs-menu-content"><li class="vjs-menu-title" tabindex="-1">Chapters</li></ul></div></div><div class="vjs-descriptions-button vjs-menu-button vjs-menu-button-popup vjs-control vjs-button vjs-hidden"><button class="vjs-descriptions-button vjs-menu-button vjs-menu-button-popup vjs-button"type="button" aria-disabled="false" title="Descriptions" aria-haspopup="true"aria-expanded="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Descriptions</span></button><div class="vjs-menu"><ul class="vjs-menu-content"><li class="vjs-menu-item vjs-selected" tabindex="-1" role="menuitemradio"aria-disabled="false" aria-checked="true"><span class="vjs-menu-item-text">descriptions off</span><span class="vjs-control-text" aria-live="polite">, selected</span></li></ul></div></div><div class="vjs-subs-caps-button vjs-menu-button vjs-menu-button-popup vjs-control vjs-button vjs-hidden"><button class="vjs-subs-caps-button vjs-menu-button vjs-menu-button-popup vjs-button"type="button" aria-disabled="false" title="Subtitles" aria-haspopup="true"aria-expanded="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Subtitles</span></button><div class="vjs-menu"><ul class="vjs-menu-content"><li class="vjs-menu-item vjs-texttrack-settings" tabindex="-1" role="menuitem"aria-disabled="false"><span class="vjs-menu-item-text">subtitles settings</span><span class="vjs-control-text" aria-live="polite">, opens subtitles settings dialog</span></li><li class="vjs-menu-item vjs-selected" tabindex="-1" role="menuitemradio"aria-disabled="false" aria-checked="true"><span class="vjs-menu-item-text">subtitles off</span><span class="vjs-control-text" aria-live="polite">, selected</span></li></ul></div></div><div class="vjs-audio-button vjs-menu-button vjs-menu-button-popup vjs-control vjs-button vjs-hidden"><button class="vjs-audio-button vjs-menu-button vjs-menu-button-popup vjs-button"type="button" aria-disabled="false" title="Audio Track" aria-haspopup="true"aria-expanded="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Audio Track</span></button><div class="vjs-menu"><ul class="vjs-menu-content"><li class="vjs-menu-item vjs-selected vjs-main-menu-item" tabindex="-1"role="menuitemradio" aria-disabled="false" aria-checked="true"><span class="vjs-menu-item-text">default</span><span class="vjs-control-text" aria-live="polite">, selected</span></li></ul></div></div><button class="vjs-picture-in-picture-control vjs-control vjs-button"type="button" title="Picture-in-Picture" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Picture-in-Picture</span></button><button class="vjs-fullscreen-control vjs-control vjs-button" type="button"title="Fullscreen" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Fullscreen</span></button></div><div class="vjs-error-display vjs-modal-dialog vjs-hidden" tabindex="-1"aria-describedby="videoElementCopy_component_472_description" aria-hidden="true"aria-label="Modal Window" role="dialog"><p class="vjs-modal-dialog-description vjs-control-text" id="videoElementCopy_component_472_description">This is a modal window.</p><div class="vjs-modal-dialog-content" role="document">视频播放失败</div></div><div class="vjs-modal-dialog vjs-hidden  vjs-text-track-settings" tabindex="-1"aria-describedby="videoElementCopy_component_478_description" aria-hidden="true"aria-label="Caption Settings Dialog" role="dialog"><p class="vjs-modal-dialog-description vjs-control-text" id="videoElementCopy_component_478_description">Beginning of dialog window. Escape will cancel and close the window.</p><div class="vjs-modal-dialog-content" role="document"><div class="vjs-track-settings-colors"><fieldset class="vjs-fg-color vjs-track-setting"><legend id="captions-text-legend-videoElementCopy_component_478">Text</legend><label id="captions-foreground-color-videoElementCopy_component_478" class="vjs-label">Color</label><select aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478"><option id="captions-foreground-color-videoElementCopy_component_478-White"value="#FFF" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-White">White</option><option id="captions-foreground-color-videoElementCopy_component_478-Black"value="#000" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Black">Black</option><option id="captions-foreground-color-videoElementCopy_component_478-Red"value="#F00" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Red">Red</option><option id="captions-foreground-color-videoElementCopy_component_478-Green"value="#0F0" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Green">Green</option><option id="captions-foreground-color-videoElementCopy_component_478-Blue"value="#00F" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Blue">Blue</option><option id="captions-foreground-color-videoElementCopy_component_478-Yellow"value="#FF0" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Yellow">Yellow</option><option id="captions-foreground-color-videoElementCopy_component_478-Magenta"value="#F0F" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Magenta">Magenta</option><option id="captions-foreground-color-videoElementCopy_component_478-Cyan"value="#0FF" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478 captions-foreground-color-videoElementCopy_component_478-Cyan">Cyan</option></select><span class="vjs-text-opacity vjs-opacity"><label id="captions-foreground-opacity-videoElementCopy_component_478"class="vjs-label">Transparency</label><select aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-opacity-videoElementCopy_component_478"><option id="captions-foreground-opacity-videoElementCopy_component_478-Opaque"value="1" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-opacity-videoElementCopy_component_478 captions-foreground-opacity-videoElementCopy_component_478-Opaque">Opaque</option><option id="captions-foreground-opacity-videoElementCopy_component_478-SemiTransparent"value="0.5" aria-labelledby="captions-text-legend-videoElementCopy_component_478 captions-foreground-opacity-videoElementCopy_component_478 captions-foreground-opacity-videoElementCopy_component_478-SemiTransparent">Semi-Transparent</option></select></span></fieldset><fieldset class="vjs-bg-color vjs-track-setting"><legend id="captions-background-videoElementCopy_component_478">Background</legend><label id="captions-background-color-videoElementCopy_component_478" class="vjs-label">Color</label><select aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478"><option id="captions-background-color-videoElementCopy_component_478-Black"value="#000" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Black">Black</option><option id="captions-background-color-videoElementCopy_component_478-White"value="#FFF" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-White">White</option><option id="captions-background-color-videoElementCopy_component_478-Red"value="#F00" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Red">Red</option><option id="captions-background-color-videoElementCopy_component_478-Green"value="#0F0" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Green">Green</option><option id="captions-background-color-videoElementCopy_component_478-Blue"value="#00F" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Blue">Blue</option><option id="captions-background-color-videoElementCopy_component_478-Yellow"value="#FF0" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Yellow">Yellow</option><option id="captions-background-color-videoElementCopy_component_478-Magenta"value="#F0F" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Magenta">Magenta</option><option id="captions-background-color-videoElementCopy_component_478-Cyan"value="#0FF" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478 captions-background-color-videoElementCopy_component_478-Cyan">Cyan</option></select><span class="vjs-bg-opacity vjs-opacity"><label id="captions-background-opacity-videoElementCopy_component_478"class="vjs-label">Transparency</label><select aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478"><option id="captions-background-opacity-videoElementCopy_component_478-Opaque"value="1" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478-Opaque">Opaque</option><option id="captions-background-opacity-videoElementCopy_component_478-SemiTransparent"value="0.5" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478-SemiTransparent">Semi-Transparent</option><option id="captions-background-opacity-videoElementCopy_component_478-Transparent"value="0" aria-labelledby="captions-background-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478 captions-background-opacity-videoElementCopy_component_478-Transparent">Transparent</option></select></span></fieldset><fieldset class="vjs-window-color vjs-track-setting"><legend id="captions-window-videoElementCopy_component_478">Window</legend><label id="captions-window-color-videoElementCopy_component_478" class="vjs-label">Color</label><select aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478"><option id="captions-window-color-videoElementCopy_component_478-Black"value="#000" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Black">Black</option><option id="captions-window-color-videoElementCopy_component_478-White"value="#FFF" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-White">White</option><option id="captions-window-color-videoElementCopy_component_478-Red"value="#F00" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Red">Red</option><option id="captions-window-color-videoElementCopy_component_478-Green"value="#0F0" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Green">Green</option><option id="captions-window-color-videoElementCopy_component_478-Blue"value="#00F" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Blue">Blue</option><option id="captions-window-color-videoElementCopy_component_478-Yellow"value="#FF0" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Yellow">Yellow</option><option id="captions-window-color-videoElementCopy_component_478-Magenta"value="#F0F" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Magenta">Magenta</option><option id="captions-window-color-videoElementCopy_component_478-Cyan"value="#0FF" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478 captions-window-color-videoElementCopy_component_478-Cyan">Cyan</option></select><span class="vjs-window-opacity vjs-opacity"><label id="captions-window-opacity-videoElementCopy_component_478" class="vjs-label">Transparency</label><select aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478"><option id="captions-window-opacity-videoElementCopy_component_478-Transparent"value="0" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478-Transparent">Transparent</option><option id="captions-window-opacity-videoElementCopy_component_478-SemiTransparent"value="0.5" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478-SemiTransparent">Semi-Transparent</option><option id="captions-window-opacity-videoElementCopy_component_478-Opaque"value="1" aria-labelledby="captions-window-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478 captions-window-opacity-videoElementCopy_component_478-Opaque">Opaque</option></select></span></fieldset></div><div class="vjs-track-settings-font"><fieldset class="vjs-font-percent vjs-track-setting"><legend id="captions-font-size-videoElementCopy_component_478" class="">Font Size</legend><select aria-labelledby="captions-font-size-videoElementCopy_component_478"><option id="captions-font-size-videoElementCopy_component_478-50" value="0.50"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-50">50%</option><option id="captions-font-size-videoElementCopy_component_478-75" value="0.75"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-75">75%</option><option id="captions-font-size-videoElementCopy_component_478-100" value="1.00"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-100">100%</option><option id="captions-font-size-videoElementCopy_component_478-125" value="1.25"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-125">125%</option><option id="captions-font-size-videoElementCopy_component_478-150" value="1.50"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-150">150%</option><option id="captions-font-size-videoElementCopy_component_478-175" value="1.75"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-175">175%</option><option id="captions-font-size-videoElementCopy_component_478-200" value="2.00"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-200">200%</option><option id="captions-font-size-videoElementCopy_component_478-300" value="3.00"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-300">300%</option><option id="captions-font-size-videoElementCopy_component_478-400" value="4.00"aria-labelledby="captions-font-size-videoElementCopy_component_478 captions-font-size-videoElementCopy_component_478-400">400%</option></select></fieldset><fieldset class="vjs-edge-style vjs-track-setting"><legend id="videoElementCopy_component_478" class="">Text Edge Style</legend><select aria-labelledby="videoElementCopy_component_478"><option id="videoElementCopy_component_478-None" value="none" aria-labelledby="videoElementCopy_component_478 videoElementCopy_component_478-None">None</option><option id="videoElementCopy_component_478-Raised" value="raised" aria-labelledby="videoElementCopy_component_478 videoElementCopy_component_478-Raised">Raised</option><option id="videoElementCopy_component_478-Depressed" value="depressed"aria-labelledby="videoElementCopy_component_478 videoElementCopy_component_478-Depressed">Depressed</option><option id="videoElementCopy_component_478-Uniform" value="uniform" aria-labelledby="videoElementCopy_component_478 videoElementCopy_component_478-Uniform">Uniform</option><option id="videoElementCopy_component_478-Dropshadow" value="dropshadow"aria-labelledby="videoElementCopy_component_478 videoElementCopy_component_478-Dropshadow">Dropshadow</option></select></fieldset><fieldset class="vjs-font-family vjs-track-setting"><legend id="captions-font-family-videoElementCopy_component_478" class="">Font Family</legend><select aria-labelledby="captions-font-family-videoElementCopy_component_478"><option id="captions-font-family-videoElementCopy_component_478-ProportionalSansSerif"value="proportionalSansSerif" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-ProportionalSansSerif">Proportional Sans-Serif</option><option id="captions-font-family-videoElementCopy_component_478-MonospaceSansSerif"value="monospaceSansSerif" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-MonospaceSansSerif">Monospace Sans-Serif</option><option id="captions-font-family-videoElementCopy_component_478-ProportionalSerif"value="proportionalSerif" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-ProportionalSerif">Proportional Serif</option><option id="captions-font-family-videoElementCopy_component_478-MonospaceSerif"value="monospaceSerif" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-MonospaceSerif">Monospace Serif</option><option id="captions-font-family-videoElementCopy_component_478-Casual"value="casual" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-Casual">Casual</option><option id="captions-font-family-videoElementCopy_component_478-Script"value="script" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-Script">Script</option><option id="captions-font-family-videoElementCopy_component_478-SmallCaps"value="small-caps" aria-labelledby="captions-font-family-videoElementCopy_component_478 captions-font-family-videoElementCopy_component_478-SmallCaps">Small Caps</option></select></fieldset></div><div class="vjs-track-settings-controls"><button type="button" class="vjs-default-button" title="restore all settings to the default values">Reset<span class="vjs-control-text">restore all settings to the default values</span></button><button type="button" class="vjs-done-button">Done</button></div></div><button class="vjs-close-button vjs-control vjs-button" type="button"title="Close Modal Dialog" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite">Close Modal Dialog</span></button><p class="vjs-control-text">End of dialog window.</p></div></div></div><div class="food" ><div class="onViewBy" ><span >显示视频列表</span></div><div class="switchs" ><div role="switch" class="van-switch van-switch--on" tabindex="0" aria-checked="true"style="font-size: 0.65rem;"><div class="van-switch__node"><!----></div></div><div class="switch_on" ><div class="hdmi"  style="">高清</div><div class="flv"  style="display: none;">标清</div></div></div></div></div></div><!----><!----><!----><!----><!---->
</div>

视频服务请求

Request URL:

https://vcsplay.its-sc.com.cn/api/video.GetCameraPlayURL?cameraNum=6a1906a5-b550-44fd-b0fa-afa2e7077c6d&videoType=0

Request:

  1. cameraNum:6a1906a5-b550-44fd-b0fa-afa2e7077c6d

  2. videoType:0

Request Method:GET

Status Code:200 OK

Response:

{
    "code": 200,
    "msg": "OK",
    "url": "https://vcsplay.its-sc.com.cn:8182/live/6a1906a5-b550-44fd-b0fa-afa2e7077c6d.m3u8?auth_key=1708570164-0-0-f1763ed2c66ea60f6c14427b52dae381"
}


Video.js - HTML5 Video Player
Version 3.2.0

<video id="videoElementCopy_html5_api" class="vjs-tech" autoplay="" webkit-playsinline="true"playsinline="playsinline" type="video/m3u8" data-setup="{}"   style="width: 100%; height: 100%; object-fit: fill;"tabindex="-1" role="application" preload="auto" src="blob:https://etc.its-sc.com.cn/4a1891d9-3586-4b7d-9348-d8513243e93e"><source id="source" type="application/x-mpegURL"   src="https://vcsplay.its-sc.com.cn:8182/live/6a1906a5-b550-44fd-b0fa-afa2e7077c6d.m3u8?auth_key=1708570164-0-0-f1763ed2c66ea60f6c14427b52dae381">
</video>

Request URL:

https://vcsplay.its-sc.com.cn:8196/live/HD_fe4d52ce-e45d-479c-9909-86dc3c1a5a64.m3u8?auth_key=1708570297-0-0-f4e496cf613993c38edbdd0bb88a061d

Request Method:GET

Status Code:200 OK

Remote Address:47.108.232.133:8196

Response:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:3514
#EXT-X-TARGETDURATION:5
#EXT-X-DISCONTINUITY
#EXTINF:3.960, no desc
HD_fe4d52ce-e45d-479c-9909-86dc3c1a5a64-3514.ts
#EXT-X-DISCONTINUITY
#EXTINF:3.960, no desc
HD_fe4d52ce-e45d-479c-9909-86dc3c1a5a64-3515.ts
#EXT-X-DISCONTINUITY
#EXTINF:3.960, no desc
HD_fe4d52ce-e45d-479c-9909-86dc3c1a5a64-3516.ts

https://vcsplay.its-sc.com.cn:8196/live/HD_fe4d52ce-e45d-479c-9909-86dc3c1a5a64-3399.ts

参见:

Video.js - Make your player yours | Video.js

https://vjs.zencdn.net/c/video.js

Video.js API docs

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/695244.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

[服务器-数据库]MongoDBv7.0.4不支持ipv6访问

文章目录 MongoDBv7.0.4不支持ipv6访问错误描述问题分析错误原因解决方式 MongoDBv7.0.4不支持ipv6访问 错误描述 报错如下描述 Cannot connect to MongoDB.No suitable servers found: serverSelectionTimeoutMS expired: [failed to resolve 2408]问题分析 首先确定其是…

Android14 InputManager-InputReader的处理

IMS启动时会调用InputReader.start()方法 InputReader.cpp status_t InputReader::start() {if (mThread) {return ALREADY_EXISTS;}mThread std::make_unique<InputThread>("InputReader", [this]() { loopOnce(); }, [this]() { mEventHub->wake(); });…

Java SE 入门到精通—基础语法【Java】

敲重点&#xff01; 本篇讲述了比较重要的基础&#xff0c;是必须要掌握的 1.程序入口 在Java中&#xff0c;main方法是程序的入口点&#xff0c;是JVM&#xff08;Java虚拟机&#xff09;执行Java应用程序的起始点。 main方法的方法签名必须遵循下面规范&#xff1a; publ…

【力扣白嫖日记】1987.上级经理已离职的公司员工

前言 练习sql语句&#xff0c;所有题目来自于力扣&#xff08;https://leetcode.cn/problemset/database/&#xff09;的免费数据库练习题。 今日题目&#xff1a; 1978.上级经理已离职的公司员工 表&#xff1a;Employees 列名类型employee_idintnamevarcharmanager_idint…

DTV的LCN功能介绍

文章目录 LCN简介LCN获取LCN Conflict LCN简介 Logical Channel Number&#xff08;LCN&#xff09;是数字电视系统中用于标识和组织频道的逻辑编号。LCN的目的是为了方便用户浏览和选择频道&#xff0c;使得数字电视接收设备能够根据这些逻辑编号对频道进行排序和显示。 LCN…

学习大数据所需的java基础(5)

文章目录 集合框架Collection接口迭代器迭代器基本使用迭代器底层原理并发修改异常 数据结构栈队列数组链表 List接口底层源码分析 LinkList集合LinkedList底层成员解释说明LinkedList中get方法的源码分析LinkedList中add方法的源码分析 增强for增强for的介绍以及基本使用发2.使…

【成都游戏业:千游研发之都的发展与机遇】

成都游戏业&#xff1a; 千游研发之都的发展与机遇 作为我国西部游戏产业的龙头&#xff0c;成都这座城市正在高速发展&#xff0c;目标是崛起成为千亿级游戏研发之都。多年来&#xff0c;在政策扶持、人才汇聚以及文化底蕴等助力下&#xff0c;成都游戏业已经形成完整的产业链…

MyBatis--02-1- MybatisPlus----条件构造器

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 文章目录 前言AbstractWrapper 条件构造器官网文档https://baomidou.com/pages/10c804/#abstractwrapper](https://baomidou.com/pages/10c804/#abstractwrapper)![在这里插入…

安全这么卷了吗?北京,渗透,4k,不包吃住,非实习

起初某HR找人发了条招聘信息 看到被卷到4k一个月被震惊到了 随后发布了朋友圈&#xff0c;引起来众多讨论 对此网友发表众多评价 越来越卷的工作现象确实是一个普遍存在的问题 另外&#xff0c;也可以考虑和雇主沟通&#xff0c; 寻求更合理的工作安排&#xff0c; 或者…

[ 2024春节 Flink打卡 ] -- Paimon

2024&#xff0c;游子未归乡。工作需要&#xff0c;flink coding。觉知此事要躬行&#xff0c;未休&#xff0c;特记 Flink 社区希望能够将 Flink 的 Streaming 实时计算能力和 Lakehouse 新架构优势进一步结合&#xff0c;推出新一代的 Streaming Lakehouse 技术&#xff0c;…

springboot访问webapp下的jsp页面

一&#xff0c;项目结构。 这是我的项目结构&#xff0c;jsp页面放在WEB-INF下的page目录下面。 二&#xff0c;file--->Project Structure,确保这两个地方都是正确的&#xff0c;确保Source Roots下面有webapp这个目录&#xff08;正常来说&#xff0c;应该本来就有&#…

Python in Visual Studio Code 2024年2月发布

排版&#xff1a;Alan Wang 我们很高兴地宣布 2024 年 2 月版 Visual Studio Code 的 Python 和 Jupyter 扩展已经推出&#xff01; 此版本包括以下公告&#xff1a; 默认安装的 Python 调试器扩展快速选择 Python 解释器中的“Create Environment”选项Jupyter 的内置变量查…

flink反压

flink反压&#xff08;backpressure&#xff09;&#xff0c;简单来说就是当接收方的接收速率低于发送方的发送速率&#xff0c;这时如果不做处理就会导致接收方的数据积压越来越多直到内存溢出&#xff0c;所以此时需要一个机制来根据接收方的状态反过来限制发送方的发送速率&…

Spring6学习技术|IoC|手写IoC

学习材料 尚硅谷Spring零基础入门到进阶&#xff0c;一套搞定spring6全套视频教程&#xff08;源码级讲解&#xff09; 有关反射的知识回顾 IoC是基于反射机制实现的。 Java反射机制是在运行状态中&#xff0c;对于任意一个类&#xff0c;都能够知道这个类的所有属性和方法&…

网页数据的解析提取(正则表达式----re库详解)

前面&#xff0c;我们已经可以用requests库来获取网页的源代码&#xff0c;得到HTML代码。但我们真正想要的数据是包含在HTML代码之中的。要怎样才能从HTML代码中获取想要的信息呢&#xff1f;正则表达式是一个万能的方法&#xff01;&#xff01;&#xff01; 目录 正则表达…

多维时序 | Matlab实现基于VMD-DBO-GRU、VMD-GRU、GRU的多变量时间序列预测

多维时序 | Matlab实现基于VMD-DBO-GRU、VMD-GRU、GRU的多变量时间序列预测 目录 多维时序 | Matlab实现基于VMD-DBO-GRU、VMD-GRU、GRU的多变量时间序列预测预测效果基本介绍程序设计参考资料 预测效果 基本介绍 Matlab实现基于VMD-DBO-GRU、VMD-GRU、GRU的多变量时间序列预测…

辽宁博学优晨教育:视频剪辑培训,开启创意新篇章

在数字化时代&#xff0c;视频已成为信息传播的重要载体。辽宁博学优晨教育紧跟时代步伐&#xff0c;推出全新的视频剪辑培训课程&#xff0c;为广大学员开启创意之旅&#xff0c;探索视频剪辑的无限可能。 一、视频剪辑&#xff1a;时代的选择与技能的进阶 随着互联网的普及和…

Stable diffusion UI 介绍-文生图

1.提示词&#xff1a; 你希望图中有什么东西 2.负面提示词&#xff1a;你不希望图中有什么东西 选用了什么模型 使用参数 1.采样器 sampling method 使用什么算法进行采样 2.采样迭代步数 sampling steps 生成图像迭代的步数&#xff0c;越多越好&#xff0c;但是生成速度越大越…

【C语言】socket 层到网络接口的驱动程序之间的函数调用过程

一、socket 层到网络接口的驱动程序之间的函数调用过程概述 在 Linux 操作系统中&#xff0c;socket 层到网络接口的驱动程序之间的函数调用过程相对复杂&#xff0c;涉及多个层次的交互。以下是一个简化的概述&#xff0c;描述数据从 socket 传递到硬件驱动&#xff0c;再到硬…

uniapp播放mp4省流方案

背景&#xff1a; 因为项目要播放一个宣传和讲解视频&#xff0c;视频文件过大&#xff0c;同时还为了节省存储流量&#xff0c;想到了一个方案&#xff0c;用m3u8切片替代mp4。 m3u8&#xff1a;切片播放&#xff0c;可以理解为一个1G的视频文件&#xff0c;自行设置文…