me.mattstudios.holovid.download.VideoProcessor.play()

Here are the examples of the java api me.mattstudios.holovid.download.VideoProcessor.play() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

13 Source : Holovid.java
with MIT License
from Holovid

public void playVideoFromSave(final Player player, final File videoFile, final File dataFile, final boolean interlace) {
    final YamlConfiguration dataConfig = YamlConfiguration.loadConfiguration(dataFile);
    final URL url;
    try {
        url = new URL(dataConfig.getString("video-url"));
    } catch (final MalformedURLException e) {
        e.printStackTrace();
        return;
    }
    stopDownload();
    stopDisplayTask();
    final int fps = dataConfig.getInt("fps");
    final int frames = dataConfig.getInt("frames");
    final int height = dataConfig.getInt("height");
    final int width = dataConfig.getInt("width");
    final boolean requestSoundData = frames / fps < Holovid.MAX_SECONDS_FOR_AUDIO;
    Task.async(() -> videoProcessor.play(player, videoFile, url, requestSoundData, height, width, frames, fps, interlace));
}