/// <inheritdoc/> public void UnregisterCallback(AudioFrameDelegate callback) { if (Track != null) { Track.AudioFrameReady -= callback; } }
/// <summary> /// Register a frame callback to listen to outgoing audio data produced by this audio sender /// and sent to the remote peer. /// /// <div class="WARNING alert alert-warning"> /// <h5>WARNING</h5> /// <p> /// Currently the low-level WebRTC implementation does not support registering local audio callbacks, /// therefore this is not implemented and will throw a <see cref="System.NotImplementedException"/>. /// </p> /// </div> /// </summary> /// <param name="callback">The new frame callback to register.</param> /// <remarks> /// Unlike for video, where a typical application might display some local feedback of a local /// webcam recording, local audio feedback is rare, so this callback is not typically used. /// One possible use case would be to display some visual feedback, like an audio spectrum analyzer. /// /// Note that registering a callback does not influence the audio capture and sending to the /// remote peer, which occur whether or not a callback is registered. /// </remarks> public void RegisterCallback(AudioFrameDelegate callback) { throw new NotImplementedException("Local audio callbacks are not currently implemented."); }