forked from j62/ctbrec
Add comment and log statement
This commit is contained in:
parent
0cb4b3d9a4
commit
c80f81d937
|
@ -332,10 +332,13 @@ public class ThumbCell extends StackPane {
|
||||||
};
|
};
|
||||||
|
|
||||||
private void startPlayer() {
|
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 {
|
try {
|
||||||
StreamInfo streamInfo = Chaturbate.getStreamInfo(model, client);
|
StreamInfo streamInfo = Chaturbate.getStreamInfo(model, client);
|
||||||
if(streamInfo.room_status.equals("public")) {
|
if(streamInfo.room_status.equals("public")) {
|
||||||
|
LOG.debug("Playing {}", streamInfo.url);
|
||||||
Player.play(streamInfo.url);
|
Player.play(streamInfo.url);
|
||||||
} else {
|
} else {
|
||||||
Alert alert = new AutosizeAlert(Alert.AlertType.INFORMATION);
|
Alert alert = new AutosizeAlert(Alert.AlertType.INFORMATION);
|
||||||
|
|
Loading…
Reference in New Issue