VideoFrame

Inheritance: java.lang.Object, com.aspose.slides.Shape, com.aspose.slides.GeometryShape, com.aspose.slides.PictureFrame

All Implemented Interfaces: com.aspose.slides.IVideoFrame

public class VideoFrame extends PictureFrame implements IVideoFrame

Represents a video clip on a slide.

Methods

MethodDescription
getRewindVideo()Determines whether a video is automatically rewinded to start as soon as the movie has finished playing.
setRewindVideo(boolean value)Determines whether a video is automatically rewinded to start as soon as the movie has finished playing.
getPlayLoopMode()Determines whether a video is looped.
setPlayLoopMode(boolean value)Determines whether a video is looped.
getHideAtShowing()Determines whether a VideoFrame is hidden.
setHideAtShowing(boolean value)Determines whether a VideoFrame is hidden.
getVolume()Returns or sets the audio volume.
setVolume(int value)Returns or sets the audio volume.
getPlayMode()Returns or sets the video play mode.
setPlayMode(int value)Returns or sets the video play mode.
getFullScreenMode()Determines whether a video is shown in full screen mode.
setFullScreenMode(boolean value)Determines whether a video is shown in full screen mode.
getLinkPathLong()Returns or sets the name of an video file which is linked to a VideoFrame.
setLinkPathLong(String value)Returns or sets the name of an video file which is linked to a VideoFrame.
getEmbeddedVideo()Returns or sets embedded video object.
setEmbeddedVideo(IVideo value)Returns or sets embedded video object.
getTrimFromStart()Trim start [ms]
setTrimFromStart(float value)Trim start [ms]
getTrimFromEnd()Trim end [ms]
setTrimFromEnd(float value)Trim end [ms]

getRewindVideo()

public final boolean getRewindVideo()

Determines whether a video is automatically rewinded to start as soon as the movie has finished playing. Read/write boolean.

Returns: boolean

setRewindVideo(boolean value)

public final void setRewindVideo(boolean value)

Determines whether a video is automatically rewinded to start as soon as the movie has finished playing. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getPlayLoopMode()

public final boolean getPlayLoopMode()

Determines whether a video is looped. Read/write boolean.

Returns: boolean

setPlayLoopMode(boolean value)

public final void setPlayLoopMode(boolean value)

Determines whether a video is looped. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getHideAtShowing()

public final boolean getHideAtShowing()

Determines whether a VideoFrame is hidden. Read/write boolean.

Returns: boolean

setHideAtShowing(boolean value)

public final void setHideAtShowing(boolean value)

Determines whether a VideoFrame is hidden. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getVolume()

public final int getVolume()

Returns or sets the audio volume. Read/write AudioVolumeMode.

Returns: int

setVolume(int value)

public final void setVolume(int value)

Returns or sets the audio volume. Read/write AudioVolumeMode.

Parameters:

ParameterTypeDescription
valueint

getPlayMode()

public final int getPlayMode()

Returns or sets the video play mode. Read/write VideoPlayModePreset.

Returns: int

setPlayMode(int value)

public final void setPlayMode(int value)

Returns or sets the video play mode. Read/write VideoPlayModePreset.

Parameters:

ParameterTypeDescription
valueint

getFullScreenMode()

public final boolean getFullScreenMode()

Determines whether a video is shown in full screen mode. Read/write boolean.

Returns: boolean

setFullScreenMode(boolean value)

public final void setFullScreenMode(boolean value)

Determines whether a video is shown in full screen mode. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getLinkPathLong()

public final String getLinkPathLong()

Returns or sets the name of an video file which is linked to a VideoFrame. Read/write String.

Returns: java.lang.String

setLinkPathLong(String value)

public final void setLinkPathLong(String value)

Returns or sets the name of an video file which is linked to a VideoFrame. Read/write String.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getEmbeddedVideo()

public final IVideo getEmbeddedVideo()

Returns or sets embedded video object. Read/write IVideo.

Returns: IVideo

setEmbeddedVideo(IVideo value)

public final void setEmbeddedVideo(IVideo value)

Returns or sets embedded video object. Read/write IVideo.

Parameters:

ParameterTypeDescription
valueIVideo

getTrimFromStart()

public final float getTrimFromStart()

Trim start [ms]


Example:
 
 Presentation pres = new Presentation();
 try {
     ISlide slide = pres.getSlides().get_Item(0);
     IVideo video = pres.getVideos().addVideo(videoData);
     IVideoFrame videoFrame = slide.getShapes().addVideoFrame(0, 0, 100, 100, video);
     //set triming start time 1sec
     videoFrame.setTrimFromStart(1000f);
     //set triming end time 2sec
     videoFrame.setTrimFromEnd(2000f);
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: float

setTrimFromStart(float value)

public final void setTrimFromStart(float value)

Trim start [ms]


Example:
 
 Presentation pres = new Presentation();
 try {
     ISlide slide = pres.getSlides().get_Item(0);
     IVideo video = pres.getVideos().addVideo(videoData);
     IVideoFrame videoFrame = slide.getShapes().addVideoFrame(0, 0, 100, 100, video);
     //set triming start time 1sec
     videoFrame.setTrimFromStart(1000f);
     //set triming end time 2sec
     videoFrame.setTrimFromEnd(2000f);
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
valuefloat

getTrimFromEnd()

public final float getTrimFromEnd()

Trim end [ms]

Returns: float

setTrimFromEnd(float value)

public final void setTrimFromEnd(float value)

Trim end [ms]

Parameters:

ParameterTypeDescription
valuefloat