awslabs / amazon-kinesis-video-streams-webrtc-sdk-android

Android SDK for interfacing with Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
58 stars 37 forks source link

Question : Is it possible the minSdkVersion to downgrade to 21 ? #13

Closed polokoio456 closed 4 years ago

polokoio456 commented 4 years ago

Hi, guys : I need to use your WebRTC service on the sdk version 21 phone.

I found this file should need the sdk version at least 23, but I have no idea to no use this file.

"com.amazonaws:aws-android-sdk-mobile-client"

zhiyua-git commented 4 years ago

Hi @polokoio456 ,

The sample app is to demonstrate how Kinesis Video signaling work with websocket client and Android native WebRTC. The com.amazonaws:aws-android-sdk-mobile-client is just to provide an app base settings, if you use cognito client directly and with your own app and UI dependency, you can avoid the dependency on com.amazonaws:aws-android-sdk-mobile-client.

It is mainly used to get sign-in UI: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-android/blob/master/src/main/java/com/amazonaws/kinesisvideo/demoapp/activity/StartUpActivity.java#L34 and get credential work https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-android/blob/master/src/main/java/com/amazonaws/kinesisvideo/demoapp/activity/WebRtcActivity.java#L157. You can replace first part with your UI and second part through AWS cognito client.

polokoio456 commented 4 years ago

@zhiyua-git Thank you, I will try it.