@Override
  public JsonObjectBuilder buildJsonObjectBuilder() throws NullPointerException {
    return Json.createObjectBuilder().add("name", this.name).add("filename", this.filename)
      .add("type", this.type.name()).add("duration", this.duration).add("directory", this.directory);
  }
Sets the duration.

@param duration the new duration
KITE-Framework/src/main/java/org/webrtc/kite/config/media/MediaFile.java