Git Product home page Git Product logo

Comments (8)

varun27wahi avatar varun27wahi commented on May 18, 2024 1

Hi @jeryini!

Unfortunately I can't share the code since it is not a personal project. I can give you a basic overview of what I did and you can reach out me if you still have doubts.

I basically replaced the single PeerConnection localPeer member with a HashMap<String, PeerConnection>, where the key is a viewer's client ID. Then whenever a new offer comes in, create a new entry in the map. Rest of the process is same as what's done in the existing code. Hope this helps!

from amazon-kinesis-video-streams-webrtc-sdk-android.

aragorntheking avatar aragorntheking commented on May 18, 2024

I am facing the same issue. The demo does not seem to work for multiple viewers connecting to the same channel even when different client Ids are provided. As soon as the 2nd client is connected, both the viewers stops receiving any frames

from amazon-kinesis-video-streams-webrtc-sdk-android.

varun27wahi avatar varun27wahi commented on May 18, 2024

Same issue for me. There's no documentation other than sample app which we can refer to.

from amazon-kinesis-video-streams-webrtc-sdk-android.

varun27wahi avatar varun27wahi commented on May 18, 2024

So I got it to work. The sample app is designed for 1:1 communication. AS soon as as new viewer connects to the master, the remote description for the master changes and the old connection lost.
To solve this, I created a HashMap for the master to store all connections. Whenever the master received an offer from a new viewer, I created a new entry in the HashMap, so that each new connection is unique.

from amazon-kinesis-video-streams-webrtc-sdk-android.

jeryini avatar jeryini commented on May 18, 2024

Hello @varun27wahi !

Care to share your code fix here? It would be greatly appreciated!

from amazon-kinesis-video-streams-webrtc-sdk-android.

jeryini avatar jeryini commented on May 18, 2024

Hi @varun27wahi!

Thank you for your explanation. Will try to reproduce your solution.

from amazon-kinesis-video-streams-webrtc-sdk-android.

MushMal avatar MushMal commented on May 18, 2024

Closing this for now. The sample is not designed to fully support the multi-client.

from amazon-kinesis-video-streams-webrtc-sdk-android.

nikinci avatar nikinci commented on May 18, 2024

Hi @jeryini Did you apply the solution? Can you share the code if you fixed the problem?

from amazon-kinesis-video-streams-webrtc-sdk-android.

Related Issues (20)

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.