What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.
Overview
APIs with the admin prefix require the host (.host) or co-host (.coHost) role; regular members who call them get a permission error from the server. Check before calling:
let me = try? meeting.getUserInfo(meeting.currentUserId ?? "")let isAdmin = me?.role == .host || me?.role == .coHost
Once a control action takes effect, all members receive the corresponding room / member state event. You don’t need to change state manually on the initiating side; just refresh in the event handlers.
micDisabled and selfUnmuteMicDisabled mean different things, and together they determine the members’ experience:
// Mute all, and don't allow members to unmute themselvestry await meeting.adminUpdateRoomMicState(selfUnmuteMicDisabled: true, micDisabled: true)// Mute all, but allow members to unmute themselvestry await meeting.adminUpdateRoomMicState(selfUnmuteMicDisabled: false, micDisabled: true)// Turn off mute alltry await meeting.adminUpdateRoomMicState(selfUnmuteMicDisabled: false, micDisabled: false)
When “mute all” is turned on, the microphones of non-host members are turned off automatically. Whether members can then turn their microphones back on themselves depends on selfUnmuteMicDisabled. The camera follows the same rules.
End the meeting
try await meeting.adminDestroyRoom()
All members are disconnected, and the member side learns about it through meeting(_:didDisconnect:). The initiator also needs to take its own UI back out of the meeting.
Member management
// Change a member's in-meeting display nametry await meeting.adminUpdateUserName(targetId: uid, nickname: "Alice")// Make a co-host / revoketry await meeting.adminUpdateUserRole(targetId: uid, role: .coHost)try await meeting.adminUpdateUserRole(targetId: uid, role: .member)// Transfer host (after the transfer, you become a regular member)try await meeting.adminMoveHost(targetId: uid)// Disable chat for an individual membertry await meeting.adminUpdateUserChatDisabled(targetId: uid, chatDisabled: true)// Prevent drawingtry await meeting.adminUpdateUserDrawDisabled(targetId: uid, drawDisable: true)// Remove from the meeting; joinDisabled set to true also prevents entering againtry await meeting.adminKickUserOut(targetId: uid, joinDisabled: true)
The corresponding member state events: userNameDidChange, userRoleDidChange, userChatDisabledDidChange, userDrawDisabledDidChange (since 1.3.6). A removed member learns about it through didDisconnect.On a host transfer, all members first receive two userRoleDidChange events (new host .host, former host .member) and then roomHostDidMove (since 1.5.0). The SDK demotes the former host locally, so getUsersInfoList() already reflects the new roles when the events fire:
func meeting(_ meeting: SMeetingEngine, roomHostDidMove data: RoomHostMoveEventData) { // data.uid new host // data.sourceUid former host // data.opUid operator}
If you only need to refresh the role display, handling userRoleDidChange is enough.Read the current drawing permission from MeetingUserInfo.drawDisabled; when it changes, you receive:
If the called users have enabled out-of-meeting messages, they receive the imCallCalling event; see Out-of-meeting messages.
Online member list
// The meeting you're currently inlet page = try await meeting.adminListOnlineMember(page: 1, perPage: 20)// A specific meeting (since 1.5.0)let mainPage = try await meeting.adminListOnlineMember(meetingId: mainMeetingId, page: 1, perPage: 20)
When the host is inside a sub-meeting, editing sub-meeting members needs the online members of the main meeting: use the overload with meetingId and pass RoomInfo.parent. See Sub-meetings.
Invite devices into the meeting
Meetings support bringing external devices into the meeting, such as SIP, H.323, GB28181, RTSP / RTMP pull streams, and file playback.First, query the available devices:
For AgentType values, see Types. Read a device’s current online status from AgentInfo.status (.unknown / .online / .offline; see AgentStatus).
Since 1.5.0, AgentStatus values match the server: 0 unknown, 1 online, 2 offline (previously 1 idle, 2 busy, 3 offline). idle / busy still compile but are deprecated, equal to .online / .offline respectively. Check any code that compares rawValue numerically.
Invite GB28181 devices
GB28181 devices must be invited per GB28181 channel as “device number:channel number”; passing contact directly is rejected by the server. The channel table is in AgentInfo.connSubjects ({channel number: channel name}, since 1.5.0):
let agents = agent.connSubjects.keys.map { channelNo in (type: AgentType.gb28181, contact: "\(agent.contact):\(channelNo)")}try await meeting.adminInviteAgent(agents: agents, no: roomNo)
The full connection parameters from the backend are in AgentInfo.connParams ([String: AnyCodable]?), passed through as is by the SDK.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"STMLink Docs","description":"STMLink 开发者文档:SRTC 音视频 SDK(频道通信、云录制与直播、语音录制、语音识别)与 SMeeting 会议 SDK(房间、会议管理),覆盖 iOS / Android / Windows / Web / 微信小程序 / C(服务端·嵌入式)多端接入与服务端 API。 STMLink developer docs: the SRTC audio/video SDK (channels, cloud recording and live streaming, voice recording, speech recognition) and the SMeeting conferencing SDK (rooms and meetings), covering client integration on iOS, Android, Windows, Web, WeChat Mini Programs and C (server/embedded), plus the Server API.","colors":{"primary":"#0066FF","light":"#3385FF","dark":"#0052CC"},"logo":{"light":"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/logo/light.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=c87be878176892b493466cf0647c68cc","dark":"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/logo/dark.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=d6697b8422020261e5703917bcf26a6b"},"favicon":"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/favicon.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=dcf59f85b4c1c24462b5f99c37ff73d4","footer":{"socials":{"website":"https://www.stmlink.com"},"links":[{"header":"产品","items":[{"label":"官网","href":"https://www.stmlink.com"},{"label":"SRTC 音视频 SDK","href":"https://docs.stmlink.com/zh/rtc/overview"},{"label":"SMeeting 会议 SDK","href":"https://docs.stmlink.com/zh/meeting/overview"}]},{"header":"支持","items":[{"label":"联系我们","href":"https://www.stmlink.com"}]}]},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"markdown":{"instructions":["对外开放的服务端接口有两组前缀,都用同一套鉴权:`/server/v1/...`(SRTC 与 SMeeting 的主接口)和 `/stm/srvapi/v1/...`(SMeeting 的用户体系,服务端极简对接会用到)。鉴权是 app_id + nonce + timestamp + signature 四个请求头,用 app_key 做 HMAC-SHA256 签名,只能从业务方自己的后端调用。除这两组前缀外的接口均为内部接口,不要建议客户调用。 Public server APIs use two path prefixes with the same authentication: `/server/v1/...` (the main APIs of both SRTC and SMeeting) and `/stm/srvapi/v1/...` (the SMeeting user system, used by server-side low-code integration). Authenticate with four request headers, app_id + nonce + timestamp + signature, where signature is HMAC-SHA256 keyed with app_key; call these APIs only from the customer's own backend. Any other path is internal: never suggest calling it.","app_key 是服务端密钥,绝不能出现在客户端代码、前端配置或移动 App 里。客户端加入频道用的 token 必须由业务方后端签发后下发(SRTC 走 `/server/v1/channel/grant`,SMeeting 走 `/stm/srvapi/v1/member/grant`)。 app_key is a server-side secret and must never appear in client code, frontend config, or a mobile app. The token a client uses to join must be issued by the customer's backend and passed down to the client (SRTC: `/server/v1/channel/grant`; SMeeting: `/stm/srvapi/v1/member/grant`).","SRTC 与 SMeeting 是上下两层不同的产品,术语不通用:SRTC 是音视频底座,说「频道 channel」「加入 / 退出」;SMeeting 建在 SRTC 之上,说「房间 room」「会议 meeting」「进入 / 退出」。回答时按用户所在的层用对应术语,不要把「房间」「会议」安到 SRTC 的接口上,也不要用「频道」「加入 / 离开」描述 SMeeting 的概念(接口标识符原样保留)。 SRTC and SMeeting are two separate layers with different terminology. SRTC is the audio/video foundation: it has channels, and users join and leave a channel. SMeeting is built on top of SRTC: it has rooms and meetings, and members enter and exit a meeting. Answer in the terms of the layer the user is working with: never apply \"room\" or \"meeting\" to SRTC APIs, and never describe SMeeting concepts in prose with \"channel\", \"join\", or \"leave\" (API identifiers such as `force_join` keep their literal names).","同一能力在各端 SDK 里的包名、类名、方法名并不相同。写示例代码时请使用文档中该端自己的 API,不要把一个端的写法套到另一个端上。苹果平台每个产品都有两套 SDK(Swift 原生与 Objective-C),两套 API 不能混用。 Package, class, and method names differ between platform SDKs for the same capability. In sample code, use the API documented for that platform; never carry one platform's code over to another. On Apple platforms each product ships two SDKs (native Swift and Objective-C) whose APIs must not be mixed."]},"styling":{"latex":false},"navigation":{"languages":[{"language":"zh","href":"zh/rtc/overview"},{"language":"en","footer":{"socials":{"website":"https://www.stmlink.com/en"},"links":[{"header":"Products","items":[{"label":"Website","href":"https://www.stmlink.com/en"},{"label":"SRTC Audio \u0026 Video SDK","href":"https://docs.stmlink.com/en/rtc/overview"},{"label":"SMeeting Conferencing SDK","href":"https://docs.stmlink.com/en/meeting/overview"}]},{"header":"Support","items":[{"label":"Contact us","href":"https://www.stmlink.com/en"}]}]},"href":"en/rtc/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"freewind","hasAudioNarration":false,"actualSubdomain":"freewind","customDomains":["docs.stmlink.com"],"gitSource":{"type":"github","owner":"seastart","repo":"stmlink-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10d74a9ffae5051c40d9df"},"entitlements":{},"buildId":"6b1126a7c2332a331c7a888e","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"zh","tag":"SRTC 音视频 SDK","count":175},{"language":"en","tag":"SRTC Audio \u0026 Video SDK","count":160},{"language":"zh","tag":"SMeeting 会议 SDK","count":154},{"language":"en","tag":"SMeeting Conferencing SDK","count":127},{"language":"zh","tag":"接口文档","count":110},{"language":"en","tag":"API reference","count":108},{"language":"zh","tag":"进阶实践","count":78},{"language":"en","tag":"Android SDK","count":66},{"language":"zh","tag":"Android SDK","count":66},{"language":"en","tag":"Advanced","count":57},{"language":"en","tag":"Swift SDK (iOS/macOS)","count":47},{"language":"zh","tag":"Swift SDK(iOS/macOS)","count":47},{"language":"zh","tag":"HarmonyOS SDK","count":42},{"language":"en","tag":"Windows SDK","count":41},{"language":"zh","tag":"Windows SDK","count":41},{"language":"en","tag":"Web SDK","count":33},{"language":"zh","tag":"Web SDK","count":33},{"language":"en","tag":"Server API","count":32},{"language":"zh","tag":"服务端 API","count":32},{"language":"en","tag":"iOS SDK (Objective-C)","count":27}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/meeting/swift/advanced/host-controls","slug":"/en/meeting/swift/advanced/host-controls","pageMetadata":{"title":"Host controls","description":"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.","href":"/en/meeting/swift/advanced/host-controls"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`APIs with the `,_jsx(_components.code,{children:`admin`}),` prefix require the host (`,_jsx(_components.code,{children:`.host`}),`) or co-host (`,_jsx(_components.code,{children:`.coHost`}),`) role; regular members who call them get a permission error from the server. Check before calling:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` me `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`getUserInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(meeting.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currentUserId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` isAdmin `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` me`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` me`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`coHost`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Once a control action takes effect, `,_jsx(_components.strong,{children:`all members`}),` receive the corresponding room / member state event. You don’t need to change state manually on the initiating side; just refresh in the event handlers.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`room-level-controls`,children:`Room-level controls`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`API`}),_jsx(_components.th,{children:`Purpose`}),_jsx(_components.th,{children:`Room field`}),_jsx(_components.th,{children:`Change event`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomMicState(selfUnmuteMicDisabled:micDisabled:)`})}),_jsx(_components.td,{children:`Mute all`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`micDisabled`}),` / `,_jsx(_components.code,{children:`selfUnmuteMicDisabled`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomMicStateDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomCameraState(selfUnmuteCameraDisabled:cameraDisabled:)`})}),_jsx(_components.td,{children:`Camera off for everyone`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`cameraDisabled`}),` / `,_jsx(_components.code,{children:`selfUnmuteCameraDisabled`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomCameraStateDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomShareState(shareDisabled:)`})}),_jsx(_components.td,{children:`Disable sharing`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`shareDisabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomShareStateDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomChatDisabled(_:)`})}),_jsx(_components.td,{children:`Disable chat for everyone`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`chatDisabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomChatDisabledDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomScreenshotDisabled(_:)`})}),_jsx(_components.td,{children:`Disable screenshots`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`screenshotDisabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomScreenshotDisabledDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomWatermarkDisabled(_:)`})}),_jsx(_components.td,{children:`Turn off the watermark`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`watermarkDisabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomWatermarkDisabledDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateRoomLocked(_:)`})}),_jsx(_components.td,{children:`Lock the meeting`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`locked`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomLockedDidChange`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminUpdateEnterBeforeHostDisabled(_:)`})}),_jsx(_components.td,{children:`Disallow entering before the host`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`enterBeforeHostDisabled`})}),_jsx(_components.td,{children:`No separate event`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminStopRoomShare()`})}),_jsx(_components.td,{children:`Force the current sharing to end`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`shareState`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`roomShareDidStop`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adminDestroyRoom()`})}),_jsx(_components.td,{children:`End the whole meeting`}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[`Members receive `,_jsx(_components.code,{children:`didDisconnect`})]})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`the-two-switches-of-mute-all`,children:`The two switches of mute all`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`micDisabled`}),` and `,_jsx(_components.code,{children:`selfUnmuteMicDisabled`}),` mean different things, and together they determine the members’ experience:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Mute all, and don't allow members to unmute themselves`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateRoomMicState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`selfUnmuteMicDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`micDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Mute all, but allow members to unmute themselves`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateRoomMicState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`selfUnmuteMicDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`micDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Turn off mute all`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateRoomMicState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`selfUnmuteMicDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`micDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When “mute all” is turned on, the microphones of non-host members are turned off automatically. Whether members can then turn their microphones back on themselves depends on `,_jsx(_components.code,{children:`selfUnmuteMicDisabled`}),`. The camera follows the same rules.`]}),`\n`,_jsx(Heading,{level:`4`,id:`end-the-meeting`,children:`End the meeting`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminDestroyRoom`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`All members are disconnected, and the member side learns about it through `,_jsx(_components.code,{children:`meeting(_:didDisconnect:)`}),`. The initiator also needs to take its own UI back out of the meeting.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`member-management`,children:`Member management`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Change a member's in-meeting display name`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateUserName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`nickname`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Alice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Make a co-host / revoke`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateUserRole`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`coHost`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateUserRole`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`member`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Transfer host (after the transfer, you become a regular member)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminMoveHost`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Disable chat for an individual member`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateUserChatDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`chatDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Prevent drawing`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateUserDrawDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`drawDisable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Remove from the meeting; joinDisabled set to true also prevents entering again`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminKickUserOut`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`targetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: uid, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`joinDisabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The corresponding member state events: `,_jsx(_components.code,{children:`userNameDidChange`}),`, `,_jsx(_components.code,{children:`userRoleDidChange`}),`, `,_jsx(_components.code,{children:`userChatDisabledDidChange`}),`, `,_jsx(_components.code,{children:`userDrawDisabledDidChange`}),` (since 1.3.6). A removed member learns about it through `,_jsx(_components.code,{children:`didDisconnect`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`On a host transfer, all members first receive two `,_jsx(_components.code,{children:`userRoleDidChange`}),` events (new host `,_jsx(_components.code,{children:`.host`}),`, former host `,_jsx(_components.code,{children:`.member`}),`) and then `,_jsx(_components.code,{children:`roomHostDidMove`}),` (since 1.5.0). The SDK demotes the former host locally, so `,_jsx(_components.code,{children:`getUsersInfoList()`}),` already reflects the new roles when the events fire:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` meeting`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`_`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` meeting`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: SMeetingEngine, `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`roomHostDidMove`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: RoomHostMoveEventData) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // data.uid new host`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // data.sourceUid former host`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // data.opUid operator`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you only need to refresh the role display, handling `,_jsx(_components.code,{children:`userRoleDidChange`}),` is enough.`]}),`\n`,_jsxs(_components.p,{children:[`Read the current drawing permission from `,_jsx(_components.code,{children:`MeetingUserInfo.drawDisabled`}),`; when it changes, you receive:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` meeting`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`_`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` meeting`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: SMeetingEngine, `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`userDrawDisabledDidChange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: UserDrawDisabledChangeEventData) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // data.uid, data.drawDisabled, data.opUid`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For turning off a member’s microphone / camera and asking members to turn them on, see `,_jsx(_components.a,{href:`/en/meeting/swift/advanced/handup`,children:`Raise hand and turn-on requests`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`change-your-own-in-meeting-display-name`,children:`Change your own in-meeting display name`}),`\n`,_jsx(_components.p,{children:`This action doesn’t require the host role:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"New nickname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`invitee-management`,children:`Invitee management`}),`\n`,_jsx(Heading,{level:`4`,id:`update-the-invitee-list`,children:`Update the invitee list`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminUpdateConferee`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`meetingId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: meetingId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`conferee`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [uid1, uid2])`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`find-out-who-hasn’t-entered-yet`,children:`Find out who hasn’t entered yet`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` notEntered `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`meetNotEnter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`[NoEnterUserInfo]`}),`, including nickname, phone number, avatar, role, and more.`]}),`\n`,_jsx(Heading,{level:`4`,id:`remind-invitees-to-enter`,children:`Remind invitees to enter`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminMeetRemind`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`uids`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [uid1, uid2], `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`useSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`useSms`}),` is `,_jsx(_components.code,{children:`true`}),`, an SMS reminder is sent as well.`]}),`\n`,_jsx(Heading,{level:`4`,id:`in-meeting-calls`,children:`In-meeting calls`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminCallUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`conferee`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [uid1, uid2])`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If the called users have enabled out-of-meeting messages, they receive the `,_jsx(_components.code,{children:`imCallCalling`}),` event; see `,_jsx(_components.a,{href:`/en/meeting/swift/advanced/im`,children:`Out-of-meeting messages`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`online-member-list`,children:`Online member list`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// The meeting you're currently in`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminListOnlineMember`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`perPage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// A specific meeting (since 1.5.0)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mainPage `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminListOnlineMember`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`meetingId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: mainMeetingId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`perPage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When the host is inside a sub-meeting, editing sub-meeting members needs the online members of the `,_jsx(_components.strong,{children:`main meeting`}),`: use the overload with `,_jsx(_components.code,{children:`meetingId`}),` and pass `,_jsx(_components.code,{children:`RoomInfo.parent`}),`. See `,_jsx(_components.a,{href:`/en/meeting/swift/advanced/sub-meetings`,children:`Sub-meetings`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`invite-devices-into-the-meeting`,children:`Invite devices into the meeting`}),`\n`,_jsx(_components.p,{children:`Meetings support bringing external devices into the meeting, such as SIP, H.323, GB28181, RTSP / RTMP pull streams, and file playback.`}),`\n`,_jsx(_components.p,{children:`First, query the available devices:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` devices `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`agentList`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`h323`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Meeting room\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then send the invitation:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminInviteAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` agents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`contact`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip:1001@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` no`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: roomNo`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`AgentType`}),` values, see `,_jsx(_components.a,{href:`/en/meeting/swift/types#agenttype`,children:`Types`}),`. Read a device’s current online status from `,_jsx(_components.code,{children:`AgentInfo.status`}),` (`,_jsx(_components.code,{children:`.unknown`}),` / `,_jsx(_components.code,{children:`.online`}),` / `,_jsx(_components.code,{children:`.offline`}),`; see `,_jsx(_components.a,{href:`/en/meeting/swift/types#agentstatus`,children:`AgentStatus`}),`).`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Since 1.5.0, `,_jsx(_components.code,{children:`AgentStatus`}),` values match the server: `,_jsx(_components.code,{children:`0`}),` unknown, `,_jsx(_components.code,{children:`1`}),` online, `,_jsx(_components.code,{children:`2`}),` offline (previously `,_jsx(_components.code,{children:`1`}),` idle, `,_jsx(_components.code,{children:`2`}),` busy, `,_jsx(_components.code,{children:`3`}),` offline). `,_jsx(_components.code,{children:`idle`}),` / `,_jsx(_components.code,{children:`busy`}),` still compile but are deprecated, equal to `,_jsx(_components.code,{children:`.online`}),` / `,_jsx(_components.code,{children:`.offline`}),` respectively. Check any code that compares `,_jsx(_components.code,{children:`rawValue`}),` numerically.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`invite-gb28181-devices`,children:`Invite GB28181 devices`}),`\n`,_jsxs(_components.p,{children:[`GB28181 devices must be invited per GB28181 channel as “device number:channel number”; passing `,_jsx(_components.code,{children:`contact`}),` directly is rejected by the server. The channel table is in `,_jsx(_components.code,{children:`AgentInfo.connSubjects`}),` (`,_jsx(_components.code,{children:`{channel number: channel name}`}),`, since 1.5.0):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agents `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agent.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connSubjects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`keys`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { channelNo `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: AgentType.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gb28181`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`contact`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`agent.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`contact`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`channelNo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` meeting.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`adminInviteAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`agents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: agents, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`no`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: roomNo)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The full connection parameters from the backend are in `,_jsx(_components.code,{children:`AgentInfo.connParams`}),` (`,_jsx(_components.code,{children:`[String: AnyCodable]?`}),`), passed through as is by the SDK.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`related-pages`,children:`Related pages`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/en/meeting/swift/advanced/handup`,children:`Raise hand and turn-on requests`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/en/meeting/swift/advanced/waiting-room`,children:`Waiting room`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/en/meeting/swift/advanced/sub-meetings`,children:`Sub-meetings`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/en/meeting/swift/api-reference/admin-actions`,children:`API reference - Meeting management`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Host controls","description":"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.","href":"/en/meeting/swift/advanced/host-controls"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":3,"children":[]},{"title":"Room-level controls","slug":"room-level-controls","depth":3,"children":[]},{"title":"The two switches of mute all","slug":"the-two-switches-of-mute-all","depth":4,"children":[]},{"title":"End the meeting","slug":"end-the-meeting","depth":4,"children":[]},{"title":"Member management","slug":"member-management","depth":3,"children":[]},{"title":"Change your own in-meeting display name","slug":"change-your-own-in-meeting-display-name","depth":3,"children":[]},{"title":"Invitee management","slug":"invitee-management","depth":3,"children":[]},{"title":"Update the invitee list","slug":"update-the-invitee-list","depth":4,"children":[]},{"title":"Find out who hasn’t entered yet","slug":"find-out-who-hasn’t-entered-yet","depth":4,"children":[]},{"title":"Remind invitees to enter","slug":"remind-invitees-to-enter","depth":4,"children":[]},{"title":"In-meeting calls","slug":"in-meeting-calls","depth":4,"children":[]},{"title":"Online member list","slug":"online-member-list","depth":4,"children":[]},{"title":"Invite devices into the meeting","slug":"invite-devices-into-the-meeting","depth":3,"children":[]},{"title":"Invite GB28181 devices","slug":"invite-gb28181-devices","depth":4,"children":[]},{"title":"Related pages","slug":"related-pages","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"freewind","siteName":"STMLink Docs","title":"Host controls - STMLink Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/zh/meeting/swift/advanced/host-controls","matchLevel":1},"en":{"href":"/en/meeting/swift/advanced/host-controls","matchLevel":0}}},"lastModified":"2026-10-10T04:27:34.252Z","originalFileLocation":"en/meeting/swift/advanced/host-controls.md","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.\">\u003cmeta data-mint-head name=\"application-name\" content=\"STMLink Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Host controls - STMLink Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"STMLink Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://freewind.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Host+controls\u0026amp;description=What+the+host+and+co-hosts+can+do+with+the+SMeeting+Swift+SDK%3A+room-level+controls+such+as+mute+all%2C+camera+off+for+everyone%2C+and+locking+the+meeting%2C+member+ma\u0026amp;theme=3db2af3ca713d1d9c29377dc\u0026amp;signature=5d6038cb156bd8ac315c502630aaff0f9f8712aaf04da3f0b6d45dee2cd61db9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Host controls - STMLink Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://freewind.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Host+controls\u0026amp;description=What+the+host+and+co-hosts+can+do+with+the+SMeeting+Swift+SDK%3A+room-level+controls+such+as+mute+all%2C+camera+off+for+everyone%2C+and+locking+the+meeting%2C+member+ma\u0026amp;theme=3db2af3ca713d1d9c29377dc\u0026amp;signature=5d6038cb156bd8ac315c502630aaff0f9f8712aaf04da3f0b6d45dee2cd61db9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"STMLink Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0066FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/meeting/swift/advanced/host-controls.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.stmlink.com/zh/meeting/swift/advanced/host-controls\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.stmlink.com/zh/meeting/swift/advanced/host-controls\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.stmlink.com/#organization\",\"name\":\"STMLink Docs\",\"url\":\"https://docs.stmlink.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/logo/light.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=c87be878176892b493466cf0647c68cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.stmlink.com#website\",\"name\":\"STMLink Docs\",\"url\":\"https://docs.stmlink.com\",\"publisher\":{\"@id\":\"https://docs.stmlink.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls#webpage\",\"url\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls\",\"name\":\"Host controls\",\"description\":\"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.\",\"dateModified\":\"2026-10-10T04:27:34.252Z\",\"isPartOf\":{\"@id\":\"https://docs.stmlink.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swift SDK (iOS/macOS)\",\"item\":\"https://docs.stmlink.com/en/meeting/swift/integration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advanced\",\"item\":\"https://docs.stmlink.com/en/meeting/swift/advanced/media-control\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Host controls\",\"item\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls#article\",\"headline\":\"Host controls\",\"name\":\"Host controls\",\"description\":\"What the host and co-hosts can do with the SMeeting Swift SDK: room-level controls such as mute all, camera off for everyone, and locking the meeting, member management, invitee reminders and calls, and inviting SIP / H.323 / GB28181 devices into the meeting. Read when building a host panel.\",\"url\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls\",\"mainEntityOfPage\":{\"@id\":\"https://docs.stmlink.com/en/meeting/swift/advanced/host-controls#webpage\"},\"dateModified\":\"2026-10-10T04:27:34.252Z\",\"publisher\":{\"@id\":\"https://docs.stmlink.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.stmlink.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"STMLink Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"STMLink Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/meeting/swift/advanced/host-controls.md","siteName":"STMLink Docs","nav":{"global":null,"languages":[{"language":"zh","pages":[{"title":"zh","href":"/zh/meeting/swift/advanced/host-controls"}]},{"language":"en","footer":{"socials":{"website":"https://www.stmlink.com/en"},"links":[{"header":"Products","items":[{"label":"Website","href":"https://www.stmlink.com/en"},{"label":"SRTC Audio \u0026 Video SDK","href":"https://docs.stmlink.com/en/rtc/overview"},{"label":"SMeeting Conferencing SDK","href":"https://docs.stmlink.com/en/meeting/overview"}]},{"header":"Support","items":[{"label":"Contact us","href":"https://www.stmlink.com/en"}]}]},"tabs":[{"tab":"SRTC Audio \u0026 Video SDK","pages":[{"title":"SRTC Audio \u0026 Video SDK","href":"/en/rtc/overview"}]},{"tab":"SMeeting Conferencing SDK","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/en/meeting/overview"},{"title":"Choosing SRTC or SMeeting","href":"/en/choose"},{"title":"Quickstart","href":"/en/meeting/quickstart"},{"title":"Key concepts","href":"/en/meeting/key-concepts"},{"title":"Token and authentication","href":"/en/meeting/token"},{"title":"Error code format and unified table","href":"/en/meeting/error-codes"},{"title":"Build with AI","href":"/en/ai"}]},{"group":"Low-code integration","pages":[{"title":"Server-side low-code integration","href":"/en/meeting/ui-sdk/server-integration"},{"group":"Low-code integration with UI","pages":[{"title":"Web UI SDK integration","href":"/en/meeting/ui-sdk/web"},{"title":"Android UI SDK integration","href":"/en/meeting/ui-sdk/android"},{"title":"Windows UI SDK integration","href":"/en/meeting/ui-sdk/windows"},{"title":"iOS UI SDK integration","href":"/en/meeting/ui-sdk/ios"}]}]},{"group":"Web SDK","pages":[{"title":"Integration","href":"/en/meeting/web/integration"},{"title":"Quickstart","href":"/en/meeting/web/quickstart"},{"title":"Whiteboard sharing","href":"/en/meeting/web/whiteboard"},{"group":"Advanced","pages":[{"title":"In-meeting chat and file messages","href":"/en/meeting/web/advanced/chat"},{"title":"AI noise suppression (DeepFilterNet)","href":"/en/meeting/web/advanced/deepfilternet"},{"title":"Device checks (pre-meeting / in-meeting preview)","href":"/en/meeting/web/advanced/device-check"}]},{"group":"API reference","pages":[{"title":"SMeeting","href":"/en/meeting/web/api-reference/SMeeting"}]},{"title":"Events","href":"/en/meeting/web/events"},{"title":"Types","href":"/en/meeting/web/types"},{"title":"Error codes","href":"/en/meeting/web/error-codes"},{"title":"Changelog","href":"/en/meeting/web/changelog"}]},{"group":"Android SDK","pages":[{"title":"Integration","href":"/en/meeting/android/integration"},{"title":"Quickstart","href":"/en/meeting/android/quickstart"},{"group":"Advanced","pages":[{"title":"Audio routing","href":"/en/meeting/android/advanced/audio-routing"},{"title":"Whiteboard sharing","href":"/en/meeting/android/advanced/whiteboard"},{"title":"AI noise suppression (DeepFilterNet)","href":"/en/meeting/android/advanced/deepfilternet"}]},{"group":"API reference","pages":[{"title":"MeetingEngine","href":"/en/meeting/android/api-reference/MeetingEngine"},{"title":"InfosManager","href":"/en/meeting/android/api-reference/InfosManager"},{"title":"RollCallManager","href":"/en/meeting/android/api-reference/RollCallManager"},{"title":"SignInManager","href":"/en/meeting/android/api-reference/SignInManager"},{"title":"Meeting result callbacks","href":"/en/meeting/android/api-reference/MeetingResultCallback"},{"title":"Meeting events overview","href":"/en/meeting/android/api-reference/meeting-events"},{"title":"MeetingEngineEvent","href":"/en/meeting/android/api-reference/MeetingEngineEvent"},{"title":"MeetingImEvent","href":"/en/meeting/android/api-reference/MeetingImEvent"},{"title":"MeetingCameraDeviceEvent","href":"/en/meeting/android/api-reference/MeetingCameraDeviceEvent"},{"title":"MeetingMicDeviceEvent","href":"/en/meeting/android/api-reference/MeetingMicDeviceEvent"},{"title":"MeetingScreenCaptureEvent","href":"/en/meeting/android/api-reference/MeetingScreenCaptureEvent"},{"title":"MeetingRoomEvent","href":"/en/meeting/android/api-reference/MeetingRoomEvent"},{"title":"MeetingUserEvent","href":"/en/meeting/android/api-reference/MeetingUserEvent"},{"title":"MeetingMessageEvent","href":"/en/meeting/android/api-reference/MeetingMessageEvent"},{"title":"MeetingMediaEvent","href":"/en/meeting/android/api-reference/MeetingMediaEvent"},{"title":"MeetingLocalVideoFrameEvent","href":"/en/meeting/android/api-reference/MeetingLocalVideoFrameEvent"},{"title":"MeetingLocalAudioFrameEvent","href":"/en/meeting/android/api-reference/MeetingLocalAudioFrameEvent"},{"title":"MeetingRemoteVideoEvent","href":"/en/meeting/android/api-reference/MeetingRemoteVideoEvent"}]},{"group":"Presets","pages":[{"title":"Camera presets","href":"/en/meeting/android/presets/camera"},{"title":"Mic presets","href":"/en/meeting/android/presets/microphone"},{"title":"Screen sharing presets","href":"/en/meeting/android/presets/screen-sharing"},{"title":"Custom video presets","href":"/en/meeting/android/presets/custom-video"}]},{"title":"Model types","href":"/en/meeting/android/types"},{"title":"Enums","href":"/en/meeting/android/enums"},{"title":"Media quality","href":"/en/meeting/android/media-quality"},{"title":"Error codes","href":"/en/meeting/android/error-codes"},{"title":"Changelog","href":"/en/meeting/android/changelog"}]},{"group":"Windows SDK","pages":[{"title":"Integration","href":"/en/meeting/windows/integration"},{"group":"Quickstart","pages":[{"title":"C++ Quickstart","sidebarTitle":"C++","href":"/en/meeting/windows/quickstart"},{"title":"C# Quickstart","sidebarTitle":"C#","href":"/en/meeting/windows/quickstart-csharp"},{"title":"C Quickstart","sidebarTitle":"C","href":"/en/meeting/windows/quickstart-c"}]},{"group":"API reference","pages":[{"title":"C++ API reference","href":"/en/meeting/windows/api-reference/smeeting"},{"title":"ISMeetingEngine engine API","href":"/en/meeting/windows/api-reference/smeeting-engine"},{"title":"ISMeetingChannel meeting API","href":"/en/meeting/windows/api-reference/smeeting-channel"},{"title":"Host management APIs","href":"/en/meeting/windows/api-reference/smeeting-admin"},{"title":"Sub-meeting APIs","href":"/en/meeting/windows/api-reference/smeeting-submeeting"},{"title":"MCU APIs","href":"/en/meeting/windows/api-reference/smeeting-mcu"},{"title":"Sign-in APIs","href":"/en/meeting/windows/api-reference/smeeting-signin"},{"title":"Media track APIs","href":"/en/meeting/windows/api-reference/smeeting-media"},{"title":"Event callbacks","href":"/en/meeting/windows/api-reference/smeeting-events"},{"title":"Settings","href":"/en/meeting/windows/api-reference/smeeting-settings"},{"title":"Enums and data structures","href":"/en/meeting/windows/api-reference/smeeting-types"}]},{"title":"Error codes","href":"/en/meeting/windows/error-codes"},{"title":"Changelog","href":"/en/meeting/windows/changelog"}]},{"group":"Swift SDK (iOS/macOS)","pages":[{"title":"Integration","href":"/en/meeting/swift/integration"},{"title":"Quickstart","href":"/en/meeting/swift/quickstart"},{"title":"Key concepts","href":"/en/meeting/swift/key-concepts"},{"group":"Advanced","pages":[{"title":"Media control","href":"/en/meeting/swift/advanced/media-control"},{"title":"Video rendering","href":"/en/meeting/swift/advanced/video-rendering"},{"title":"Screen sharing","href":"/en/meeting/swift/advanced/screen-sharing"},{"title":"Virtual background","href":"/en/meeting/swift/advanced/virtual-background"},{"title":"AI noise suppression (DeepFilterNet)","href":"/en/meeting/swift/advanced/deepfilternet"},{"title":"Device management","href":"/en/meeting/swift/advanced/device-management"},{"title":"Device checks (pre-meeting / in-meeting preview)","href":"/en/meeting/swift/advanced/device-check"},{"title":"Audio routing (iOS)","href":"/en/meeting/swift/advanced/audio-routing"},{"title":"In-meeting messages","href":"/en/meeting/swift/advanced/messaging"},{"title":"Raise hand and turn-on requests","description":"The full request flows in the SMeeting Swift SDK: members raise a hand to ask for the microphone, camera, speaking, or sharing and the host approves; the host asks members to turn on their microphone or camera and members accept or decline. Read when building raise-hand or host invitation UI.","href":"/en/meeting/swift/advanced/handup"},{"title":"Host controls","href":"/en/meeting/swift/advanced/host-controls"},{"title":"Waiting room","description":"Turn the waiting room on or off with the SMeeting Swift SDK, list waiting members, admit them or move members back, let members exit the waiting room on their own, and handle the related events. Read when your meetings need the host to admit members one by one.","href":"/en/meeting/swift/advanced/waiting-room"},{"title":"Sub-meetings","href":"/en/meeting/swift/advanced/sub-meetings"},{"title":"Recording and composite layout","href":"/en/meeting/swift/advanced/recording"},{"title":"Meeting materials","href":"/en/meeting/swift/advanced/resources"},{"title":"Sign-in and roll call","href":"/en/meeting/swift/advanced/sign-in"},{"title":"Out-of-meeting messages","href":"/en/meeting/swift/advanced/im"}]},{"group":"API reference","pages":[{"title":"SMeetingEngine","href":"/en/meeting/swift/api-reference/SMeetingEngine"},{"title":"Media control","href":"/en/meeting/swift/api-reference/media-control"},{"title":"Devices","href":"/en/meeting/swift/api-reference/devices"},{"title":"Meeting management","href":"/en/meeting/swift/api-reference/admin-actions"},{"title":"SMeetingRemoteVideoView","href":"/en/meeting/swift/api-reference/SMeetingRemoteVideoView"}]},{"title":"Events","href":"/en/meeting/swift/events"},{"title":"Types","href":"/en/meeting/swift/types"},{"title":"Error handling","href":"/en/meeting/swift/error-codes"},{"title":"Changelog","href":"/en/meeting/swift/changelog"}]},{"group":"iOS SDK (Objective-C)","pages":[{"title":"Quickstart","href":"/en/meeting/ios/quickstart"},{"group":"Advanced","pages":[{"title":"Screen recording","href":"/en/meeting/ios/advanced/screen-recording"},{"title":"Virtual background","href":"/en/meeting/ios/advanced/virtual-background"}]},{"group":"API reference","pages":[{"title":"MeetingKit","href":"/en/meeting/ios/api-reference/MeetingKit"},{"title":"MeetingKitRoom","href":"/en/meeting/ios/api-reference/MeetingKitRoom"},{"title":"MeetingKitDelegate","href":"/en/meeting/ios/api-reference/MeetingKitDelegate"},{"title":"MeetingKitRoomDelegate","href":"/en/meeting/ios/api-reference/MeetingKitRoomDelegate"},{"title":"MeetingKitIMDelegate","href":"/en/meeting/ios/api-reference/MeetingKitIMDelegate"}]},{"title":"Types","href":"/en/meeting/ios/types"},{"title":"Error codes","href":"/en/meeting/ios/error-codes"},{"title":"Changelog","href":"/en/meeting/ios/changelog"},{"title":"FAQ","href":"/en/meeting/ios/faq"}]},{"group":"Server API","pages":[{"title":"Overview","href":"/en/meeting/server-api/overview"},{"group":"Guides","pages":[{"title":"Cloud recording and stream mixing guide","href":"/en/meeting/server-api/guides/recording"},{"title":"Media output guide","href":"/en/meeting/server-api/guides/media-output"},{"title":"Callback events guide","href":"/en/meeting/server-api/guides/callbacks"},{"title":"Device integration and IM","href":"/en/meeting/server-api/guides/agent-and-im"},{"title":"Invite and remove","href":"/en/meeting/server-api/guides/invite-and-kickout"}]},{"group":"API reference","pages":[{"title":"Meeting authorization","href":"/en/meeting/server-api/user-auth"},{"title":"Meeting management","href":"/en/meeting/server-api/meet"},{"title":"In-meeting controls","href":"/en/meeting/server-api/meet-admin"},{"title":"Meeting recording and live streaming","href":"/en/meeting/server-api/mcu"},{"title":"Media output","href":"/en/meeting/server-api/stream"},{"title":"Network ID","href":"/en/meeting/server-api/network"},{"title":"User sync","href":"/en/meeting/server-api/member"}]},{"title":"Error codes","href":"/en/meeting/server-api/error-codes"}]}]},{"tab":"Product \u0026 deployment","pages":[{"title":"Product \u0026 deployment","href":"/en/product/overview"}]}]}]},"basePath":"","title":"Host controls - STMLink Docs","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":[],"chunks":[]}