400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

Overview of TKRoomDefines.h

    TKRoomDefines

    Defines the enums and instance object classes used in TKRoomSDK.

    pubMsg/deleteMsg

    • The key definitions for the values passed in the toID parameter when calling the pubMsg and delMsg interfaces to send custom signaling
    Field name Field description
    TKRoomPubMsgTellAll Everyone
    TKRoomPubMsgTellAllExceptSender Everyone except oneself
    TKRoomPubMsgTellAllExceptAuditor Everyone except the auditor
    TKRoomPubMsgTellNone Notify no one

    Initialize with init

    • Call initWithAppKey for initialization. The optional parameter is related to room settings. For details, refer to the definition of the TKRoomConfig object

    ENUM

    • The enumeration definitions used in the SDK
    Enumeration name Enumeration description
    TKRoomErrorCode Error code
    TKRoomWarningCode Warning
    TKMediaType Media type
    TKPublishState Publishing status
    TKMediaState Media stream publishing status
    TKVideoStreamType Video stream type
    TKVideoCodecType Video encoding format type
    TKRoomTypes Room type
    TKRenderMode Video rendering mode
    TKLogLevel Log level
    TKUserRoleType User role
    TKRecordType Recording file type
    TKRecordState Recording status
    TKNetQuality Network quality
    TKOperator Query
    TKSampleFormat Audio format

    INSTANCE OBJECT CLASS

    • The instance object classes used in the SDK
    Class name Class description
    TKVideoProfile Video attributes
    TKVideoCanvas Video rendering window
    TKAudioFrame Audio data
    TKVideoFrame Video data
    TKAudioStats Audio statistics
    TKVideoStats Video statistics
    TKRtcStats Link statistics