From c80f81d93740c3858499b2750c68bfb397aa9ed6 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Tue, 4 Sep 2018 16:27:55 +0200 Subject: [PATCH] Add comment and log statement --- src/main/java/ctbrec/ui/ThumbCell.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/ctbrec/ui/ThumbCell.java b/src/main/java/ctbrec/ui/ThumbCell.java index ff0ae995..9579d59a 100644 --- a/src/main/java/ctbrec/ui/ThumbCell.java +++ b/src/main/java/ctbrec/ui/ThumbCell.java @@ -332,10 +332,13 @@ public class ThumbCell extends StackPane { }; private void startPlayer() { - // TODO if manual choice of stream quality is enabled, do the same thing as starting a download here + // TODO if manual choice of stream quality is enabled, do the same thing as starting a download here?!? + // or maybe not, because the player should automatically switch between resolutions depending on the + // network bandwidth try { StreamInfo streamInfo = Chaturbate.getStreamInfo(model, client); if(streamInfo.room_status.equals("public")) { + LOG.debug("Playing {}", streamInfo.url); Player.play(streamInfo.url); } else { Alert alert = new AutosizeAlert(Alert.AlertType.INFORMATION);