MediaCapture.StartRecordToStreamAsync Metode

Definisi

Mulai merekam ke aliran akses acak.

public:
 virtual IAsyncAction ^ StartRecordToStreamAsync(MediaEncodingProfile ^ encodingProfile, IRandomAccessStream ^ stream) = StartRecordToStreamAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile const& encodingProfile, IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream);
function startRecordToStreamAsync(encodingProfile, stream)
Public Function StartRecordToStreamAsync (encodingProfile As MediaEncodingProfile, stream As IRandomAccessStream) As IAsyncAction

Parameter

encodingProfile
MediaEncodingProfile

Profil pengodean untuk rekaman.

stream
IRandomAccessStream

Aliran tempat data gambar ditulis.

Mengembalikan

Mengembalikan objek IAsyncAction yang digunakan untuk mengontrol operasi asinkron.

Atribut

Persyaratan Windows

Kemampuan aplikasi
backgroundMediaRecording microphone webcam

Keterangan

Untuk panduan cara merekam ke file, lihat Pengambilan foto, video, dan audio dasar dengan MediaCapture.

Berlaku untuk