Interface Session.StreamPropertiesListener

Enclosing class:
Session

public static interface Session.StreamPropertiesListener
Monitors when properties of streams in the session change. These include properties indicating whether the stream has audio, whether it has video video, and its video dimensions.
See Also:
  • Method Details

    • onStreamHasAudioChanged

      void onStreamHasAudioChanged(Session session, Stream stream, boolean hasAudio)
      Called when a stream in the session changes between having audio and not having audio.
      Parameters:
      session - The session containing the stream.
      stream - The stream.
      hasAudio - Whether the stream has audio (true) or not ( false).
    • onStreamHasVideoChanged

      void onStreamHasVideoChanged(Session session, Stream stream, boolean hasVideo)
      Called when a stream in the session changes between having video and not having video.
      Parameters:
      session - The session containing the stream.
      stream - The stream.
      hasVideo - Whether the stream has video (true) or not ( false).
    • onStreamVideoDimensionsChanged

      void onStreamVideoDimensionsChanged(Session session, Stream stream, int width, int height)
      Called when the video dimensions of a stream in the session change.
      Parameters:
      session - The session containing the stream.
      stream - The stream.
      width - The new width of the stream, in pixels.
      height - The new height of the stream, in pixels.
    • onStreamVideoTypeChanged

      void onStreamVideoTypeChanged(Session session, Stream stream, Stream.StreamVideoType videoType)
      Called when the video type of a stream in the session change.
      Parameters:
      session - The session containing the stream.
      stream - The stream.
      videoType - The new video type of the stream.