Modes - DreamTeamMobile/Xamarin.AntMedia.Samples GitHub Wiki

SDK Supports next WebRTC Modes

  • P2P (Join)
  • Publish
  • Playing

Publish/ Playing

if you using Publish or Playing - all is easy, you just have 1 peer connection per 1 AntWebRTCView, and you can only play or publish throw that connection, you can also can change mode from publish to play in that AntWebRTCView

in that modes you can use AntManager to control Start/Stop/Init, or you can call AntWebRTCView Init/Start/Stop methods, or You can semi-automate or automate by setting InitMode for your AntWebRTCView

P2P

that is mode where you can play an publish throw 1 peer connection, you can use it only with InitMode == Manual of AntWebRTCView in that mode you need to add 2 AntWebRTCView to UI with same StreamId, but diferent P2PMode

then you need to manually call Init in AntManager, you can't control via AntWebRTCView in that mode. Init, Start, Stop, SendMessage is calling on AntManager instance in P2P mode.