Skip to main content

VideoPlayer

Complete API reference for VideoPlayer, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Sound

Component: yes


public class VideoPlayer extends Component

Constructors

SignatureDescription
VideoPlayer(VideoPlayer)Executes VideoPlayer and returns after the underlying engine call finishes.
VideoPlayer()Executes VideoPlayer and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
componentVideoPlayerRepresents the component value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
loopbooleanget/setVirtual attribute exposed by isLoop. Access it like a field to read or write the underlying value.
pausedbooleangetVirtual attribute exposed by isPaused. Access it like a field to read or write the underlying value.
playingbooleangetVirtual attribute exposed by isPlaying. Access it like a field to read or write the underlying value.
stoppedbooleangetVirtual attribute exposed by isStopped. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
setVideoFile(VideoFile)voidSets or updates the video file.
setVideoFile(File)voidSets or updates the video file.
setOutputVideoFile(OutputVideoFile)voidSets or updates the output video file.
setOutputVideoFile(File)voidSets or updates the output video file.
play()voidExecutes play and returns after the underlying engine call finishes.
stop()voidExecutes stop and returns after the underlying engine call finishes.
pause()voidExecutes pause and returns after the underlying engine call finishes.
unPause()voidExecutes unPause and returns after the underlying engine call finishes.
seekTo(int)voidPerforms the seekTo operation using the provided parameters (miliSeconds).
componentClassMatch(Component, Component)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.