com.tencent.av.sdk
Class AVRoom.Info

java.lang.Object
  extended by com.tencent.av.sdk.AVRoom.Info
Enclosing class:
AVRoom

public static class AVRoom.Info
extends java.lang.Object

房间配置信息。
room_id和relation_id并不是等价的,room_id是在房间创建成功后由服务器动态生成。
您可以认为relation_id是一次多人会话的标识。
假设A先创建一个多人房间,不退出房间,B使用和A相同的relation_id的创建房间,最终会进入同一个房间。
换句话说,同一个多人房间的有效生命周期内,relation_id会对应同一个room_id。
当创建双人房间时,Info初始化示例如下:

        AVRoom.Info roomInfo = new AVRoom.Info(AVRoom.AV_ROOM_PAIR, 0, 0, AVRoom.AV_MODE_AUDIO, "E7A656A32067C4AAEDCE0E7C746492A7", null, 0);
 
当创建多人房间时,Info初始化示例如下:
        AVRoom.Info roomInfo = new AVRoom.Info(AVRoom.AV_ROOM_MULTI, 0, 123456, AVRoom.AV_MODE_AUDIO, "", null, 0);
 


Field Summary
 int audio_category
          音频场景策略
 long auth_bits
          权限位 多人房间专用。
 byte[] auth_buffer
          权限位加密串 多人房间专用。
 java.lang.String av_control_role
          云端流控配置角色 多人房间专用
 int mode
          房间会话模式,双人房间专用。
 java.lang.String peer_identifier
          对端ID,双人房间专用。
 int relation_id
          关系ID,多人房间专用。
 int relation_type
          关系类型,详情见RelationType的定义,多人房间专用。
 long room_id
          房间编号,JoinRoom的时候需要填写。
 int room_type
          房间类型 不管双人多人都要填写。
 
Constructor Summary
AVRoom.Info()
          构造函数。
AVRoom.Info(int _room_type, long _room_id, int _relation_id, int _mode, java.lang.String _peer_identifier, long _auth_bits, byte[] _auth_buffer, java.lang.String _av_control_role, int aaudioCategory)
          构造函数。
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

room_type

public int room_type
房间类型 不管双人多人都要填写。

See Also:
#AV_ROOM_PAIR #AV_ROOM_MULTI

room_id

public long room_id
房间编号,JoinRoom的时候需要填写。


relation_type

public int relation_type
关系类型,详情见RelationType的定义,多人房间专用。


relation_id

public int relation_id
关系ID,多人房间专用。


peer_identifier

public java.lang.String peer_identifier
对端ID,双人房间专用。


mode

public int mode
房间会话模式,双人房间专用。

See Also:
#AV_MODE_VIDEO

auth_bits

public long auth_bits
权限位 多人房间专用。


auth_buffer

public byte[] auth_buffer
权限位加密串 多人房间专用。


audio_category

public int audio_category
音频场景策略


av_control_role

public java.lang.String av_control_role
云端流控配置角色 多人房间专用

Constructor Detail

AVRoom.Info

public AVRoom.Info()
构造函数。


AVRoom.Info

public AVRoom.Info(int _room_type,
                   long _room_id,
                   int _relation_id,
                   int _mode,
                   java.lang.String _peer_identifier,
                   long _auth_bits,
                   byte[] _auth_buffer,
                   java.lang.String _av_control_role,
                   int aaudioCategory)
构造函数。

Parameters:
完整地按各自段意义填好对应值。 -