aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
101 stars 24 forks source link

[React native]getting error while using amazon-chime-sdk-0.15.1 in react native demo #152

Closed ashirkhan94 closed 2 years ago

ashirkhan94 commented 2 years ago

Describe the bug getting error while using amazon-chime-sdk-0.15.1 (android sdk) in react native demo To Reproduce Steps to reproduce the behavior:

  1. create a react native app with SDK version 15.1, or SDK version 15.0
  2. run the react native app
  3. See an error in terminal

Logs MeetingObservers.kt: (29, 1): Class 'MeetingObservers' is not abstract and does not implement abstract member public abstract fun onRemoteVideoSourceAvailable(sources: List): Unit defined in com.amazonaws.services.chime.sdk.meetings.audiovideo.AudioVideoObserver

Test environment Info

ashirkhan94 commented 2 years ago

this issue is fixed by adding below functions in MeetingObservers.kt file

override fun onRemoteVideoSourceUnavailable(sources: List<RemoteVideoSource>){
         // Not implemented for demo purposes
    }
    override fun onRemoteVideoSourceAvailable(sources: List<RemoteVideoSource>){
        // Not implemented for demo purposes
    }
AlkanV commented 1 year ago

with new version you also need to add following code piece in order to remove this error:

override fun onCameraSendAvailabilityUpdated(available: Boolean) { // Not implemented for demo purposes }