Skip to content

[FEAT]: Add stream events#117

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

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

Conversation

@Doominika
Copy link
Contributor

No description provided.

@Doominika Doominika requested a review from djenczewski February 4, 2026 10:39
@@ -208,26 +203,27 @@ public StreamPublishResult updateStream(


// todo
Copy link
Member

Choose a reason for hiding this comment

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

Is this still something that needs to be done?

@@ -189,12 +189,7 @@ public native StreamHandle createStream(
public native StreamPublishResult publishStream(StreamHandle streamHandle);

// todo
Copy link
Member

Choose a reason for hiding this comment

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

Is this still something that needs to be done?


import java.util.List;

public class NewStreams {
Copy link
Member

Choose a reason for hiding this comment

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

fields in all event data classes can be final


// todo: which to choose
// same as StreamPublishedEventData
public class StreamPublishedEventData {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe make it as extension for PublishedStreamData

) {
JniContextUtils ctx(env);
jobject result;

Copy link
Member

Choose a reason for hiding this comment

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

add nullcheck for stream_handle

Copy link
Member

Choose a reason for hiding this comment

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

this comment can be deleted?

) {
jclass cls = ctx->FindClass(
"com/simplito/java/privmx_endpoint/model/events/StreamEventData");
jmethodID ctor = ctx->GetMethodID(
Copy link
Member

Choose a reason for hiding this comment

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

ctor (?)

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. Maybe streams parsers can be move to one parser file, after change distribution
  2. StreamSettingsJni should be in streams for desktop jni not for base 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