Meeting Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. transcription. Meeting
- com.
Implements
public final class Meeting
implements java.lang.AutoCloseable
Performs meeting management including add and remove participants. Note: close() must be called in order to release underlying resources held by the object.
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | Meeting(long handleValue) |
Protected constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<Participant> |
addParticipantAsync(Participant participant)
Add a participant to a meeting using a participant object. |
java.util.concurrent.Future<User> |
addParticipantAsync(User user)
Add a participant to a meeting using a user object. |
java.util.concurrent.Future<Participant> |
addParticipantAsync(String userId)
Add a participant to a meeting using the user's id. |
void |
close()
Dispose of associated resources. |
static java.util.concurrent.Future<Meeting> |
createMeetingAsync(SpeechConfig speechConfig)
Initializes a new instance of Meeting. |
static java.util.concurrent.Future<Meeting> |
createMeetingAsync(SpeechConfig speechConfig, String meetingId)
Initializes a new instance of Meeting. |
java.util.concurrent.Future<java.lang.Void> |
deleteMeetingAsync()
Delete a meeting. |
protected void |
dispose(boolean disposing)
PROTECTED |
java.util.concurrent.Future<java.lang.Void> |
endMeetingAsync()
End a meeting. |
java.lang.String |
getAuthorizationToken()
Gets the authorization token used to communicate with the service. |
Safe |
getImpl()
Returns the comversation implementation. |
java.lang.String |
getMeetingId()
Gets the meeting Id. |
Property |
getProperties()
The collection of properties and their values defined for this meeting. |
java.util.concurrent.Future<java.lang.Void> |
lockMeetingAsync()
Lock a meeting. |
java.util.concurrent.Future<java.lang.Void> |
muteAllParticipantsAsync()
Mute all other participants in the meeting. |
java.util.concurrent.Future<java.lang.Void> |
muteParticipantAsync(String userId)
Mute a participant. |
java.util.concurrent.Future<java.lang.Void> |
removeParticipantAsync(Participant participant)
Remove a participant from a meeting using a participant object. |
java.util.concurrent.Future<java.lang.Void> |
removeParticipantAsync(User user)
Remove a participant from a meeting using a user object. |
java.util.concurrent.Future<java.lang.Void> |
removeParticipantAsync(String userId)
Remove a participant from a meeting using a user id. |
void |
setAuthorizationToken(String token)
Sets the authorization token used to communicate with the service. |
java.util.concurrent.Future<java.lang.Void> |
startMeetingAsync()
Start a meeting. |
java.util.concurrent.Future<java.lang.Void> |
unlockMeetingAsync()
Unlocks a meeting. |
java.util.concurrent.Future<java.lang.Void> |
unmuteAllParticipantsAsync()
Unmute all other participants in the meeting. |
java.util.concurrent.Future<java.lang.Void> |
unmuteParticipantAsync(String userId)
Unmute a participant. |
Methods inherited from java.lang.Object
Constructor Details
Meeting
protected Meeting(long handleValue)
Protected constructor.
Parameters:
Method Details
addParticipantAsync
public Future
Add a participant to a meeting using a participant object.
Parameters:
Returns:
addParticipantAsync
public Future
Add a participant to a meeting using a user object.
Parameters:
Returns:
addParticipantAsync
public Future
Add a participant to a meeting using the user's id.
Parameters:
Returns:
close
public void close()
Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object.
createMeetingAsync
public static Future
Initializes a new instance of Meeting.
Parameters:
Returns:
createMeetingAsync
public static Future
Initializes a new instance of Meeting.
Parameters:
Returns:
deleteMeetingAsync
public Future
Delete a meeting. After this no one will be able to join the meeting.
Returns:
dispose
protected void dispose(boolean disposing)
PROTECTED
Parameters:
endMeetingAsync
public Future
End a meeting.
Returns:
getAuthorizationToken
public String getAuthorizationToken()
Gets the authorization token used to communicate with the service.
Returns:
getImpl
public SafeHandle getImpl()
Returns the comversation implementation.
Returns:
getMeetingId
public String getMeetingId()
Gets the meeting Id.
Returns:
getProperties
public PropertyCollection getProperties()
The collection of properties and their values defined for this meeting.
Returns:
lockMeetingAsync
public Future
Lock a meeting. This will prevent new participants from joining.
Returns:
muteAllParticipantsAsync
public Future
Mute all other participants in the meeting. After this no other participants will have their speech recognitions broadcast, nor be able to send text messages.
Returns:
muteParticipantAsync
public Future
Mute a participant.
Parameters:
Returns:
removeParticipantAsync
public Future
Remove a participant from a meeting using a participant object.
Parameters:
Returns:
removeParticipantAsync
public Future
Remove a participant from a meeting using a user object.
Parameters:
Returns:
removeParticipantAsync
public Future
Remove a participant from a meeting using a user id.
Parameters:
Returns:
setAuthorizationToken
public void setAuthorizationToken(String token)
Sets the authorization token used to communicate with the service. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. Otherwise, the recognizer will encounter errors during recognition.
Parameters:
startMeetingAsync
public Future
Start a meeting.
Returns:
unlockMeetingAsync
public Future
Unlocks a meeting.
Returns:
unmuteAllParticipantsAsync
public Future
Unmute all other participants in the meeting.
Returns:
unmuteParticipantAsync
public Future
Unmute a participant.
Parameters:
Returns: