mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 20:22:03 +00:00
Fix video stream type not included in PeerConnectionEvent
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
b328e68c7a
commit
ed54b9f03a
@ -345,7 +345,7 @@ public class PeerConnectionWrapper {
|
|||||||
Log.d("iceConnectionChangeTo: ", iceConnectionState.name() + " over " + peerConnection.hashCode() + " " + sessionId);
|
Log.d("iceConnectionChangeTo: ", iceConnectionState.name() + " over " + peerConnection.hashCode() + " " + sessionId);
|
||||||
if (iceConnectionState == PeerConnection.IceConnectionState.CONNECTED) {
|
if (iceConnectionState == PeerConnection.IceConnectionState.CONNECTED) {
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_CONNECTED,
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_CONNECTED,
|
||||||
sessionId, null, null, null));
|
sessionId, null, null, videoStreamType));
|
||||||
|
|
||||||
if (!isMCUPublisher) {
|
if (!isMCUPublisher) {
|
||||||
EventBus.getDefault().post(new MediaStreamEvent(remoteStream, sessionId, videoStreamType));
|
EventBus.getDefault().post(new MediaStreamEvent(remoteStream, sessionId, videoStreamType));
|
||||||
@ -356,7 +356,7 @@ public class PeerConnectionWrapper {
|
|||||||
}
|
}
|
||||||
} else if (iceConnectionState == PeerConnection.IceConnectionState.COMPLETED) {
|
} else if (iceConnectionState == PeerConnection.IceConnectionState.COMPLETED) {
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_CONNECTED,
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_CONNECTED,
|
||||||
sessionId, null, null, null));
|
sessionId, null, null, videoStreamType));
|
||||||
} else if (iceConnectionState == PeerConnection.IceConnectionState.CLOSED) {
|
} else if (iceConnectionState == PeerConnection.IceConnectionState.CLOSED) {
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||||
.PEER_CLOSED, sessionId, null, null, videoStreamType));
|
.PEER_CLOSED, sessionId, null, null, videoStreamType));
|
||||||
@ -364,12 +364,12 @@ public class PeerConnectionWrapper {
|
|||||||
iceConnectionState == PeerConnection.IceConnectionState.NEW ||
|
iceConnectionState == PeerConnection.IceConnectionState.NEW ||
|
||||||
iceConnectionState == PeerConnection.IceConnectionState.CHECKING) {
|
iceConnectionState == PeerConnection.IceConnectionState.CHECKING) {
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_DISCONNECTED,
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_DISCONNECTED,
|
||||||
sessionId, null, null, null));
|
sessionId, null, null, videoStreamType));
|
||||||
} else if (iceConnectionState == PeerConnection.IceConnectionState.FAILED) {
|
} else if (iceConnectionState == PeerConnection.IceConnectionState.FAILED) {
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_DISCONNECTED,
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PEER_DISCONNECTED,
|
||||||
sessionId, null, null, null));
|
sessionId, null, null, videoStreamType));
|
||||||
if (isMCUPublisher) {
|
if (isMCUPublisher) {
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PUBLISHER_FAILED, sessionId, null, null, null));
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType.PUBLISHER_FAILED, sessionId, null, null, videoStreamType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user