forked from j62/ctbrec
Make sure, the hlsUrl is available, when loading the master playlist
This commit is contained in:
parent
0e627aef12
commit
52016c6a86
|
@ -99,7 +99,7 @@ public class MyFreeCamsModel extends AbstractModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
private MasterPlaylist getMasterPlaylist() throws IOException, ParseException, PlaylistException {
|
private MasterPlaylist getMasterPlaylist() throws IOException, ParseException, PlaylistException {
|
||||||
if(hlsUrl == null) {
|
if(getHlsUrl() == null) {
|
||||||
throw new IllegalStateException("Stream url unknown");
|
throw new IllegalStateException("Stream url unknown");
|
||||||
}
|
}
|
||||||
LOG.trace("Loading master playlist {}", hlsUrl);
|
LOG.trace("Loading master playlist {}", hlsUrl);
|
||||||
|
@ -117,6 +117,14 @@ public class MyFreeCamsModel extends AbstractModel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getHlsUrl() {
|
||||||
|
if(hlsUrl == null) {
|
||||||
|
MyFreeCams mfc = (MyFreeCams) getSite();
|
||||||
|
mfc.getClient().update(this);
|
||||||
|
}
|
||||||
|
return hlsUrl;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void invalidateCacheEntries() {
|
public void invalidateCacheEntries() {
|
||||||
resolution = null;
|
resolution = null;
|
||||||
|
|
Loading…
Reference in New Issue