Git Product home page Git Product logo

Comments (4)

rahulyaa avatar rahulyaa commented on June 3, 2024

Yes you can. Similar to the sample, you can subscribe to each participants video. Take a look at the sfmdemo project, VideoFragment.java, VideoStreamSurfaceCreatedCallback method.

from skype-android-app-sdk-samples.

Amihir1 avatar Amihir1 commented on June 3, 2024

@rahulyaa I have created another MMVRSurfaceView , i want to show 4 users video, Is there any thing for
Participant.Role.LEADER that i need to change.
I have also set setMaxVideoChannelCount = 100;

If possible can you please share some code. Thanks in advance.

from skype-android-app-sdk-samples.

Amihir1 avatar Amihir1 commented on June 3, 2024

@rahulyaa I have make some changes in the method, Please check below code.

public void VideoStreamSurfaceCreatedCallback(MMVRSurfaceView mmvrSurfaceView) {
this.mmvrSurfaceView = mmvrSurfaceView;
this.mmvrSurfaceView.setAutoFitMode(MMVRSurfaceView.MMVRAutoFitMode_Crop);

  • this.mmvrSurfaceView.requestRender();

      try {
          for (Participant participant : this.remoteParticipants) {
              //if (participant.getRole() == Participant.Role.LEADER) {
                  Person p=participant.getPerson();
                  String nm=p.getDisplayName();
                  if(nm.equalsIgnoreCase("user1")) {
                      this.remoteParticipantLeader = participant;
                      ParticipantVideo participantVideo = this.remoteParticipantLeader.getParticipantVideo();
                      participantVideo.subscribe(this.mmvrSurfaceView);
                  }else if(nm.equalsIgnoreCase("user2")) {
                      this.remoteParticipantLeader2 = participant;
                      ParticipantVideo participantVideo = this.remoteParticipantLeader2.getParticipantVideo();
                      participantVideo.subscribe(this.mmvrSurfaceView2);
                  }
                  else if(nm.equalsIgnoreCase("user3")) {
                      this.remoteParticipantLeader3 = participant;
                      ParticipantVideo participantVideo = this.remoteParticipantLeader3.getParticipantVideo();
                      participantVideo.subscribe(this.mmvrSurfaceView3);
                  }
                  break;
              //}
          }
      }catch (Exception e) {
          e.printStackTrace();
      }
      this.getActivity().runOnUiThread(new Runnable() {
          @Override
          public void run() {
              updateState();
          }
      });
    

    }

The Error i got is : com.microsoft.office.sfb.appsdk.SFBException: Failed to display participant video

But in video preview it shows only black , nothing else, Let me know what is wrong i am doing???
Please reply asap, I am waiting for the response.

from skype-android-app-sdk-samples.

rahulyaa avatar rahulyaa commented on June 3, 2024

@Amihir1 Did you resolve this? All all the participants in the meeting leaders?
Participant.Role.LEADER

from skype-android-app-sdk-samples.

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.