UNPKG

@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,

19 lines (18 loc) 682 B
import useRoomAudioAction from "./useRoomAudioAction.mjs"; import useRoomVideoAction from "./useRoomVideoAction.mjs"; import useRoomScreenAction from "./useRoomScreenAction.mjs"; import { RoomAction } from "../../../type/Room.mjs"; function useRoomActions(options) { const roomActionObj = { [RoomAction.AudioAction]: useRoomAudioAction(), [RoomAction.VideoAction]: useRoomVideoAction(), [RoomAction.ScreenAction]: useRoomScreenAction() }; if (options && options.actionList && options.actionList.length > 0) { return options.actionList.map((action) => roomActionObj[action]); } return Object.values(roomActionObj); } export { useRoomActions as default };