Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalCameraMedia"/> class.
 /// </summary>
 /// <param name="context">The Android context.</param>
 /// <param name="disableAudio">Whether to disable audio.</param>
 /// <param name="disableVideo">Whether to disable video.</param>
 /// <param name="aecContext">The AEC context, if using software echo cancellation.</param>
 public LocalCameraMedia(Android.Content.Context context, bool disableAudio, bool disableVideo, AecContext aecContext)
     : base(context, disableAudio, disableVideo, aecContext)
 {
     _preview = new FM.IceLink.Android.CameraPreview(context, LayoutScale.Contain);
     Initialize();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalCameraMedia"/> class.
 /// </summary>
 /// <param name="disableAudio">Whether to disable audio.</param>
 /// <param name="disableVideo">Whether to disable video.</param>
 /// <param name="aecContext">The AEC context, if using software echo cancellation.</param>
 public LocalCameraMedia(bool disableAudio, bool disableVideo, AecContext aecContext)
     : base(disableAudio, disableVideo, aecContext)
 {
     _preview = new AVCapturePreview();
     Initialize();
 }