Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

group video #36

Open
guoGavin opened this issue Mar 16, 2017 · 3 comments
Open

group video #36

guoGavin opened this issue Mar 16, 2017 · 3 comments

Comments

@guoGavin
Copy link

How should I achieve multiplayer video?
My approach is to create a ParticipantVideo for each MMVRSurfaceView.
Although you can achieve, but when the number of the performance is very poor, very Carlton.
After the test I know can display up to five “IncomingVideo”.

What is the best way to achieve it?

我应该怎么样来实现多人视频。
我现在的方法是为每一个ParticipantVideo创建一个MMVRSurfaceView。
虽然可以实现,但是当人数很多的时候,效果非常不好,很卡顿,而且手机也会很卡。
经过测试,我知道最多可以显示5个他人视频。

那么,实现多人视频最好的方式是什么呢?

@rahulyaa
Copy link
Collaborator

rahulyaa commented Mar 16, 2017

@guoGavin What is the issue here?

  1. Do you see the video for all the remote participants?
  2. Performance is slow?

If you want to subscribe to each participant's remote video stream, simply get the list of all participants. For each participant, get the participant video and subscribe to it.

@guoGavin
Copy link
Author

guoGavin commented Mar 17, 2017

@rahulyaa Two problems need to be solved.
I did the same thing as you said, Because I use GridView to show the list of all participants. For each participant. i create a new MMVRSurfaceView to show the video of the participant.
When participants are more, the performance is very slow.
Please see my sample.
https://github.com/guoGavin/SkypeAndroidSdkDemo

两个问题都需要解决
我的做法和你说的一样,因为我使用GridView来显示参与者列表,所以,对于每个参与者,我创建了一个新的MMVRSurfaceView来显示这个参与者的视频。
当参与者很多的时候,表现很不好。
请看我的示例。
https://github.com/guoGavin/SkypeAndroidSdkDemo

@guoGavin
Copy link
Author

@rahulyaa Any suggestions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants