[TOC]

Skip navigation links

cn.jiguang.jmrtc.api

Class JMRtcSession

  • java.lang.Object
    • cn.jiguang.jmrtc.api.JMRtcSession

public final class JMRtcSession
extends java.lang.Object

保存通话元信息的实体类. 通话结束后,需要调用

Nested Class Summary

Nested Classes Modifier and Type Class and Description static class JMRtcSession.SessionRole

Constructor Summary

Constructors Constructor and Description JMRtcSession(java.util.Set invitingUids, JMRtcListener listener)

Method Summary

All Methods Instance Methods;) Concrete Methods;) Modifier and Type Method and Description boolean addInvitingUid(java.lang.Long uid) void addJoinedMembers(java.util.Collection joinedMembersUids) long getChannelId() java.lang.String getChannelKey() java.lang.String getExtra() long getInviterUid() void getInviterUserInfo( callback) 获取邀请者用户信息 java.util.Set getInvitingUids() void getInvitingUserInfos( callback) 获取当前被邀请的用户的用户信息集合 void getJoiendMembers( callback) 获取当前已加入通信的用户的用户信息集合 java.util.Map getJoinedMembers() JMSignalingMessage.MediaType getMediaType() 获取通话类型 JMRtcSession.SessionRole getSessionRole() 获取用户在通信中的角色,JMRtcSession.SessionRole.inviter邀请发起者,或者JMRtcSession.SessionRole.invited被邀请者。 void quit() boolean removeInvitingUid(java.lang.Long uid) void setChannelId(long channelId) void setChannelKey(java.lang.String channelKey) void setExtra(java.lang.String extra) void setInviterUid(long inviterUid) void setInvitingUids(java.util.Set invitingUids) void setJoinedMembers(java.util.Collection joinedMembersUids) void setMediaType(JMSignalingMessage.MediaType mediaType) void setSessionRole(JMRtcSession.SessionRole sessionRole) java.lang.String toString()

-    

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

-  

JMRtcSession

public JMRtcSession(java.util.Set<java.lang.Long> invitingUids,
                    JMRtcListener listener)

Method Detail

-  

getChannelKey

public java.lang.String getChannelKey()
-  

setChannelKey

public void setChannelKey(java.lang.String channelKey)
-  

getChannelId

public long getChannelId()
-  

setChannelId

public void setChannelId(long channelId)
-  

getSessionRole

public JMRtcSession.SessionRole getSessionRole()

获取用户在通信中的角色,JMRtcSession.SessionRole.inviter邀请发起者,或者JMRtcSession.SessionRole.invited被邀请者。

  - Returns: 
  - 通信中的角色        
-  

setSessionRole

public void setSessionRole(JMRtcSession.SessionRole sessionRole)
-  

getInviterUserInfo

public void getInviterUserInfo(<any> callback)

获取邀请者用户信息

  - Parameters: 
  - <code>callback</code> - 结果回调        
-  

getInviterUid

public long getInviterUid()
-  

setInviterUid

public void setInviterUid(long inviterUid)
-  

getInvitingUserInfos

public void getInvitingUserInfos(<any> callback)

获取当前被邀请的用户的用户信息集合

  - Parameters: 
  - <code>callback</code> - 结果回调        
-  

getInvitingUids

public java.util.Set<java.lang.Long> getInvitingUids()
-  

setInvitingUids

public void setInvitingUids(java.util.Set<java.lang.Long> invitingUids)
-  

addInvitingUid

public boolean addInvitingUid(java.lang.Long uid)
-  

removeInvitingUid

public boolean removeInvitingUid(java.lang.Long uid)
-  

getJoiendMembers

public void getJoiendMembers(<any> callback)

获取当前已加入通信的用户的用户信息集合

  - Parameters: 
  - <code>callback</code> - 结果回调        
-  

getJoinedMembers

public java.util.Map<java.lang.Long,java.lang.Integer> getJoinedMembers()
-  

setJoinedMembers

public void setJoinedMembers(java.util.Collection<java.lang.Long> joinedMembersUids)
-  

addJoinedMembers

public void addJoinedMembers(java.util.Collection<java.lang.Long> joinedMembersUids)
-  

getMediaType

public JMSignalingMessage.MediaType getMediaType()

获取通话类型

  - Returns: 
  - 通话类型        
-  

setMediaType

public void setMediaType(JMSignalingMessage.MediaType mediaType)
-  

quit

public void quit()
-  

getExtra

public java.lang.String getExtra()
-  

setExtra

public void setExtra(java.lang.String extra)
-  

toString

public java.lang.String toString()
  - Overrides: 
  - <code>toString</code> in class <code>java.lang.Object</code>       

Skip navigation links