[DOCS]: Prepare inline documentation for streams#133
[DOCS]: Prepare inline documentation for streams#133Doominika wants to merge 60 commits intoandroid-stream-api-testingfrom
Conversation
…Subscriptions method
…amsSubscriptions method
…modifyRemoteStreamsSubscriptions method
…subscribeToRemoteStreams method
…moteStreamsSubscriptions method
…ionStateObserver method
…eToRemoteStreams method
…aram' into docs/prepare-inline-documentation-for-streams
…oRemoteStreams method
…teStreamsSubscriptions method
…tory class and its methods
djenczewski
left a comment
There was a problem hiding this comment.
Add information to all methods about exceptions like PrivmxException and NativeException.
… docs/prepare-inline-documentation-for-streams # Conflicts: # privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/modules/stream/StreamApi.java
… package for internal classes (#142)
| * Subscribes to selected remote streams in a StreamRoom. | ||
| * Individual tracks within a stream can also be selected for subscription. |
There was a problem hiding this comment.
| * 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. |
| private final PeerConnectionManager pcManager; | ||
|
|
||
| /** | ||
| * Factory which provides helpers for creating WebRTC media sources and tracks. |
There was a problem hiding this comment.
Factory providing helpers for creating WebRTC media sources and tracks.
| } | ||
|
|
||
| /** | ||
| * Creates a new StreamRoom within the speci fvfied Context. |
There was a problem hiding this comment.
Creates a new StreamRoom within the specified Context.
| } | ||
|
|
||
| /** | ||
| * Registers an observer to receive ICE connection state changes for the given StreamRoom. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
* 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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
- 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 |
There was a problem hiding this comment.
- Don't create instances of this class directly - ...
Description
Prepare inline documentation for StreamApi based on PrivMX Endpoint StreamApi docs.