Open doniwinata0309 opened 2 years ago
Hi @doniwinata0309 , thanks for reporting this. We have not tested the Broadcast SDK with DFM so it's possible there are issues leading to lack of support. I've opened an internal ticket to track and investigate it.
In the DFM logs, do you see the following log? It would show up very early:
Failed to load library broadcastcore
It looks like the broadcast library is, in fact, loading, even in DFM. Instead I believe the issue has to do with a failure to find the fragment shaders (Shader compilation failed
), which are simple raw resource text files. There is a previously-reported issue (https://github.com/aws-samples/amazon-ivs-broadcast-android-sample/issues/6) that led to the same problem, although a different cause.
Thanks for bringing this to our attention! I will update this post when I have more information.
Hi @caleighm I did not see this "Failed to load library broadcastcore" showing up on logcat. As additional info, this also happen on our debug environment where R8 is disabled. Thank you for quick response and feedback, let me know if something I can help.
Hi @doniwinata0309 , thanks for this additional information. To help investigate this further, could you also please reach out to AWS Support (https://console.aws.amazon.com/support/home) and let them know that you would like escalate this behavior to the IVS team?
I may have further follow-up questions here, too, but I will only post as needed (or with updates on our end).
Hi @caleighm we already send it to AWS support about this issue. Sure, let me know if something I can help, thank you for your help
Broadcast not working if library only implemented inside DFM (Dynamic Feature Delivery) module. It will works if base module implement it, and all SO files are inside Base APK. Details:
Android broadcast SDK: 1.2.0 Gradle: 7.3 Android Gradle Plugin 7.0
Assume I have 2 modules, module A is application module and module B is Dynamic Feature Module. Amazon Broadcast only implemented inside DFM module B, to help reduce our main APK size.
When starting broadcast, it show blank black screen with this repeated error:
However, if we add amazon broadcast SDK dependencies to our application module the issue is gone. This is the logcat from it:
In this case, all SO files and SDK from amazon broadcast are move to base apk, and probably because of that this log is showing up D/AmazonIVS: Found library broadcastcore.
However put amazon broadcast dependencies to our base APK will adding 2 MB to our download and install size.
Do you have some idea if it issue from amazon broadcast SDK(maybe not supporting DFM yet) or something I can do to make it works with only DFM module implementation?
Let me know if you need additional information. Thank you in advance