Skip to content

[DOCS]: Prepare inline documentation for streams#133

Open
Doominika wants to merge 60 commits intoandroid-stream-api-testingfrom
docs/prepare-inline-documentation-for-streams
Open

[DOCS]: Prepare inline documentation for streams#133
Doominika wants to merge 60 commits intoandroid-stream-api-testingfrom
docs/prepare-inline-documentation-for-streams

Conversation

@Doominika
Copy link
Copy Markdown
Contributor

@Doominika Doominika commented Mar 26, 2026

Description

Prepare inline documentation for StreamApi based on PrivMX Endpoint StreamApi docs.

…aram' into docs/prepare-inline-documentation-for-streams
@Doominika Doominika marked this pull request as ready for review April 2, 2026 09:12
@Doominika Doominika changed the title Docs/prepare inline documentation for streams [DOCS]: Prepare inline documentation for streams Apr 2, 2026
Copy link
Copy Markdown
Member

@djenczewski djenczewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add information to all methods about exceptions like PrivmxException and NativeException.

@Doominika Doominika requested a review from djenczewski April 17, 2026 13:35
Comment on lines +498 to +499
* Subscribes to selected remote streams in a StreamRoom.
* Individual tracks within a stream can also be selected for subscription.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Subscribes to selected remote streams in a StreamRoom.
* Individual tracks within a stream can also be selected for subscription.
* Subscribes to selected remote streams or tracks in a StreamRoom.

@djenczewski djenczewski requested a review from filipg43 April 24, 2026 14:02
private final PeerConnectionManager pcManager;

/**
* Factory which provides helpers for creating WebRTC media sources and tracks.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Factory providing helpers for creating WebRTC media sources and tracks.

}

/**
* Creates a new StreamRoom within the speci fvfied Context.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creates a new StreamRoom within the specified Context.

}

/**
* Registers an observer to receive ICE connection state changes for the given StreamRoom.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registers an observer to receive stream state changes for the given StreamRoom.

*
* @param roomId ID of the StreamRoom
* @param observer callback receiving {@link PeerConnection.IceConnectionState} values
* @throws IllegalStateException thrown when no active session exists for the given room.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thrown when there is no active session in the given stream room

* @throws IllegalStateException when Stream with this StreamHandle doesn't exist.
* Removes a media track from a stream.
* After removing tracks, call {@link #updateStream(StreamHandle)} to propagate
* the change to other participants.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 * Removes a media track from a stream.
 * After removing tracks, call {@link #updateStream(StreamHandle)} to propagate
 * the change to other users.

*
* @param streamHandle handle returned by {@link #createStream(String)}
* @return result of the update operation containing updated stream information
* @throws IllegalStateException thrown when no stream exists for the given handle.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thrown when there is no stream with the given handle.

*
* @param streamHandle handle returned by {@link #createStream(String)}
* @param track {@link VideoTrack} or {@link AudioTrack} to remove
* @throws IllegalStateException thrown when Stream with this StreamHandle doesn't exist.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thrown when there is no stream with the given handle.

* @param roomId ID of the StreamRoom
* @param observer observer implementation receiving track callbacks
* @param streamId ID of a specific remote stream to observe, or {@code null} for all streams in the given StreamRoom.
* @throws IllegalStateException thrown when no active session exists for the given room.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thrown when there is no active session in the given stream room.


/**
* Generates a subscription query string for events for the StreamRoom
* as well as its individual streams.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Generates a subscription query string for StreamRoom events and its individual streams.

* Factory for creating WebRTC media sources and tracks.
* Provides methods for creating the audio and video objects needed
* to publish a stream via {@link StreamApi}.
* You do not create instances of this class directly — obtain the shared instance
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Don't create instances of this class directly - ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants