public Clip(File sourceFile) {
setClipLocation(sourceFile);
}
public void setClipLocation(File sourceFile) {
media = new Media(sourceFile.toURI().toString());
mediaPlayer = new MediaPlayer(media);
if(media.getDuration() == Duration.UNKNOWN) {
media.durationProperty().addListener((observable, oldValue, newValue) -> {
length.set(media.getDuration().toMillis());
fadeBeginTime.set(media.getDuration().toMillis());