IVideoFrame

All Implemented Interfaces: com.aspose.slides.IPictureFrame

public interface IVideoFrame extends IPictureFrame

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 abstract 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 abstract 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 abstract boolean getPlayLoopMode()

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

Returns: boolean

setPlayLoopMode(boolean value)

public abstract void setPlayLoopMode(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getHideAtShowing()

public abstract boolean getHideAtShowing()

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

Returns: boolean

setHideAtShowing(boolean value)

public abstract void setHideAtShowing(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getVolume()

public abstract int getVolume()

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

Returns: int

setVolume(int value)

public abstract void setVolume(int value)

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

Parameters:

ParameterTypeDescription
valueint

getPlayMode()

public abstract int getPlayMode()

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

Returns: int

setPlayMode(int value)

public abstract void setPlayMode(int value)

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

Parameters:

ParameterTypeDescription
valueint

getFullScreenMode()

public abstract boolean getFullScreenMode()

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

Returns: boolean

setFullScreenMode(boolean value)

public abstract void setFullScreenMode(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getLinkPathLong()

public abstract 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 abstract 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 abstract IVideo getEmbeddedVideo()

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

Returns: IVideo

setEmbeddedVideo(IVideo value)

public abstract void setEmbeddedVideo(IVideo value)

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

Parameters:

ParameterTypeDescription
valueIVideo

getTrimFromStart()

public abstract 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 abstract 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 abstract float getTrimFromEnd()

Trim end [ms]

Returns: float

setTrimFromEnd(float value)

public abstract void setTrimFromEnd(float value)

Trim end [ms]

Parameters:

ParameterTypeDescription
valuefloat