1.0.8 • Published 1 month ago

ido-video v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

介绍

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>
1.0.8

1 month ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.2

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago