@tencentcloud/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.61 kB
JavaScript
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const index$1 = require("../../../components/common/base/Select/index.js");
const index$2 = require("../../../components/common/base/Option/index.js");
const index = require("../../hooks/useVideoDeviceState/index.js");
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "VideoProfile",
setup(__props) {
const { localVideoQuality, videoQualityList, camera } = index.useVideoDeviceState();
Vue.watch(localVideoQuality, (val) => {
camera.updateVideoQuality({ quality: val });
});
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createBlock(Vue.unref(index$1.default), {
modelValue: Vue.unref(localVideoQuality),
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(localVideoQuality) ? localVideoQuality.value = $event : null),
placeholder: "placeholder",
class: "select",
teleported: false,
"popper-append-to-body": false
}, {
default: Vue.withCtx(() => [
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(videoQualityList), (item, index2) => {
return Vue.openBlock(), Vue.createBlock(Vue.unref(index$2.default), {
key: index2,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))
]),
_: 1
}, 8, ["modelValue"]);
};
}
});
exports.default = _sfc_main;
;