Session.StreamPropertiesListener
Copy
public abstract static interface StreamPropertiesListener
Enclosing class: Session
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.
Methods
| Name | Description |
|---|---|
onStreamHasAudioChanged(session, stream, hasAudio) |
Called when a stream in the session changes between having audio and not having audio. |
onStreamHasVideoChanged(session, stream, hasVideo) |
Called when a stream in the session changes between having video and not having video. |
onStreamVideoDimensionsChanged(session, stream, width, height) |
Called when the video dimensions of a stream in the session change. |
onStreamVideoTypeChanged(session, stream, videoType) |
Called when the video type of a stream in the session change. |
onStreamHasAudioChanged(session, stream, hasAudio)
Called when a stream in the session changes between having audio and not having audio.
Parameters:
| Name | Type | Description |
|---|---|---|
session |
Session | The session containing the stream. |
stream |
Stream | The stream. |
hasAudio |
boolean | Whether the stream has audio (true) or not ( false). |
onStreamHasVideoChanged(session, stream, hasVideo)
Called when a stream in the session changes between having video and not having video.
Parameters:
| Name | Type | Description |
|---|---|---|
session |
Session | The session containing the stream. |
stream |
Stream | The stream. |
hasVideo |
boolean | Whether the stream has video (true) or not ( false). |
onStreamVideoDimensionsChanged(session, stream, width, height)
Called when the video dimensions of a stream in the session change.
Parameters:
| Name | Type | Description |
|---|---|---|
session |
Session | The session containing the stream. |
stream |
Stream | The stream. |
width |
int | The new width of the stream, in pixels. |
height |
int | The new height of the stream, in pixels. |
onStreamVideoTypeChanged(session, stream, videoType)
Called when the video type of a stream in the session change.
Parameters:
| Name | Type | Description |
|---|---|---|
session |
Session | The session containing the stream. |
stream |
Stream | The stream. |
videoType |
Stream.StreamVideoType | The new video type of the stream. |