-Fixed unavailable current info when initial stream of playlist fails.

pull/680/head
John Zhen M 2017-09-24 21:27:00 -07:00 zatwierdzone przez John Zhen Mo
rodzic c235c647a0
commit 86a1fcf009
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -910,20 +910,20 @@ public abstract class BasePlayer implements Player.EventListener,
return currentState;
}
public String getVideoUrl() {
return currentInfo.url;
}
public long getVideoPos() {
return videoPos;
}
public String getVideoUrl() {
return currentInfo == null ? null : currentInfo.url;
}
public String getVideoTitle() {
return currentInfo.name;
return currentInfo == null ? null : currentInfo.name;
}
public String getUploaderName() {
return currentInfo.uploader_name;
return currentInfo == null ? null : currentInfo.uploader_name;
}
public boolean isCompleted() {