@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,
21 lines (20 loc) • 650 B
JavaScript
import { TUIVideoStreamType } from "@tencentcloud/tuiroom-engine-js";
import "../../../utils/environment.mjs";
import { StreamPlayState } from "../../type/User.mjs";
function getNewStreamInfo(userId, streamType) {
const newStreamInfo = {
userId,
streamType: streamType || TUIVideoStreamType.kCameraStream,
streamId: `${userId}_${streamType || TUIVideoStreamType.kCameraStream}`,
hasAudioStream: false,
audioVolume: 0,
hasVideoStream: false,
streamPlayState: StreamPlayState.Stopped,
streamPlayDomMap: /* @__PURE__ */ new Map(),
timestamp: Date.now()
};
return newStreamInfo;
}
export {
getNewStreamInfo
};