|
|
@@ -128,7 +128,7 @@ export function useCamera() {
|
|
|
videoDom.volume = 0;
|
|
|
videoDom.setAttribute('class', 'rtspVideo');
|
|
|
videoDom.setAttribute('muted', 'muted');
|
|
|
- videoDom.setAttribute('poster', '/src/assets/images/vent/noSinge.png');
|
|
|
+ // 不设置 poster,避免断流重连时暗色封面闪现压暗画面
|
|
|
videoDom.autoplay = true;
|
|
|
|
|
|
try {
|
|
|
@@ -201,7 +201,7 @@ export function useCamera() {
|
|
|
url: videoParent[1].addr,
|
|
|
width: 294,
|
|
|
height: 188,
|
|
|
- poster: '/src/assets/images/vent/noSinge.png',
|
|
|
+ poster: '',
|
|
|
plugins: [FlvPlugin],
|
|
|
fluid: true,
|
|
|
autoplay: true,
|
|
|
@@ -209,7 +209,7 @@ export function useCamera() {
|
|
|
playsinline: true,
|
|
|
screenShot: true,
|
|
|
whitelist: [''],
|
|
|
- ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate'],
|
|
|
+ ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate', 'poster', 'start', 'enter', 'loading', 'error', 'replay'],
|
|
|
closeVideoClick: true,
|
|
|
customConfig: {
|
|
|
isClickPlayBack: false,
|
|
|
@@ -247,8 +247,8 @@ export function useCamera() {
|
|
|
autoplay: true,
|
|
|
autoplayMuted: true,
|
|
|
cors: true,
|
|
|
- ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate'],
|
|
|
- poster: '/src/assets/images/vent/noSinge.png',
|
|
|
+ ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate', 'poster', 'start', 'enter', 'loading', 'error', 'replay'],
|
|
|
+ poster: '',
|
|
|
defaultPlaybackRate: videoParent[1].cameraRate || 1,
|
|
|
controlsList: ['nodownload', 'nofullscreen', 'noremoteplayback'],
|
|
|
hls: {
|
|
|
@@ -276,9 +276,9 @@ export function useCamera() {
|
|
|
isLive: true,
|
|
|
autoplay: true,
|
|
|
autoplayMuted: true,
|
|
|
- ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate'],
|
|
|
+ ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate', 'poster', 'start', 'enter', 'loading', 'error', 'replay'],
|
|
|
plugins: [HlsPlugin], // 第二步
|
|
|
- poster: '/src/assets/images/vent/noSinge.png',
|
|
|
+ poster: '',
|
|
|
defaultPlaybackRate: videoParent[1].cameraRate || 1,
|
|
|
controlsList: ['nodownload', 'nofullscreen', 'noremoteplayback'],
|
|
|
hls: {
|
|
|
@@ -374,7 +374,7 @@ export function useCamera() {
|
|
|
url: cameraUrl,
|
|
|
width: option.width,
|
|
|
height: option.height,
|
|
|
- poster: '/src/assets/images/vent/noSinge.png',
|
|
|
+ poster: '',
|
|
|
plugins: [FlvPlugin],
|
|
|
fluid: true,
|
|
|
autoplay: true,
|
|
|
@@ -382,7 +382,7 @@ export function useCamera() {
|
|
|
playsinline: true,
|
|
|
screenShot: true,
|
|
|
whitelist: [''],
|
|
|
- ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate'],
|
|
|
+ ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate', 'poster', 'start', 'enter', 'loading', 'error', 'replay'],
|
|
|
closeVideoClick: true,
|
|
|
customConfig: {
|
|
|
isClickPlayBack: false,
|
|
|
@@ -419,8 +419,8 @@ export function useCamera() {
|
|
|
autoplay: true,
|
|
|
autoplayMuted: true,
|
|
|
cors: true,
|
|
|
- ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate'],
|
|
|
- poster: '/src/assets/images/vent/noSinge.png',
|
|
|
+ ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate', 'poster', 'start', 'enter', 'loading', 'error', 'replay'],
|
|
|
+ poster: '',
|
|
|
defaultPlaybackRate: cameraRate || 1,
|
|
|
controlsList: ['nodownload', 'nofullscreen', 'noremoteplayback'],
|
|
|
hls: {
|
|
|
@@ -448,9 +448,9 @@ export function useCamera() {
|
|
|
isLive: true,
|
|
|
autoplay: true,
|
|
|
autoplayMuted: true,
|
|
|
- ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate'],
|
|
|
+ ignores: ['time', 'progress', 'play', 'i18n', 'volume', 'fullscreen', 'screenShot', 'playbackRate', 'poster', 'start', 'enter', 'loading', 'error', 'replay'],
|
|
|
plugins: [HlsPlugin], // 第二步
|
|
|
- poster: '/src/assets/images/vent/noSinge.png',
|
|
|
+ poster: '',
|
|
|
defaultPlaybackRate: cameraRate || 1,
|
|
|
controlsList: ['nodownload', 'nofullscreen', 'noremoteplayback'],
|
|
|
hls: {
|