Class DefaultVideoService

    • Field Detail

      • debug

        protected final boolean debug
      • playlist

        protected final javafx.collections.ObservableList<java.lang.String> playlist
      • playlistMap

        protected final java.util.Map<java.lang.String,​java.lang.Boolean> playlistMap
    • Constructor Detail

      • DefaultVideoService

        public DefaultVideoService()
    • Method Detail

      • getPlaylist

        public javafx.collections.ObservableList<java.lang.String> 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
        can be added to the playlist as follows:
         getPlaylist().addAll("media1.mp4", "video/media2.mp4",
         "http://www.host.com/media3.mp4");
         
        Specified by:
        getPlaylist in interface VideoService
        Returns:
        an ObservableList of media file names, either in the resource folder or valid URLs
      • checkFileInResources

        protected boolean checkFileInResources​(java.lang.String filePath)
      • getFileFromAssets

        protected java.io.File getFileFromAssets​(java.lang.String filePath)