Compare commits
2 Commits
964bfff91d
...
4d862d0118
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d862d0118 | |||
| c605dd377d |
@@ -1157,84 +1157,6 @@ defineExpose({
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// .fullscreen-container {
|
|
||||||
// position: fixed;
|
|
||||||
// top: 0;
|
|
||||||
// left: 0;
|
|
||||||
// right: 0;
|
|
||||||
// bottom: 0;
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: center;
|
|
||||||
// align-items: center;
|
|
||||||
// z-index: 999999;
|
|
||||||
// width: 100%;
|
|
||||||
// height: 100%;
|
|
||||||
// .content {
|
|
||||||
// width: 100%;
|
|
||||||
// // height: 871px;
|
|
||||||
// height: 100%;
|
|
||||||
// /* src\pages\page-web\daping\img\弹窗.png */
|
|
||||||
// // background: url(img/icon/bgData.png) no-repeat;
|
|
||||||
// background-size: cover;
|
|
||||||
// position: relative;
|
|
||||||
// // padding: 30px 24px 0;
|
|
||||||
// .content-top {
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: end;
|
|
||||||
// margin-bottom: 10px;
|
|
||||||
// > .top-right {
|
|
||||||
// width: 755px;
|
|
||||||
// padding-left: 240px;
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: space-between;
|
|
||||||
// align-items: flex-start;
|
|
||||||
// > .btn-list {
|
|
||||||
// display: inline-flex;
|
|
||||||
// color: #fff;
|
|
||||||
// > .btn {
|
|
||||||
// width: 90px;
|
|
||||||
// font-size: 16px;
|
|
||||||
// margin: 0 10px;
|
|
||||||
// border: 1px solid #d3d3d3;
|
|
||||||
// padding: 4px 12px;
|
|
||||||
// border-radius: 12px;
|
|
||||||
// text-align: center;
|
|
||||||
// text-wrap: nowrap;
|
|
||||||
// &:hover {
|
|
||||||
// cursor: pointer;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// > .btnActive {
|
|
||||||
// background-color: #1890ff;
|
|
||||||
// border: 1px solid #1890ff;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// > .close {
|
|
||||||
// font-size: 26px;
|
|
||||||
// color: #fff;
|
|
||||||
// &:hover {
|
|
||||||
// cursor: pointer;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// > .player-content {
|
|
||||||
// width: 100%;
|
|
||||||
// height: 100%;
|
|
||||||
// display: flex;
|
|
||||||
// align-items: center;
|
|
||||||
// justify-content: center;
|
|
||||||
// overflow: hidden;
|
|
||||||
// > .player {
|
|
||||||
// width: 100%;
|
|
||||||
// height: 100%;
|
|
||||||
// display: flex;
|
|
||||||
// align-items: center;
|
|
||||||
// justify-content: center;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
.fullscreen-container {
|
.fullscreen-container {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -1245,7 +1167,7 @@ defineExpose({
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 999;
|
z-index: 9999;
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
&:fullscreen {
|
&:fullscreen {
|
||||||
|
|||||||
@@ -16,12 +16,12 @@
|
|||||||
<a-spin size="large" v-if="loading" />
|
<a-spin size="large" v-if="loading" />
|
||||||
<!-- <div id="player" v-else></div> -->
|
<!-- <div id="player" v-else></div> -->
|
||||||
<div class="player" :id="'player_' + sn" v-else>
|
<div class="player" :id="'player_' + sn" v-else>
|
||||||
<jessibuca
|
<stream-player
|
||||||
ref="jessibucaVideo"
|
ref="jessibucaVideo"
|
||||||
style="width: 100%; height: 100%"
|
style="width: 100%; height: 100%"
|
||||||
:videoUrl="flvUrl"
|
:videoUrl="flvUrl"
|
||||||
:showQu="false"
|
:showQu="false"
|
||||||
></jessibuca>
|
></stream-player>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +35,7 @@ import { message } from 'ant-design-vue';
|
|||||||
import jswebrtc from '/@/vendors/jswebrtc.js';
|
import jswebrtc from '/@/vendors/jswebrtc.js';
|
||||||
import FlvExtend from 'flv-extend';
|
import FlvExtend from 'flv-extend';
|
||||||
import { useUserAuthor } from '/@/hooks/use-g-author';
|
import { useUserAuthor } from '/@/hooks/use-g-author';
|
||||||
import jessibuca from './live/jessibuca.vue';
|
import streamPlayer from './live/stream-player.vue';
|
||||||
import { getAiLive } from '/@/api/daping';
|
import { getAiLive } from '/@/api/daping';
|
||||||
const { getAiAuthor } = useUserAuthor();
|
const { getAiAuthor } = useUserAuthor();
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -289,7 +289,8 @@ const createRtmpVideo = async (url: string) => {
|
|||||||
// 将video加入到 dom中
|
// 将video加入到 dom中
|
||||||
// remotePlay?.appendChild(link);
|
// remotePlay?.appendChild(link);
|
||||||
await nextTick(async () => {
|
await nextTick(async () => {
|
||||||
await rtmpVideoData(url, 'player_'+props.sn);
|
flvUrl.value = url;
|
||||||
|
await jessibucaVideo.value?.play?.(url);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
let videoPalyer = null;
|
let videoPalyer = null;
|
||||||
@@ -429,16 +430,15 @@ watch(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
// console.log('ckckckckk----',props)
|
// console.log('ckckckckk----',props)
|
||||||
// onloadCamera();
|
// onloadCamera();
|
||||||
createRtmpVideo(props.flvUrl)
|
createRtmpVideo(props.flvUrl)
|
||||||
});
|
});
|
||||||
const emit = defineEmits(['close']);
|
const emit = defineEmits(['close']);
|
||||||
const closeVideo = () => {
|
const closeVideo = () => {
|
||||||
if (!videoPalyer) return;
|
|
||||||
videoPalyer.close();
|
|
||||||
videoPalyer = null;
|
videoPalyer = null;
|
||||||
|
flvUrl.value = '';
|
||||||
|
jessibucaVideo.value?.destroy?.();
|
||||||
};
|
};
|
||||||
const closeMoadl = () => {
|
const closeMoadl = () => {
|
||||||
closeVideo();
|
closeVideo();
|
||||||
|
|||||||
@@ -349,6 +349,11 @@ const pause = () => {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
#jessibuca {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.buttons-box {
|
.buttons-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<jessibuca
|
<jessibuca
|
||||||
v-show="!isWebrtcMode"
|
v-show="!isWebrtcMode"
|
||||||
ref="flvPlayerRef"
|
ref="flvPlayerRef"
|
||||||
|
style="width: 100%; height: 100%;"
|
||||||
:currentVedioDatas="currentVedioDatas"
|
:currentVedioDatas="currentVedioDatas"
|
||||||
:videoUrl="videoUrl"
|
:videoUrl="videoUrl"
|
||||||
:error="error"
|
:error="error"
|
||||||
@@ -393,7 +394,7 @@ defineExpose({
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
object-fit: fill;
|
object-fit:cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons-box-right {
|
.buttons-box-right {
|
||||||
|
|||||||
Reference in New Issue
Block a user