opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
210 stars 170 forks source link

Size of SDK has doubled #474

Open danmajercak opened 11 months ago

danmajercak commented 11 months ago

Describe the bug Since opentok-android-sdk 2.25.2, the size of sdk has doubled compared to previous version Was that on purpose? What has changed tha size has grown so much?

Screenshots

Screenshot 2023-08-09 at 10 06 04 Screenshot 2023-08-09 at 10 06 14

v-kpheng commented 11 months ago

@danmajercak, the size of the SDK grew due to support for the Media Processor APIs, which was introduced as a beta feature in Android SDK 2.25.3.

danmajercak commented 11 months ago

Does it have to be part of the original sdk? We currently do not want to use this beta feature. But increasing the size of sdk is a blocker for us. Couldn't it be created as a separate dependency and clients who would be interested in this feature would add it?

emartynov commented 11 months ago

I saw that 2.25.2 also grew without the beta functionality announcement.

goncalocostamendes commented 10 months ago

@danmajercak @emartynov as @v-kpheng mentioned, the SDK grew only due to Media Processor APIs, which provides Background Blur and video/audio custom transformers to publisher's media stream. Even though it was only introduced as a beta feature in Android SDK 2.25.3, it was already part of 2.25.2.

We are working in a solution to provide Media Processor APIs as an additional dependency, but there is no ETA for it at the moment.

Meanwhile, if the size increase is a blocker, I ask to remain with v2.25.1 until further notice

wlTrunks commented 9 months ago

is there any way to exclude this Media Processor API, size of sdk too big

goncalocostamendes commented 9 months ago

@wlTrunks at the moment, there isn't. I would ask you to remain with v2.25.1. We are working on providing Media Processor functionalities as a plugin that you can add to the SDK, but we have not finalise it yet

v-kpheng commented 9 months ago

Just wanted to share an update. We'll work with product on this. Hope we can deliver this in Q1. I'll share a link to the internal ticket once it's created.

v-kpheng commented 9 months ago

We're tracking this internally: https://jira.vonage.com/browse/VPF-499.

ntustzeus commented 8 months ago

any solution or workaround to reduce the sdk size? I build a project that import com.opentok.android:opentok-android-sdk:2.25.2

the apk size is larger than 100MB so I use "analyze apk" from android studio and it shows libopentok.so is about 40MB(in x86_64)

I enabled ProGuard but no help.

Can the sdk size be reduced?

libopentok_so

goncalocostamendes commented 8 months ago

@ntustzeus unfortunately there is no workaround to reduce the SDK size. I would ask you to remain with v2.25.1 if possible where the size is around half of v2.25.2.

The size has increased on v2.25.2 because we introduced Media Processor functionalities such as Background Blur and Background Replacement. Since the size is an issue for multiple costumers, we are working on providing Media Processor functionalities as a plugin that can be added to the SDK or not.

We're tracking this internally: https://jira.vonage.com/browse/VPF-499. We expect to have it solved by Q1 2024.

AlexMoumou commented 4 months ago

@goncalocostamendes Is there a workaround for the size right now in the latest versions? v2.25.1 is unusable because it has the issue with the disconnect events being late 20-30secs causing our users sessions to get messed up if they log out and log in to quickly?

goncalocostamendes commented 4 months ago

@AlexMoumou the solution to this problem is on the final stage of development. It should be released in the following weeks

omaiborodahj commented 2 months ago

@goncalocostamendes any updates on this issue?

goncalocostamendes commented 2 months ago

@emartynov @ntustzeus @wlTrunks @AlexMoumou @omaiborodahj @danmajercak the decoupling was already implemented and merged into the main branch. In the next release 2.28.0, planned to be done by late May, a second lib OpenTok_Transformers will be opt-in. The OpenTok lib size returned to its normal size

Panda-ref commented 1 month ago

@goncalocostamendes

Is there a known release date for 2.28.0? Is it still late May?

ntustzeus commented 1 month ago

2024/6/3, it seems no new release note from offical site.

the issue is nothing about new feature but just to revert a clean version, how can it take 10 months and not completed? Hope the new version will be well optimized before release.

2024-06-03_110446-vonage-android-sdk

goncalocostamendes commented 1 month ago

@v-kpheng can you confirm 2.28.0 is comming up and if possible an ETA

v-kpheng commented 1 month ago

@goncalocostamendes, ETA slipped to end of June. Sorry.

Panda-ref commented 6 days ago

@v-kpheng Any updates?

goncalocostamendes commented 6 days ago

Android SDK 2.27.2 was already released and now two different libraries exist.

The latest Maven version is available at https://central.sonatype.com/artifact/com.vonage/client-sdk-video

Our Android lib with video conference capabilities you are familiar - com.vonage:client-sdk-video:2.27.2 A new opt-in library to support Video and Audio Transformers for features such as Background Blur and Noise Suppression - com.vonage:client-sdk-video-transformers:2.27.2