Skip to content

Comments

[FEAT]: Add stream events to extra#123

Open
Doominika wants to merge 36 commits intoandroid-stream-api-testingfrom
feat/extra-add-stream-events
Open

[FEAT]: Add stream events to extra#123
Doominika wants to merge 36 commits intoandroid-stream-api-testingfrom
feat/extra-add-stream-events

Conversation

@Doominika
Copy link
Contributor

@Doominika Doominika commented Feb 19, 2026

Description

Add support for subscribing to StreamApi events and implement function to create StreamApi instance in extra.

… feat/add-stream-events

# Conflicts:
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/modules/stream/JanusPublisher.java
… feat/add-stream-events

# Conflicts:
#	settings.gradle
@Doominika Doominika changed the base branch from android-stream-api-testing to feat/add-stream-events February 19, 2026 12:45
@Doominika Doominika changed the base branch from feat/add-stream-events to android-stream-api-testing February 19, 2026 12:46
… feat/extra-add-stream-events

# Conflicts:
#	jni-wrappers/privmx-endpoint/includes/privmx/endpoint/wrapper/parsers/parser.h
#	jni-wrappers/privmx-endpoint/includes/privmx/endpoint/wrapper/streams/parsers/model_native_initializers.h
#	jni-wrappers/privmx-endpoint/includes/privmx/endpoint/wrapper/streams/parsers/parser.h
#	jni-wrappers/privmx-endpoint/src/cpp/modules/StreamApiLow.cpp
#	jni-wrappers/privmx-endpoint/src/cpp/parsers/parser.cpp
#	jni-wrappers/privmx-endpoint/src/cpp/streams/parsers/model_native_initializers.cpp
#	jni-wrappers/privmx-endpoint/src/cpp/streams/parsers/parser.cpp
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/NewStreams.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/StreamEventData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/StreamPublishedEventData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/StreamRoomDeletedEventData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/StreamUnpublishedEventData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/StreamUpdatedEventData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/StreamsUpdatedData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/model/events/UpdatedStreamData.java
#	privmx-endpoint-streams/android/src/main/java/com/simplito/java/privmx_endpoint/modules/stream/StreamApiLow.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/model/events/eventTypes/StreamEventType.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/StreamApiLow.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/Key.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/KeyType.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/PublishedStreamData.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/SdpWithTypeModel.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/StreamHandle.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/StreamInfo.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/StreamRoom.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/StreamSubscription.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/StreamTrackInfo.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/streams/model/TurnCredentials.java
@Doominika Doominika closed this Feb 19, 2026
@Doominika Doominika reopened this Feb 19, 2026
Copy link
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.

  1. This code does not compile
  2. Can all types be moved to the same directory as on "refactor/move-stream-api-low" branch?

this(enableModule, userPrivateKey, solutionId, bridgeUrl, null);
}

public StreamApiLow initializeStreamApi() throws IllegalStateException, PrivmxException {
Copy link
Member

Choose a reason for hiding this comment

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

rename to initializeStreamApiLow


public StreamApiLow initializeStreamApi() throws IllegalStateException, PrivmxException {
if (streamApiLow == null) {
streamApiLow = new StreamApiLow(connection, eventApi);
Copy link
Member

Choose a reason for hiding this comment

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

if event api is not initialized then this method should throw exception

this(enableModule, userPrivateKey, solutionId, bridgeUrl, null);
}

public StreamApiLow initializeStreamApi() {
Copy link
Member

Choose a reason for hiding this comment

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

this method is unnecessary because it is inherited from BasicPrivmxEndpoint

eventType.eventSelectorId
);
} else {
throw new IllegalStateException("streamApi is not initialized. Try to initialize it first by calling the initializeStreamApi method.");
Copy link
Member

Choose a reason for hiding this comment

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

rename streamApi -> streamApiLow

break;
case STREAM:
if (streamApiLow == null)
throw new IllegalStateException("streamApi is not initialized");
Copy link
Member

Choose a reason for hiding this comment

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

rename streamApi -> streamApiLow

break;
case STREAM:
if (streamApiLow == null) {
throw new IllegalStateException("streamApi is not initialized");
Copy link
Member

Choose a reason for hiding this comment

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

rename streamApi -> streamApiLow

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.

2 participants