MediaDiagnostics Class
- java.
lang. Object - com.
azure. android. communication. calling. MediaDiagnostics
- com.
public class MediaDiagnostics
Represents an object where media diagnostics are accessed.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraFrozenChanged events. Camera stops producing frames for more than 5 seconds. |
void |
addOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraPermissionDeniedChanged events. Camera permissions were denied in settings. |
void |
addOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartFailedChanged events. Generic camera failure. |
void |
addOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartTimedOutChanged events. Common scenario where camera is in bad state. |
void |
addOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneBusyChanged events. Microphone is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode. |
void |
addOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events. Microphone enters muted state unexpectedly. |
void |
addOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneNotFunctioningChanged events. Microphone is not functioning. |
void |
addOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events. No audio microphone devices on the user's system. |
void |
addOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events. There is no audio speaker device on the user's system. |
void |
addOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerBusyChanged events. Speaker is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode. |
void |
addOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerMutedChanged events. Speaker is muted. |
void |
addOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerNotFunctioningChanged events. Speaker is not functioning (failed to initialized the audio device client or device became inactive for more than 5 seconds). |
void |
addOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerVolumeZeroChanged events. Zero volume on a speaker. |
void |
addOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events. Speaking while being on mute. |
void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Media |
getLatestDiagnostics()
Stored latest values for all known media diagnostics. |
void |
removeOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraFrozenChanged events. Camera stops producing frames for more than 5 seconds. |
void |
removeOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraPermissionDeniedChanged events. Camera permissions were denied in settings. |
void |
removeOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartFailedChanged events. Generic camera failure. |
void |
removeOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartTimedOutChanged events. Common scenario where camera is in bad state. |
void |
removeOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneBusyChanged events. Microphone is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode. |
void |
removeOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events. Microphone enters muted state unexpectedly. |
void |
removeOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneNotFunctioningChanged events. Microphone is not functioning. |
void |
removeOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events. No audio microphone devices on the user's system. |
void |
removeOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events. There is no audio speaker device on the user's system. |
void |
removeOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerBusyChanged events. Speaker is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode. |
void |
removeOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerMutedChanged events. Speaker is muted. |
void |
removeOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerNotFunctioningChanged events. Speaker is not functioning (failed to initialized the audio device client or device became inactive for more than 5 seconds). |
void |
removeOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerVolumeZeroChanged events. Zero volume on a speaker. |
void |
removeOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events. Speaking while being on mute. |
Method Details
addOnIsCameraFrozenChangedListener
public void addOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraFrozenChanged events. Camera stops producing frames for more than 5 seconds.
Parameters:
addOnIsCameraPermissionDeniedChangedListener
public void addOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraPermissionDeniedChanged events. Camera permissions were denied in settings.
Parameters:
addOnIsCameraStartFailedChangedListener
public void addOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartFailedChanged events. Generic camera failure.
Parameters:
addOnIsCameraStartTimedOutChangedListener
public void addOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartTimedOutChanged events. Common scenario where camera is in bad state.
Parameters:
addOnIsMicrophoneBusyChangedListener
public void addOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneBusyChanged events. Microphone is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
Parameters:
addOnIsMicrophoneMutedUnexpectedlyChangedListener
public void addOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events. Microphone enters muted state unexpectedly.
Parameters:
addOnIsMicrophoneNotFunctioningChangedListener
public void addOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneNotFunctioningChanged events. Microphone is not functioning.
Parameters:
addOnIsNoMicrophoneDevicesAvailableChangedListener
public void addOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events. No audio microphone devices on the user's system.
Parameters:
addOnIsNoSpeakerDevicesAvailableChangedListener
public void addOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events. There is no audio speaker device on the user's system.
Parameters:
addOnIsSpeakerBusyChangedListener
public void addOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerBusyChanged events. Speaker is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
Parameters:
addOnIsSpeakerMutedChangedListener
public void addOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerMutedChanged events. Speaker is muted.
Parameters:
addOnIsSpeakerNotFunctioningChangedListener
public void addOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerNotFunctioningChanged events. Speaker is not functioning (failed to initialized the audio device client or device became inactive for more than 5 seconds).
Parameters:
addOnIsSpeakerVolumeZeroChangedListener
public void addOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerVolumeZeroChanged events. Zero volume on a speaker.
Parameters:
addOnIsSpeakingWhileMicrophoneIsMutedChangedListener
public void addOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events. Speaking while being on mute.
Parameters:
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
getLatestDiagnostics
public MediaDiagnosticValues getLatestDiagnostics()
Stored latest values for all known media diagnostics.
removeOnIsCameraFrozenChangedListener
public void removeOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraFrozenChanged events. Camera stops producing frames for more than 5 seconds.
Parameters:
removeOnIsCameraPermissionDeniedChangedListener
public void removeOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraPermissionDeniedChanged events. Camera permissions were denied in settings.
Parameters:
removeOnIsCameraStartFailedChangedListener
public void removeOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartFailedChanged events. Generic camera failure.
Parameters:
removeOnIsCameraStartTimedOutChangedListener
public void removeOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartTimedOutChanged events. Common scenario where camera is in bad state.
Parameters:
removeOnIsMicrophoneBusyChangedListener
public void removeOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneBusyChanged events. Microphone is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
Parameters:
removeOnIsMicrophoneMutedUnexpectedlyChangedListener
public void removeOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events. Microphone enters muted state unexpectedly.
Parameters:
removeOnIsMicrophoneNotFunctioningChangedListener
public void removeOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneNotFunctioningChanged events. Microphone is not functioning.
Parameters:
removeOnIsNoMicrophoneDevicesAvailableChangedListener
public void removeOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events. No audio microphone devices on the user's system.
Parameters:
removeOnIsNoSpeakerDevicesAvailableChangedListener
public void removeOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events. There is no audio speaker device on the user's system.
Parameters:
removeOnIsSpeakerBusyChangedListener
public void removeOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerBusyChanged events. Speaker is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
Parameters:
removeOnIsSpeakerMutedChangedListener
public void removeOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerMutedChanged events. Speaker is muted.
Parameters:
removeOnIsSpeakerNotFunctioningChangedListener
public void removeOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerNotFunctioningChanged events. Speaker is not functioning (failed to initialized the audio device client or device became inactive for more than 5 seconds).
Parameters:
removeOnIsSpeakerVolumeZeroChangedListener
public void removeOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerVolumeZeroChanged events. Zero volume on a speaker.
Parameters:
removeOnIsSpeakingWhileMicrophoneIsMutedChangedListener
public void removeOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events. Speaking while being on mute.
Parameters: