private async Task StartRecordToCustomSink() { MediaEncodingProfile mep = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Qvga); mep.Video.FrameRate.Numerator = 15; mep.Video.FrameRate.Denominator = 1; mep.Container = null; await device.StartRecordingAsync(mep); }
private async Task StartRecordingToCustomSink() { // Use the MP4 preset to an obtain H.264 video encoding profile var mep = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Vga); mep.Audio = null; mep.Container = null; if (previewEncodingProperties != null) { mep.Video.Width = previewEncodingProperties.Width; mep.Video.Height = previewEncodingProperties.Height; } await device.StartRecordingAsync(mep); }
private async Task StartRecordToCustomSink() { MediaEncodingProfile mep = getSelectedProfile(); if (mep == null) { NotifyUser("No valid date is found when try to choose video record format.", NotifyType.ErrorMessage); await EndRecording(); } previewElement.Source = device.CaptureSource; await device.CaptureSource.StartPreviewAsync(); await device.StartRecordingAsync(mep); _isRecording = true; }