java.lang.Object | ||
↳ | com.neomades.ui.View | |
↳ | com.neomades.ui.VideoView |
Plays a video inside the application. The video can come from the internet, or from the file system.
In NeoMAD, we recommend using formats supported by all platforms that is to say:
VideoView
is available only for Android and iOS.
[Expand]
Inherited XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VideoView() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
canPause()
Returns
true if the player can pause the video. | ||||||||||
boolean |
canSeekBackward()
Returns
true if the player can go backward. | ||||||||||
boolean |
canSeekForward()
Returns
true if the player can go forward. | ||||||||||
int |
getCurrentPosition()
Returns the current playback time of the video, in ms.
| ||||||||||
int |
getDuration()
Returns the duration of the video, in ms.
| ||||||||||
boolean |
isPlaying()
Returns true if the video is currently playing.
| ||||||||||
void |
pause()
Pauses the playback of the video.
| ||||||||||
void |
resume()
Resumes the playback of the video.
| ||||||||||
void |
setVideoFilePath(String path)
Sets the path of the video, assuming the video is stored in the file system.
| ||||||||||
void |
setVideoURLPath(String path)
Sets the path of the video, assuming the path is a valid URL.
| ||||||||||
void |
start()
Starts the playback of the video.
| ||||||||||
void |
stopPlayback()
Stops the playback of the video.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns true
if the player can pause the video.
Returns true
if the player can go backward.
Returns true
if the player can go forward.
Returns the current playback time of the video, in ms.
Returns the duration of the video, in ms.
Returns true if the video is currently playing.
Pauses the playback of the video.
Resumes the playback of the video.
Sets the path of the video, assuming the video is stored in the file system.
Use getAbsolutePath()
to get a correct path
path | the path of the video stored in a file |
---|
Sets the path of the video, assuming the path is a valid URL. An HTTP url can be specified here.
path | the URL path of the video |
---|
Starts the playback of the video.
Stops the playback of the video.