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

how to banlance webrtc & kvs cloud storage #60

Closed HiconKong closed 2 years ago

HiconKong commented 3 years ago

recently i clone kvs demo and attach it with webrtc,but i found when used AndroidCameraMediaSource.setPreviewSurfaces(new Surface(SurfaceTextureHelper.getSurfaceTexture())), i got black screen on my android device,but cloud html page can view video normally,how can i fix the abnormal on my android device.

In addition,how can i change mediaSource configuration after its start.

disa6302 commented 2 years ago

If the video is not visible on the Android device, there must be something wrong with the way the API is being used and not related to KVS WebRTC at all.

You can change it (the sample does not do that), but it might require SDP exchange again to have updated attributes to support the P2P communciation.