@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,
12 lines (11 loc) • 351 B
JavaScript
function useStreamContainer() {
const isSameStream = (stream1, stream2) => getStreamKey(stream1) === getStreamKey(stream2);
const getStreamKey = (stream) => `${stream == null ? void 0 : stream.userId}_${stream == null ? void 0 : stream.streamType}`;
return {
isSameStream,
getStreamKey
};
}
export {
useStreamContainer as default
};