1

Unable to subscribe 2 video in single screen

I am using Red5Pro in android app. 

In my screen i am showing 3 video. 1 is Self video and other 2 video is from other user. 

My issue is at a time only 1 video is subscribe . other video just show black screen, 

My code for Subscribe video is as below.

private void strtPrfrmncs() {

try {

R5VideoView test_view = (R5VideoView) findViewById(R.id.test_view);

R5Configuration config = new R5Configuration(R5StreamProtocol.RTSP,
hostName, Integer.parseInt((portNo)), appName, Float.parseFloat(bufferValue));
config.setLicenseKey(licKey);

R5Connection connection = new R5Connection(config);

//setup a new stream using the connection
R5Stream publishTest = new R5Stream(connection);
publishTest.setListener(this);

publishTest.client = this;
//display.setZOrderOnTop(true);

test_view.attachStream(publishTest);
test_view.showDebugView(true);


publishTest.play("Stream");

} catch (Exception e) {
e.printStackTrace();
}
}

I don't what is going wrong. The stream and video
view are different for both subscribe.

Please help what is going wrong. Waiting for the response.


 

3 comments

Please sign in to leave a comment.