MediaCapture.StartRecordToStorageFileAsync Méthode

Définition

Démarre l’enregistrement de manière asynchrone dans un fichier de stockage.

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

Paramètres

encodingProfile
MediaEncodingProfile

Profil d’encodage de l’enregistrement.

file
IStorageFile

Fichier de stockage dans lequel l’image est enregistrée.

Retours

Renvoie un objet IAsyncAction utilisé pour contrôler l’opération asynchrone.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
backgroundMediaRecording microphone webcam

Remarques

Pour obtenir des conseils pratiques sur l’enregistrement dans un fichier, consultez Capture photo, vidéo et audio de base avec MediaCapture.

S’applique à

Voir aussi