tencent cloud

Tencent Real-Time Communication

문서Tencent Real-Time Communication

TUILiveLayoutManager

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-07-17 18:04:00
AI 번역
Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveLayoutManager @ TUIKitEngine
Function: Live-Layout APIS, the functions on this webpage only support to TUIRoomTypeLive room type.

TUILiveLayoutManager

TUILiveLayoutObserver

FuncList
DESC
The layout of the live has changed.

TUILiveLayoutManager

FuncList
DESC
Add event callback
Remove event callback
Customize video stream layout

onLiveVideoLayoutChanged:layoutInfo:

onLiveVideoLayoutChanged:layoutInfo:
- (void)onLiveVideoLayoutChanged:
(NSString *)roomId
layoutInfo:
(NSString *)layoutInfo

The layout of the live has changed.

Param
DESC
layoutInfo
The latest screen layout message.
roomId
roomID

addObserver:

addObserver:
- (void)addObserver:
(id<TUILiveLayoutObserver>)observer

Add event callback

Param
DESC
observer
The instance being listened to.

removeObserver:

removeObserver:
- (void)removeObserver:
(id<TUILiveLayoutObserver>)observer

Remove event callback

Param
DESC
observer
The instance being listened to.

setLiveStreamLayoutInfo:layoutInfo:onSuccess:onError:

setLiveStreamLayoutInfo:layoutInfo:onSuccess:onError:
- (void)setLiveStreamLayoutInfo:
(NSString *)roomID
layoutInfo:
(NSString *)layoutInfo
onSuccess:
(TUISuccessBlock)onSuccess
onError:
(TUIErrorBlock)onError

Customize video stream layout

Param
DESC
layoutInfo
Layout Json information。
roomID
Room ID。

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백