MagicPeerConnectionObserver.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Nextcloud Talk application
  3. *
  4. * @author Mario Danic
  5. * Copyright (C) 2017 Mario Danic <mario@lovelyhq.com>
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. package com.nextcloud.talk.webrtc;
  21. import android.util.Log;
  22. import org.webrtc.DataChannel;
  23. import org.webrtc.IceCandidate;
  24. import org.webrtc.MediaStream;
  25. import org.webrtc.PeerConnection;
  26. import org.webrtc.RtpReceiver;
  27. public class MagicPeerConnectionObserver implements PeerConnection.Observer {
  28. private static final String TAG = "MagicPeerConnectionObserver";
  29. @Override
  30. public void onSignalingChange(PeerConnection.SignalingState signalingState) {
  31. Log.d("MARIO", signalingState.name());
  32. }
  33. @Override
  34. public void onIceConnectionChange(PeerConnection.IceConnectionState iceConnectionState) {
  35. }
  36. @Override
  37. public void onIceConnectionReceivingChange(boolean b) {
  38. }
  39. @Override
  40. public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
  41. }
  42. @Override
  43. public void onIceCandidate(IceCandidate iceCandidate) {
  44. }
  45. @Override
  46. public void onIceCandidatesRemoved(IceCandidate[] iceCandidates) {
  47. }
  48. @Override
  49. public void onAddStream(MediaStream mediaStream) {
  50. }
  51. @Override
  52. public void onRemoveStream(MediaStream mediaStream) {
  53. }
  54. @Override
  55. public void onDataChannel(DataChannel dataChannel) {
  56. }
  57. @Override
  58. public void onRenegotiationNeeded() {
  59. }
  60. @Override
  61. public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
  62. }
  63. }