UNPKG

roomkit-web-vue3

Version:

<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,

38 lines (37 loc) 1.52 kB
import { defineComponent, watch, openBlock, createBlock, unref, isRef, withCtx, createElementBlock, Fragment, renderList } from "vue"; import Select from "../../../components/common/base/Select/index.mjs"; import OPtion from "../../../components/common/base/Option/index.mjs"; import { useVideoDeviceState } from "../../hooks/useVideoDeviceState/index.mjs"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "VideoProfile", setup(__props) { const { localVideoQuality, videoQualityList, camera } = useVideoDeviceState(); watch(localVideoQuality, (val) => { camera.updateVideoQuality({ quality: val }); }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(Select), { modelValue: unref(localVideoQuality), "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localVideoQuality) ? localVideoQuality.value = $event : null), placeholder: "placeholder", class: "select", teleported: false, "popper-append-to-body": false }, { default: withCtx(() => [ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(videoQualityList), (item, index) => { return openBlock(), createBlock(unref(OPtion), { key: index, label: item.label, value: item.value }, null, 8, ["label", "value"]); }), 128)) ]), _: 1 }, 8, ["modelValue"]); }; } }); export { _sfc_main as default };