You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to mute the local audio and video on my Xamarin app. Based on WebRTC documentation found elsewhere, this should work to mute and unmute during each invocation. The localAudioTrack.Enabled propery gets set properly in the debugger, but on the next invocation the Enabled property doesn't retain the setting. Am I doing it the wrong way?
`private void ToggleMute()
{
var userMedia = await WebRTCme.CrossWebRtc.Current.Window().Navigator().MediaDevices.GetUserMedia(_constraints);
var localAudioTrack = userMedia.GetAudioTracks()[0];
localAudioTrack.Enabled = !localAudioTrack.Enabled;
}`
The text was updated successfully, but these errors were encountered:
On the Blazor side, the above code gives a not implemented exception which I believe is happening in WebRTCme.Blazor.Custom.WebRtc.cs. It looks like it's the conditional compilation below. Is this really necessary for the Blazor implementation?
`
internal class WebRtc : IWebRtc
{
public static IWebRtc Create() => new WebRtc();
public void Dispose()
{
}
#if NETSTANDARD
public IWindow Window(IJSRuntime jsRuntime) => throw new NotImplementedException();
#else
public IWindow Window(IJSRuntime jsRuntime) => WebRTCme.Bindings.Blazor.Api.Window.Create(jsRuntime);
#endif
}
`
Your work on this is BRILLIANT!!!! Thank-you.
I'm trying to mute the local audio and video on my Xamarin app. Based on WebRTC documentation found elsewhere, this should work to mute and unmute during each invocation. The localAudioTrack.Enabled propery gets set properly in the debugger, but on the next invocation the Enabled property doesn't retain the setting. Am I doing it the wrong way?
`private void ToggleMute()
{
var userMedia = await WebRTCme.CrossWebRtc.Current.Window().Navigator().MediaDevices.GetUserMedia(_constraints);
var localAudioTrack = userMedia.GetAudioTracks()[0];
localAudioTrack.Enabled = !localAudioTrack.Enabled;
}`
The text was updated successfully, but these errors were encountered: