VolumeValue
VideoFrame.VolumeValue property
Returns or sets the exact video volume as a percentage. The value is expressed as a percentage from 0 to 100. Use this property to read or set volume values that are more precise than the predefined levels available through the Volume property. Read/write Single.
public float VolumeValue { get; set; }
Examples
Example:
[C#]
using (Presentation pres = new Presentation("video.pptx"))
{
IVideoFrame videoFrame = (IVideoFrame)pres.Slides[0].Shapes[0];
// Read the current exact volume and set it to 75.5 percent.
float currentVolume = videoFrame.VolumeValue;
videoFrame.VolumeValue = 75.5f;
pres.Save("video_with_volume.pptx", SaveFormat.Pptx);
}
See Also
- class VideoFrame
- namespace Aspose.Slides
- assembly Aspose.Slides