Jessibuca 插件播放直播流视频

jessibuca官网:http://jessibuca.monibuca.com/player.html
git地址:https://gitee.com/huangz2350_admin/jessibuca#https://gitee.com/link?target=http%3A%2F%2Fjessibuca.monibuca.com%2F
项目需要的文件
在这里插入图片描述
在这里插入图片描述

1.播放组件

<template >
    <div id="jessibuca" style="width: auto; height: auto; position: relative" @mouseover="showbtn">
        <div :id="'container' + index" ref="container" :style="'position: relative;width: 100%; height:' +
            height +
            '; background:url(' +  background +
            ') no-repeat;background-size: 100% 100%;background-color: #000;'
            " @dblclick="fullscreenSwich">
            <div :id="'buttonsBox' + index" class="buttons-box" style="position: absolute; left: 0; bottom: 0">
                <div class="buttons-box-left">
                    <i v-if="!playing" class="iconfont icon-play jessibuca-btn" @click="playBtnClick" />
                    <i v-if="playing" class="iconfont icon-pause jessibuca-btn" @click="pause" />
                    <i class="iconfont icon-stop jessibuca-btn" @click="destroy" />
                    <i v-if="isNotMute" class="iconfont icon-audio-high jessibuca-btn" @click="jessibuca.mute()" />
                    <i v-if="!isNotMute" class="iconfont icon-audio-mute jessibuca-btn" @click="jessibuca.cancelMute()" />
                </div>
                <div class="buttons-box-right">
                    <span class="jessibuca-btn">{{ kBps }} kb/s</span>
                    <!--          <i class="iconfont icon-file-record1 jessibuca-btn"></i>-->
                    <!--          <i class="iconfont icon-xiangqing2 jessibuca-btn" ></i>-->
                    <i class="iconfont icon-camera1196054easyiconnet jessibuca-btn"
                        @click="jessibuca.screenshot('截图', 'png', 0.5)" />
                    <i class="iconfont icon-shuaxin11 jessibuca-btn" @click="playBtnClick" />
                    <i v-if="!fullscreen" class="iconfont icon-weibiaoti10 jessibuca-btn" @click="fullscreenSwich" />
                    <i v-if="fullscreen" class="iconfont icon-weibiaoti11 jessibuca-btn" @click="fullscreenSwich" />
                </div>
            </div>
        </div>
        <div v-if="!playing && !autoplay" class="btn-image" :style="'height:' + height">
            <div class="btn-image-center" @click="playBtnClick" :style="'width:' +
                btnimageW +
                ';height: ' +
                btnimageH +
                ';background:url(' +
                btnimage +
                ') no-repeat;background-size: 100% 100%;'
                "></div>
        </div>
    </div>
</template>
  
<script>
/* eslint-disable no-underscore-dangle */
export default {
    name: 'Jessibuca',
    props: {
        index: {
            //index
            type: Number,
            default: 0,
        },
        videoUrl: {
            //播放地址
            type: String,
            default: '',
        },
        error: {
            //报错信息
            type: Function,
            default: null,
        },
        hasAudio: {
            //静音
            type: Boolean,
            default: false,
        },
        height: {
            //播放器高度
            type: String,
            default: '500px',
        },
        isFullResize: {
            //播放面即是否填充满容器
            type: Boolean,
            default: true,
        },
        autoplay: {
            //是否自动播放
            type: Boolean,
            default: false,
        },
        background: {
            //封面图
            type: String,
            default: '',
        },
        btnimage: {
            //播放器按钮图片
            type: String,
            default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADUNJREFUeF7tnV+MHVUdx3/n3pVNbRFLDJhaNCG6pRAkWCUttrJYWtGAQXSlu3Nmob17Z7bFJVIUaQjtm4kv1KQktbcrone2JFYl8RlsrGLwwRhJ/MMfX4360IdiQuu6c8y5u9tdWpbemXPmN2fOfJv0bX6/3/l9fvPJ3Dn37owg/AMBEFiRgAAbEACBlQlAEJwdIPAeBCAITg8QgCA4B0AgHwFcQfJxQ1RNCECQmgwabeYjAEHycUNUTQhAkJoMGm3mIwBB8nFDVE0IQJCaDBpt5iMAQfJxQ1RNCECQmgwabeYjAEHycUNUTQhAkJoMGm3mIwBB8nFDVE0IsAkyNhZ/otlM19WEK9oskMDcXOMfJ04ce6PAEhdSFyZIEMTbhVD3CUE3KUWbiOgDHA2hRm0InBWC/qAU/VmIxgvd7g9+VUTnhQgiZfQ0ET1axIKREwRWIHA4STr7bdOxLoiU0WtENGR7ocgHAn0QeD1JOhv6OK7vQ6wKImV8mkht67s6DgQB+wROJ0nnDltprQkShnFLKTVta2HIAwJ5CSilWjMzx5/NG788zoogo6PxlmZT/c7GgpADBGwQUCrdMjMz/YppLiuCBEH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oAgpgSRLzXBCCI1+NFc6YEIIgpQcR7TQCCeD1eNGdKAIKYEkS81wQgiNfjRXOmBCCIKUHEe00Agng9XjRnSgCCmBJEvNcEIIjX40VzpgQgiClBxHtNAIJ4PV40Z0oAgpgSRLzXBJwQZHy8PZSmwvjNr15PCs2VQiBNxdCJE8feMCkuTIIXY6WMzhLRlTZyIQcIWCJwNkk6V5nmsiRI+xSRGDZdDOJBwBYBIehUt9v5vGk+K4IEQfSMEPSw6WIQDwIWCTyTJJ0p03yWBIm3C6FeNF0M4kHAFgGlxF0zM8deMs1nRRC9CCkj/e7wR00XhHgQsEDgcJJ09lvIQ9YEWZBE72YN2VgYcoBATgKvJ0lnQ87YS8KsCjIvSXyaSG2ztUDkAYEMBE4nSeeODMdf9lDrguiKYRi3lFLTl62OA0DAEgEh0olud/qHltJdSFOIIDr76Gi8pdFIx4UQnyQi/X+N7cUjX60J/IeIXiWiPymV/mRmZvqVImgUJsjFiw3DiY1K0bVFNIGc9SIgBP2r253+K0fXbIJwNIMaIGCbAASxTRT5vCIAQbwaJ5qxTQCC2CaKfF4RgCBejRPN2CYAQWwTRT6vCEAQr8aJZmwTgCC2iSKfVwQgiFfjRDO2CUAQ20SRzysCEMSrcaIZ2wQgiG2iyOcVAQji1TjRjG0CEMQ2UeTzigAE8WqcaMY2AQhimyjyeUXg/3DQ3hQovnZyAAAAAElFTkSuQmCC',
        },
        btnimageH: {
            //播放器按钮图片高度
            type: String,
            default: '60px',
        },
        btnimageW: {
            //播放器按钮图片宽度
            type: String,
            default: '60px',
        },
    },
    data() {
        return {
            jessibuca: null,
            playing: false,
            isNotMute: false,
            quieting: false,
            fullscreen: false,
            loaded: false, // mute
            speed: 0,
            performance: '', // 工作情况
            kBps: 0,
            btnDom: null,
            videoInfo: null,
            volume: 1,
            rotate: 0,
            vod: true, // 点播
            forceNoOffscreen: false,
        }
    },
    watch: {
        videoUrl: {
            handler(newData, oldData) {
                if (!this.autoplay && !oldData) return
                this.play(newData)
            },
        },
    },
    mounted() {
        window.onerror = (msg) => {
            // console.error(msg)
        }
        const paramUrl = decodeURIComponent(this.$route.params.url)
        this.$nextTick(() => {
            if (typeof this.videoUrl === 'undefined') {
                this.videoUrl = paramUrl
            }
            this.btnDom = document.getElementById('buttonsBox' + this.index)
            console.log(`初始化时的地址为: ${this.videoUrl}`)
            this.autoplay ? this.play(this.videoUrl) : ''
        })
    },
    destroyed() {
        if (this.jessibuca) {
            this.jessibuca.destroy()
        }
        this.playing = false
        // this.loaded = false
        this.performance = ''
    },
    methods: {
        create() {
            const options = {}
            console.log(this.$refs.container)
            console.log(`hasAudio  ${this.hasAudio}`)

            this.jessibuca = new window.Jessibuca(
                Object.assign(
                    {
                        container: this.$refs.container,
                        videoBuffer: 0.5, // 最大缓冲时长,单位秒
                        isResize: true,
                        isFlv: true,
                        decoder: '/js/jessibuca/index.js',
                        // text: "WVP-PRO",
                        // background: "bg.jpg",
                        loadingText: '加载中',
                        hasAudio:
                            typeof this.hasAudio === 'undefined' ? true : this.hasAudio,
                        debug: false,
                        supportDblclickFullscreen: false, // 是否支持屏幕的双击事件,触发全屏,取消全屏事件。
                        operateBtns: {
                            fullscreen: false,
                            screenshot: false,
                            play: false,
                            audio: false,
                        },
                        record: 'record',
                        isFullResize: this.isFullResize || false,
                        vod: this.vod,
                        forceNoOffscreen: this.forceNoOffscreen,
                        isNotMute: this.isNotMute,
                    },
                    options
                )
            )

            // eslint-disable-next-line no-underscore-dangle
            const _this = this
            this.jessibuca.on('load', () => {
                console.log('on load init')
            })

            this.jessibuca.on('log', (msg) => {
                console.log('on log', msg)
            })
            this.jessibuca.on('record', (msg) => {
                console.log('on record:', msg)
            })
            this.jessibuca.on('pause', () => {
                _this.playing = false
            })
            this.jessibuca.on('play', () => {
                _this.playing = true
            })
            this.jessibuca.on('fullscreen', (msg) => {
                console.log('on fullscreen', msg)
                _this.fullscreen = msg
            })

            this.jessibuca.on('mute', (msg) => {
                console.log('on mute', msg)
                _this.isNotMute = !msg
            })
            this.jessibuca.on('audioInfo', (msg) => {
                // console.log("audioInfo", msg);
            })

            this.jessibuca.on('videoInfo', function (msg) {
                this.videoInfo = msg
                // console.log("videoInfo", msg);
            })

            this.jessibuca.on('bps', (bps) => {
                // console.log('bps', bps);
            })
            // eslint-disable-next-line no-unused-vars
            let _ts = 0
            this.jessibuca.on('timeUpdate', (ts) => {
                // console.log('timeUpdate,old,new,timestamp', _ts, ts, ts - _ts);
                _ts = ts
            })

            this.jessibuca.on('videoInfo', (info) => {
                console.log('videoInfo', info)
            })

            this.jessibuca.on('error', (error) => {
                console.log('error', error)
            })

            this.jessibuca.on('timeout', () => {
                console.log('timeout')
            })

            this.jessibuca.on('start', () => {
                console.log('start')
            })

            this.jessibuca.on('performance', (performance) => {
                let show = '卡顿'
                if (performance === 2) {
                    show = '非常流畅'
                } else if (performance === 1) {
                    show = '流畅'
                }
                _this.performance = show
            })
            this.jessibuca.on('buffer', (buffer) => {
                // console.log('buffer', buffer);
            })

            this.jessibuca.on('stats', (stats) => {
                // console.log('stats', stats);
            })

            this.jessibuca.on('kBps', (kBps) => {
                _this.kBps = Math.round(kBps)
            })

            // 显示时间戳 PTS
            this.jessibuca.on('videoFrame', () => { })

            //
            this.jessibuca.on('metadata', () => { })
        },
        playBtnClick(event) {
            this.play(this.videoUrl)
        },
        play(url) {
            if (!url || url.length == 0) {
                this.$message.warning('当前摄像头出错,请稍后重试')
                this.pause()
                return
            }
            if (this.jessibuca) {
                this.destroy()
            }
            this.create()
            this.jessibuca.on('play', () => {
                this.playing = true
                // this.loaded = true
                // this.quieting = this.jessibuca.quieting
            })
            if (this.jessibuca.hasLoaded()) {
                this.jessibuca.play(url)
            } else {
                this.jessibuca.on('load', () => {
                    console.log('load 播放')
                    this.jessibuca.play(url)
                })
            }
        },
        pause() {
            if (this.jessibuca) {
                this.jessibuca.pause()
            }
            this.playing = false
            this.err = ''
            this.performance = ''
        },
        destroy() {
            if (this.jessibuca) {
                this.jessibuca.destroy()
            }
            if (document.getElementById('buttonsBox' + this.index) == null) {
                document
                    .getElementById('container' + this.index)
                    .appendChild(this.btnDom)
            }
            this.jessibuca = null
            this.playing = false
            this.err = ''
            this.performance = ''
        },
        showbtn() {
            if (document.getElementById('buttonsBox' + this.index) == null) {
                document
                    .getElementById('container' + this.index)
                    .appendChild(this.btnDom)
            }
        },
        eventcallbacK(type, message) {
            // console.log("player 事件回调")
            // console.log(type)
            // console.log(message)
        },
        fullscreenSwich() {
            const isFull = this.isFullscreen()
            this.jessibuca.setFullscreen(!isFull)
            this.fullscreen = !isFull
        },
        isFullscreen() {
            return (
                document.fullscreenElement ||
                document.msFullscreenElement ||
                document.mozFullScreenElement ||
                document.webkitFullscreenElement ||
                false
            )
        },
    },
}
</script>
  
<style>
@font-face {
    font-family: 'iconfont';
    /* Project id 1291092 */
    src: url('iconfont.woff2') format('woff2');
}

.iconfont {
    font-family: 'iconfont' !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-play:before {
    content: '\e603';
}

.icon-pause:before {
    content: '\e6c6';
}

.icon-stop:before {
    content: '\e6a8';
}

.icon-audio-high:before {
    content: '\e793';
}

.icon-audio-mute:before {
    content: '\e792';
}

.icon-shuaxin11:before {
    content: '\e720';
}

.icon-weibiaoti10:before {
    content: '\e78f';
}

.icon-weibiaoti11:before {
    content: '\e790';
}

.icon-camera1196054easyiconnet:before {
    content: '\e791';
}

.buttons-box {
    width: 100%;
    height: 0px;
    transition: 0.4s;
    background-color: rgba(43, 51, 63, 0.7);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    user-select: none;
    z-index: 100;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#jessibuca:hover .buttons-box {
    height: 40px;
}

.buttons-box-left {
    display: flex;
    flex: 1;
    align-items: center;
}

.jessibuca-btn {
    color: rgb(255, 255, 255);
    line-height: 27px;
    margin: 0px 5px;
    padding: 0px 2px;
    cursor: pointer;
    text-align: center;
    font-size: 20px !important;
}

.buttons-box-right {
    height: 100%;
    position: absolute;
    right: 0;
    display: flex;
    flex: 1;
    align-items: center;
    font-size: 20px;
}

.btn-image {
    width: 100%;
    /* height: 100%; */
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99 !important;
}

.btn-image-center {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}
</style>
  
  
.jessibuca-btn 设置播放控件的间距
decoder: '/js/jessibuca/index.js',地址是服务静态文件的相对地址
 src: url('iconfont.woff2') format('woff2'); 相对地址 iconfont.woff2需要和组件放在同一目录下

2.父组件引用

<template>
  <div class="app-container">
    <player video-url="视频地址" :has-audio="false" height="200px" :isFullResize="false" :autoplay="true"
      :index="getIndex" />
  </div>
</template>
<script>
import player from '@/components/jessibuca/index.vue' // h265播放器

export default {
  name: 'video',
  components: {
    player,
  },
  data() {
    return {
    }
  },
  computed: {
    // 获取时间戳
    getIndex() {
      let time = new Date().getTime()
      return time
    },
  },
}
</script>


3.index.html 需要引入静态js文件

<script src="./public/js/jessibuca/index.js"></script>

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

汽车改装轮毂需要备案吗?哪些不需要更换轮毂?

如今&#xff0c;改装轮毂已经成为很多汽车爱好者的必备选择。 在改装轮毂之前&#xff0c;还有一些问题需要先弄清楚。 网友最常问的问题是&#xff1a;改装轮毂需要注册吗&#xff1f; 今天综艺猴就和朋友们聊聊这个问题。 请问还有哪些改造项目需要备案&#xff1f; 哪些是…

【Unity】如何从现有项目中抽取好用的资源

【背景】 在做Unity项目的过程中引入各种各样的Package&#xff0c;有的Package很大&#xff0c;但是觉得非常有用的可能只是几个Prefab或者Material等。如果直接拷贝想要的Prefab和Material&#xff0c;又需要自己确认所有有依赖关系的资源。 如果能将所有日常经受项目中自己…

电子病历系统

电子病历系统 获取源码——》公主号&#xff1a;计算机专业毕设大全

早产儿视网膜病变分期,自动化+半监督(无需大量医生标注数据)

早产儿视网膜病变 ROP 分期 提出背景解法框架解法步骤一致性正则化算法构建思路 实验 提出背景 论文&#xff1a;https://www.cell.com/action/showPdf?piiS2589-0042%2823%2902593-2 早产儿视网膜病变&#xff08;ROP&#xff09;目前是全球婴儿失明的主要原因之一。 这是…

有效电子邮件地址的最大长度是多少个符号?

有效电子邮件地址怎么填&#xff1f;如何校验邮件地址的有效性&#xff1f; 电子邮件已经成为我们日常生活和工作中不可或缺的一部分。有效电子邮件地址的正确性对于确保信息传递的准确和及时至关重要。那么&#xff0c;你可能会好奇&#xff0c;有效电子邮件地址的最大长度是…

数据结构知识点总结-线性表(3)-双向链表定义、循环单链表、、循环双向链表、静态链表、顺序表与链表的比较

双向链表定义 单链表结点中只有一个指向其后继的指针&#xff0c;这使得单链表只能从头结点依次顺序地向后遍历。若要访问某个结点的前驱结点&#xff08;插入、删除操作时&#xff09;&#xff0c;只能从头开始遍历&#xff0c;访问后继结点的时间复杂度为 O(1) &#xff0c; …

Python采集二手车数据信息实现数据可视化展示

嗨喽~大家好呀&#xff0c;这里是魔王呐 ❤ ~! python更多源码/资料/解答/教程等 点击此处跳转文末名片免费获取 环境使用: Python 3.10 Pycharm 模块使用: requests >>> pip install requests csv 数据可视化: pandas >>> pip install pandas pyech…

【前后端的那些事】文件上传组件封装

文章目录 效果前端代码后端代码组件封装 效果 前端代码 /views/file/file.vue <template><el-row><el-uploadv-model:file-list"fileList"class"upload-demo"multiple:auto-upload"false":on-preview"handlePreview"…

与Sora一样能生成视频、图像,还能一次解读100万数据!

大语言模型&#xff08;LLM&#xff09;在生成文本内容方面非常强&#xff0c;但在理解、生成视频、图像等方面略显不足。尤其是在Sora一夜爆红之后&#xff0c;让人们意识到未来主流模型一定是文本音频图像视频的多模态生成、理解功能。 因此&#xff0c;加州大学伯克利分校的…

linux下查看某个命令在哪里个安装包程序下,以ifconfig命令举例子

yum list | grep net-tools &#xff08;查看yum安装列表中有没有安装指定的软件工具&#xff09;

用 SIL 和 PIL 仿真测试生成的代码

目录 PIL 的目标连接配置 对顶层模型运行 SIL 或 PIL 仿真 对 Model 模块运行 SIL 或 PIL 仿真 SIL 或 PIL 模块仿真 硬件实现设置 使用软件在环 (SIL) 和处理器在环 (PIL) 仿真,测试模型组件与从组件生成的生产代码之间的数字等效性。 使用 SIL 仿真,在您的开发…

JAVA高并发——Future模式

文章目录 1、Future模式解析2、Future模式的主要参与者3、Future模式的简单实现4、JDK中的Future模式5、Guava对Future模式的支持 1、Future模式解析 Future模式是多线程开发中非常常见的一种设计模式&#xff0c;它的核心思想是异步调用。当我们需要调用一个函数时&#xff0…

GaussDB SQL调优:选择合适的分布列

一、背景 GaussDB是华为公司倾力打造的自研企业级分布式关系型数据库&#xff0c;该产品具备企业级复杂事务混合负载能力&#xff0c;同时支持优异的分布式事务&#xff0c;同城跨AZ部署&#xff0c;数据0丢失&#xff0c;支持1000扩展能力&#xff0c;PB级海量存储等企业级数…

王栎鑫前妻晒情侣装,疑与糊糊复合?网友:真的假的

♥ 为方便您进行讨论和分享&#xff0c;同时也为能带给您不一样的参与感。请您在阅读本文之前&#xff0c;点击一下“关注”&#xff0c;非常感谢您的支持&#xff01; 文 |猴哥聊娱乐 编 辑|徐 婷 校 对|侯欢庭 吴雅婷元宵晒情侣装&#xff0c;网友热议是否与王栎鑫复合&am…

春秋招笔试题库整理与购买-值得投资的资源

作为一位资深的IT工程师&#xff0c;我深知求职过程中的不易&#xff0c;尤其是在春秋招季节&#xff0c;竞争激烈&#xff0c;每一个环节都可能成为决定成败的关键。因此&#xff0c;我特别了一份覆盖多家知名企业的秋招笔试题库&#xff0c;希望能帮助到正在备战的朋友们。 这…

leetcode移动零

leetcode移动零 Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of the array. Example 1: Input: nums [0,1,0,3,12] Output…

linux下gcc编译时默认是32位还是64位,怎么指定为32or64?

本来是想研究一下long的字节大小sizeof(long)&#xff0c;于是写了代码&#xff1a; #include <stdio.h> int main() {long a 10;printf("%d\n", sizeof(a));return 0; } 我当时使用的是win10系统&#xff0c;使用的是vs 2022&#xff0c;然后对以上代码进行…

@SpringBootApplication

目录 1. SpringBootApplication注解简介 2. 使用SpringBootApplication注解 3. 自定义SpringBootApplication注解 在Spring Boot中&#xff0c;SpringBootApplication是一个非常重要的注解&#xff0c;它用于开启自动配置&#xff0c;简化了我们的开发工作。本文将详细介绍这…

lv21 QT 常用控件 2

1 QT GUI 类继承简介 布局管理器 输出控件 输入控件 按钮 容器 2 按钮示例 #ifndef WIDGET_H #define WIDGET_H#include <QWidget> #include <QCheckBox> #include <QLineEdit> #include <QPushButton>class Widget : public QWidget {Q_OBJECTpublic…

【计算机网络】DNS/ICMP协议/NAT技术

文章目录 一、DNS(Domain Name System)1.DNS背景2.域名3.浏览器中输入url后,发生的事情 二、ICMP协议1.什么是ICMP协议2.ICM功能3.ICMP的报文格式4.ping命令5.traceroute命令 三、NAT技术1.NAT技术背景2.NAT IP转换过程3.NAPT4.NAT技术的缺陷5.NAT和代理服务器 四、TCP/IP五层模…