ido-video
v1.0.8
Published
A video component for Vue 3 base on ido-team
Downloads
22
Maintainers
Readme
介绍
Ido Modal 弹 出 层 解 决 方 案
安装
使用 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>