GithubHelp home page GithubHelp logo

dolbyio / comms-sdk-react-native Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 4.25 MB

Dolby.io Communications SDK for React Native

Home Page: https://www.npmjs.com/package/@dolbyio/comms-sdk-react-native

License: MIT License

Kotlin 29.16% Java 1.36% JavaScript 2.18% Shell 0.11% TypeScript 46.03% C 0.01% Objective-C 2.97% Swift 17.66% Ruby 0.52%
android dolbyio ios react-native screen-sharing sdk spatial-audio video-chat voice voice-chat webrtc

comms-sdk-react-native's People

Contributors

aamq avatar arkadiuszkrykm avatar codlab avatar dependabot[bot] avatar dzfill avatar fabienlavocat avatar graduad avatar gruszczakmq avatar kbetl-dlb avatar kdrob-dolby avatar krzysztof-drobek avatar mateuszglapiak avatar mateuszglapiak-dolby avatar mgruszczakmq avatar mhelf-dolby avatar michalgruszczak avatar mpozy avatar msobo1 avatar pczaj avatar ppolus-dolby avatar ppolus-miquido avatar romansavka-mq avatar vincentsong avatar yganu avatar yuriymiquido avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

comms-sdk-react-native's Issues

Multiple stream events received when changing camera

It has been noticed that when a participant is sharing video from their camera, but then changes to a different video device, several events are being received, with one of the intermediate events containing no video streams. This means that there is a short gap between the old and new video streams.

Some streams have blank IDs

Some Stream Removed events have a blank ID which means we don't know which Stream to remove from the app.

When joining a conference as a listener while a screenshare is ongoing an error is thrown

whilst testing #156 I found another issue with the screenshare.

When you join a call as a listener while the call is ongoing and screenshare is on we encountered this error:

Error: Unable set remote SDP for Peer: 70198506-3b32-3efe-aa9b-f80b54200574 :: Failed to set remote offer sdp: Failed to set remote video description send parameters for m-section with mid='screenshare'.
Error: Unable set remote SDP for Peer: 70198506-3b32-3efe-aa9b-f80b54200574 :: Failed to set remote offer sdp: Failed to set remote video description send parameters for m-section with mid='screenshare'.

A couple of conferences where we reproduced this issue:

ID: 259844d3-2271-40de-9435-fcb5afc801b9
Alias: Stage|9fcbfcfa-2933-4010-87dd-04d4609f5970|6410ec1e-aab8-43d7-b16d-920df262c161

ID: 4833935a-e938-4ec8-b037-6600caf1461c
Alias: Stage|9fcbfcfa-2933-4010-87dd-04d4609f5970|43729424-51cd-4feb-a023-9419669fc56f

pods installation issue in react native ios

[!] CocoaPods could not find compatible versions for pod "VoxeetSDK":
In Podfile:
react-native-comms-sdk (from ../comms-sdk-react-native-latest) was resolved to 3.8.0-beta.1, which depends on
VoxeetSDK (~> 3.8.0)

Specs satisfying the VoxeetSDK (~> 3.8.0) dependency were found, but they required a higher minimum deployment target.

CommsAPI.session.isOpen returns the wrong type

isOpen returns a Boolean instead of a boolean, the primitive type should always be returned as otherwise you need to call valueOf to unwrap the actual value. This was probably a typo as this seems to be the only instance where Boolean is used instead of boolean.

Current code:

const isOpen = await CommsAPI.session.isOpen();
if (isOpen.valueOf()) {}

Expected code:

const isOpen = await CommsAPI.session.isOpen();
if (isOpen) {}

public async isOpen(): Promise<Boolean> {
return this._nativeModule.isOpen();
}

Unable to use @dolbyio/comms-sdk-react-native, @millicast/sdk and react-native-webrtc together

I am using the following packages in an Expo managed project:

  • "@dolbyio/comms-sdk-react-native": "^3.7.0-beta.1",
  • "@millicast/sdk": "^0.1.35",
  • "react-native-webrtc": "^106.0.0-beta.7",,

When trying to create an expo - EAS build I get a lot of Duplicate class errors:
image

I need to use both SDK's in my app, is this supported? If yes, what tweaks to the native code do I need to make to get this working?

Missing AvatarUrl on Active Participant Event

Active Participant Event is missing avatarUrl after setting it with SessionService.updateParticipantInfo.

On Participant object returned by Active Participant Event we get an info object which is missing avatarUrl but we can see the set url in other events.

From our testing it looks like it's not included in a response from the backend.
It's possible to reproduce on iOS and Android.

Update to 3.8 native SDKs

Update the Dolby.io React Native SDK to use the 3.8 native SDKs.

Tasks:

  • Update the Android part of Dolby.io React Native SDK
  • Update the iOS part of Dolby.io React Native SDK

Unable to view network requests in the debugger.

Network requests do not show up in flipper which makes it difficult to debug issues. I believe this is due to this SDK calling the android/ios specific SDKs to make network requests.

Is there any way to view these requests and responses without going into android/ios specific tooling?

Unable to import any enum type

When trying to import any enum you get the following error:
image

This happens for every enum defined in a .d.ts file that you try to import.

participitant added and left notifications are missing

When we add a new listener how we can check or know the new user is came?? so please tell me the way because these two type of notifications are not available in react native if these are available then we can identify using these notifications

Object is not a function error when trying to call any UnsubscribeFunction

I'm trying to integrate this SDK but am running into an issue when trying to unsubscribe from an event handler.
When I navigate to one of my screens I can successfully view the incoming video. However when going to the previous screen I get an error when calling the UnsubscribeFunction. This results in the event handler functions not being disposed which means if you keep going back and forth between screens you will have multiple event handlers active while there should only be one.

I can consistenly reproduce this with the following code, you don't need to have called any other Dolby function:

useEffect(() => {
    logger.debug("~~~~~~~~ subscribing to onStreamsChange");
    const unsubscribe = CommsAPI.conference.onStreamsChange((data, type) => {
      logger.debug("~~~~~~~~ onStreamsChange", type);
    });

    return () => {
      logger.debug("~~~~~~~~ unsubscribing from onStreamsChange");
      try {
        unsubscribe();
        logger.debug("~~~~~~~~ unsubscribing from onStreamsChange");
      } catch (e) {
        logger.error("~~~~~~~~ error unsubscribing", e);
      }
    };
  }, []);

Note: it happens for any onX handler, not just onStreamsChange

Logs after toggling between screens a few times:
image

Full logs for completeness sake:
image

Incorrect values in ParticipantType enum

The values in the ParticipantType enum seem to be incorrect.
When I log (await CommsAPI.conference.current()).participants whilst in a conference. I get back the following data:
image

The enum indicates it is "user" while it should be "USER". I have not verified this but I think this might be the case for some of the other enums as well.

export enum ParticipantType {
/** A participant who cannot send any audio or video stream during a conference. */
LISTENER = 'listener',
/** A participant who can send and receive audio and video during the conference. */
USER = 'user',

It's also possible to receive the type "UNKNOWN" which should be added to the enum.
image

Callback for recording in React Native SDK

There are events to listen to in order to get the recording status like RecordingStatusUpdatedEvent on android and similar on other platforms. But React Native SDK doesn't provide a similar callback. Having this callback will enable the developer to show the recording status to the participants.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.