set_VolumeValue()

VideoFrame::set_VolumeValue(float) method

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. Write float.

void Aspose::Slides::VideoFrame::set_VolumeValue(float value) override

Remarks

Example:

auto pres = System::MakeObject<Presentation>(u"video.pptx");
auto videoFrame = System::ExplicitCast<IVideoFrame>(pres->get_Slide(0)->get_Shape(0));

// Read the current exact volume and set it to 75.5 percent.
float currentVolume = videoFrame->get_VolumeValue();
videoFrame->set_VolumeValue(75.5f);

pres->Save(u"video_with_volume.pptx", SaveFormat::Pptx);

See Also