java.lang.Object
com.gluonhq.attach.video.impl.DefaultVideoService
- All Implemented Interfaces:
VideoService
- Direct Known Subclasses:
AndroidVideoService
,IOSVideoService
-
Property Summary
Properties inherited from interface com.gluonhq.attach.video.VideoService
currentIndex, fullScreen, status
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkFileInResources
(String filePath) protected File
getFileFromAssets
(String filePath) javafx.collections.ObservableList<String>
Returns an observable list with media file names.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.gluonhq.attach.video.VideoService
currentIndexProperty, fullScreenProperty, hide, pause, play, setControlsVisible, setCurrentIndex, setFullScreen, setLooping, setPosition, show, statusProperty, stop
-
Field Details
-
debug
protected final boolean debug -
playlist
-
playlistMap
-
-
Constructor Details
-
DefaultVideoService
public DefaultVideoService()
-
-
Method Details
-
getPlaylist
Description copied from interface:VideoService
Returns an observable list with media file names.Supported formats:
The media files (video and audio) can either be a valid URL or they can be provided in the resources folder.
For example, the following media files:
- /src/main/resources/media1.mp4
- /src/main/resources/video/media2.mp4
- http://www.host.com/media3.mp4
getPlaylist().addAll("media1.mp4", "video/media2.mp4", "http://www.host.com/media3.mp4");
- Specified by:
getPlaylist
in interfaceVideoService
- Returns:
- an
ObservableList
of media file names, either in the resource folder or valid URLs
-
checkFileInResources
-
getFileFromAssets
-