MediaCapture.StartRecordToStorageFileAsync Metode

Definisi

Mulai merekam secara asinkron ke file penyimpanan.

public:
 virtual IAsyncAction ^ StartRecordToStorageFileAsync(MediaEncodingProfile ^ encodingProfile, IStorageFile ^ file) = StartRecordToStorageFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile const& encodingProfile, IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile encodingProfile, IStorageFile file);
function startRecordToStorageFileAsync(encodingProfile, file)
Public Function StartRecordToStorageFileAsync (encodingProfile As MediaEncodingProfile, file As IStorageFile) As IAsyncAction

Parameter

encodingProfile
MediaEncodingProfile

Profil pengodean untuk rekaman.

file
IStorageFile

File penyimpanan tempat gambar disimpan.

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

Lihat juga