UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
UploadMedia(String,String) Method
The URL, including the extention, of the media file (image or video). Supported formats: JPG, GIF, PNG, BMP, TIF (iOS only), MP4, 3GP (Android only), MKV (Android only), MOV (iOS only), M4V (iOS only).
The unique ID of the uploaded media. The ID is used to start the simulation using IApplication.StartCameraSimulationMode.
Upload a media file to the device for camera or video simulation. The files are deleted when the device is released.
Syntax
void UploadMedia( 
   string mediaUrl,
   string mediaID
)

Parameters

mediaUrl
The URL, including the extention, of the media file (image or video). Supported formats: JPG, GIF, PNG, BMP, TIF (iOS only), MP4, 3GP (Android only), MKV (Android only), MOV (iOS only), M4V (iOS only).
mediaID
The unique ID of the uploaded media. The ID is used to start the simulation using IApplication.StartCameraSimulationMode.