From ffff948dca738039bab2f3475c0f3fb5b329a74b Mon Sep 17 00:00:00 2001 From: Merudo Date: Thu, 17 Oct 2019 14:41:08 -0500 Subject: [PATCH] Fix getStreamProps() returning malformed JSON - Remove incorrect space in front of getStreamProperties values - Close #803 --- .../maptool/client/functions/MediaPlayerAdapter.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/rptools/maptool/client/functions/MediaPlayerAdapter.java b/src/main/java/net/rptools/maptool/client/functions/MediaPlayerAdapter.java index f0a7a23a2a..70dbcae6e0 100644 --- a/src/main/java/net/rptools/maptool/client/functions/MediaPlayerAdapter.java +++ b/src/main/java/net/rptools/maptool/client/functions/MediaPlayerAdapter.java @@ -332,12 +332,12 @@ private JSONObject getInfo() { info.put("uri", strUri); info.put("cycleCount", player.getCycleCount()); info.put("volume", volume); - info.put("startTime", " " + player.getStartTime().toSeconds()); - info.put("stopTime", " " + objStop); - info.put("currentTime", " " + player.getCurrentTime().toSeconds()); - info.put("totalTime", " " + objTotal); - info.put("bufferTime", " " + player.getBufferProgressTime().toSeconds()); - info.put("currentCount", " " + player.getCurrentCount()); + info.put("startTime", player.getStartTime().toSeconds()); + info.put("stopTime", objStop); + info.put("currentTime", player.getCurrentTime().toSeconds()); + info.put("totalTime", objTotal); + info.put("bufferTime", player.getBufferProgressTime().toSeconds()); + info.put("currentCount", player.getCurrentCount()); info.put("status", player.getStatus().toString()); return info; } catch (Exception e) {