public void AddLogoOverlay_Test_Basic() { BrightcoveImage image = new BrightcoveImage(); image.Type = ImageType.LogoOverlay; BrightcoveLogoOverlay logoOverlay = new BrightcoveLogoOverlay(); logoOverlay.Image = image; _api.AddLogoOverlay(logoOverlay, FileToUpload, 1942305739001); // TODO: not sure how to verify this worked other than the lack of error }
private BrightcoveLogoOverlay DoAddLogoOverlay(BrightcoveLogoOverlay logoOverlay, FileUploadInfo fileUploadInfo, long videoId, string videoReferenceId) { string propName; object propValue; GetIdValuesForUpload(videoId, videoReferenceId, "video_id", "video_reference_id", out propName, out propValue); BrightcoveParamCollection parms = CreateWriteParamCollection("add_logo_overlay", methodParams => { methodParams.Add("logooverlay", logoOverlay); methodParams.Add(propName, propValue); }); return RunFilePost<BrightcoveResultContainer<BrightcoveLogoOverlay>>(parms, fileUploadInfo).Result; }
/// <summary> /// Adds a logo overlay image to a video. /// </summary> /// <param name="logoOverlay">The metadata for the logo overlay you'd like to create (or update).</param> /// <param name="fileToUpload">The full path of the file to be uploaded.</param> /// <param name="videoReferenceId">The reference ID of the video you want to assign a logo overlay to.</param> /// <returns>The newly created or updated BrightcoveLogoOverlay</returns> public BrightcoveLogoOverlay AddLogoOverlay(BrightcoveLogoOverlay logoOverlay, string fileToUpload, string videoReferenceId) { using (FileStream fs = File.OpenRead(fileToUpload)) { string fileName = new FileInfo(fileToUpload).Name; return AddLogoOverlay(logoOverlay, new FileUploadInfo(fs, fileName), videoReferenceId); } }
/// <summary> /// Adds a logo overlay image to a video. /// </summary> /// <param name="logoOverlay">The metadata for the logo overlay you'd like to create (or update).</param> /// <param name="fileUploadInfo">Information for the file to be uploaded.</param> /// <param name="videoReferenceId">The reference ID of the video you want to assign a logo overlay to.</param> /// <returns>The newly created or updated BrightcoveLogoOverlay</returns> public BrightcoveLogoOverlay AddLogoOverlay(BrightcoveLogoOverlay logoOverlay, FileUploadInfo fileUploadInfo, string videoReferenceId) { return DoAddLogoOverlay(logoOverlay, fileUploadInfo, -1, videoReferenceId); }
/// <summary> /// Adds a logo overlay image to a video. /// </summary> /// <param name="logoOverlay">The metadata for the logo overlay you'd like to create (or update).</param> /// <param name="fileUploadInfo">Information for the file to be uploaded.</param> /// <param name="videoId">The ID of the video you want to assign a logo overlay to.</param> /// <returns>The newly created or updated BrightcoveLogoOverlay</returns> public BrightcoveLogoOverlay AddLogoOverlay(BrightcoveLogoOverlay logoOverlay, FileUploadInfo fileUploadInfo, long videoId) { return DoAddLogoOverlay(logoOverlay, fileUploadInfo, videoId, null); }
/// <summary> /// Adds a logo overlay image to a video. /// </summary> /// <param name="logoOverlay">The metadata for the logo overlay you'd like to create (or update).</param> /// <param name="fileToUpload">The full path of the file to be uploaded.</param> /// <param name="videoReferenceId">The reference ID of the video you want to assign a logo overlay to.</param> /// <returns>The newly created or updated BrightcoveLogoOverlay</returns> public BrightcoveLogoOverlay AddLogoOverlay(BrightcoveLogoOverlay logoOverlay, string fileToUpload, string videoReferenceId) { return DoAddLogoOverlay(logoOverlay, fileToUpload, -1, videoReferenceId); }
/// <summary> /// Adds a logo overlay image to a video. /// </summary> /// <param name="logoOverlay">The metadata for the logo overlay you'd like to create (or update).</param> /// <param name="fileToUpload">The full path of the file to be uploaded.</param> /// <param name="videoId">The ID of the video you want to assign a logo overlay to.</param> /// <returns>The newly created or updated BrightcoveLogoOverlay</returns> public BrightcoveLogoOverlay AddLogoOverlay(BrightcoveLogoOverlay logoOverlay, string fileToUpload, long videoId) { return DoAddLogoOverlay(logoOverlay, fileToUpload, videoId, null); }