Add comment and log statement

This commit is contained in:
0xboobface 2018-09-04 16:27:55 +02:00
parent 0cb4b3d9a4
commit c80f81d937
1 changed files with 4 additions and 1 deletions

View File

@ -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);