ido-video

A video component for Vue 3 base on ido-team
398
Install
npm install ido-video
Latest Version:1.0.8
Vue:3
License:MIT
Last Updated:Mar 26, 2024
Links: npm
Maintainer: wuliang0728

介绍

Ido Modal 弹 出 层 解 决 方 案

🔶 document »

安装

使用 npm 下载。

npm i ido-video

在 index.html 编写 ido-sdk 配置。

window.appHost = "http://221.12.100.58:29003"
window.tokenHost = "http://221.12.100.58:29003"
window.hashAuthHost = "/hash"
window.videoHost = "/gateway/map-server"

使用

展示视频页面。

<template>
  <button type="button" @click="createVideo">打开视频页</button>
</template>

<script setup>
import { ref } from "vue";
import { idoVideo} from "ido-video";
import 'ido-video/lib/index.css';

const createVideo = function () {
  videoId = idoVideo.createVID({
      id: "8888888888888888",
      teleport: document.getElementById("video-container"),
      prefix: '/cvApi', // 可不传,默认'/cvApi'
      videoList: [{
          videoId: '2d48af2d194b0d380749e0e9eef70483',
          videoName: '测试'
      }],
      token:"xxxxxx"
  })
};

const changeParam = function () {
  idoVideo.sendData(videoId, {videoList: [{
          videoId: 'f6b7be253323716119b2cbc3f7b4f9a9',
          videoName: '测试'
      }]})
};
</script>

Related Packages

@ido-team/ido-video

A video component for Vue 3 base on ido-team

777
@pureadmin/components

pureadmin components

4,706
@form-create/component-antdv-group

@form-create/ant-design-vue 内置组件

46,257 7,106
@form-create/component-antdv-frame

@form-create/ant-design-vue 内置组件

44,082 7,106

Version History

Version Released Vue License
1.0.8 ^3.2.31 MIT
1.0.7 ^3.2.31 MIT
1.0.6 ^3.2.31 MIT
1.0.5 ^3.2.31 MIT
1.0.4 ^3.2.31 MIT