当前位置: 首页 > ai >正文

VUE3使用jessibuca播放器

  • 参考

VUE3使用jessibuca播放器-CSDN博客文章浏览阅读223次。【代码】VUE3使用jessibuca播放器。_vue3使用jessibuca https://blog.csdn.net/quantum7/article/details/146020484

  • 播放代码
<template><j-modalvisiblewidth="900px"height="440px"@cancel="emits('update:visible', false)"@ok="emits('update:visible', false)":maskClosable="false" ><j-form><div class="root"><div class="column"><div class="container-shell" id="video-container" ref="video-container"></div></div></div></j-form></j-modal>
</template><script setup lang="ts">import { reactive } from "vue";const emits = defineEmits(['confirm', 'update:visible']);const props = defineProps<{data: {type: Object,},visible: boolean;
}>();onMounted(() => {var container = document.getElementById('video-container');const jessibuca = new window.Jessibuca(Object.assign({decoder: "/js/jessibuca/decoder.js",container: container,isResize: false,text: "",loadingText: "疯狂加载中...",// hasAudio:false,hotKey: true,// hasAudio:false,controlAutoHide: true,supportDblclickFullscreen: true,showBandwidth: true, // 显示网速forceNoOffscreen: true,isNotMute: true,timeout: 10,}));jessibuca.play(videoUrl);
});</script><style scoped>
.root {display: flex;place-content: center;margin-top: 3rem;
}.column {flex: 1; /* 让每个列平分空间 */margin: 5px; /* 可选:添加一些间距 */
}.container-shell {position: relative;backdrop-filter: blur(5px);background: #A0A0A0;padding: 30px 4px 10px 4px;/* border: 2px solid black; background: hsla(0, 0%, 50%, 0.5);width: auto; */width: 640px;height: 360px;position: relative;border-radius: 5px;box-shadow: 0 10px 20px;
}</style>

 

http://www.xdnf.cn/news/10854.html

相关文章:

  • LeetCode hot100-11
  • JS深拷贝与浅拷贝
  • 数据加密标准(DES)解析及代码实现(java)
  • 解决IDEA插件使用Lombok找不到符号问题
  • Transformer核心原理
  • C++实现图形化2048小游戏
  • torch.distributed.launch 、 torchrun 和 torch.distributed.run 无法与 nohup 兼容
  • 如何避免工具过多导致的效率下降
  • Java函数式编程(下)
  • 机器人开发前景洞察:现状、机遇、挑战与未来走向
  • 2024-2025-2-《移动机器人设计与实践》-复习资料-8……
  • 【基础】Unity中Camera组件知识点
  • SpringBoot 和 Spring 的区别是什么?
  • 动物超声波记录仪应用场景和厂家
  • Python训练打卡Day41
  • Spring Bean 为何“难产”?攻克构造器注入的依赖与歧义
  • AI+在线教育系统源码:开发智能化互动网校平台全流程详解
  • 【相机基础知识与物体检测】更新中
  • 【北邮 操作系统】第十三章 I/O系统
  • 高考数学易错考点01 | 临阵磨枪
  • Spine工具入门教程4之网格与权重
  • SpringAI系列 - MCP篇(三) - MCP Client Boot Starter
  • 【C++高级主题】多重继承下的类作用域
  • 面向对象系统中对象交互的架构设计哲学
  • 集成学习之Bagging,Boosting,随机森林
  • Vue3 + Vite:我的 Qiankun 微前端主子应用实践指南
  • 杭州白塔岭画室怎么样?和燕壹画室哪个好?
  • LEAP模型
  • MongoDB-6.0.24 主从复制搭建和扩容缩容详解
  • Java垃圾回收机制深度解析:从理论到实践的全方位指南