forked from j62/ctbrec
Fix CamSoda recordings
This commit is contained in:
parent
e202c946ac
commit
c50519be82
|
@ -158,7 +158,11 @@ public class CamsodaModel extends AbstractModel {
|
|||
if (oldStreamUrl && chat.has(EDGE_SERVERS)) {
|
||||
String edgeServer = chat.getJSONArray(EDGE_SERVERS).getString(0);
|
||||
String streamName = chat.getString(STREAM_NAME);
|
||||
streamUrl = "https://" + edgeServer + "/cam/mp4:" + streamName + "_h264_aac_480p/playlist.m3u8";
|
||||
if(streamName.contains("/")) {
|
||||
streamUrl = "https://" + edgeServer + "/" + streamName + "/index.m3u8";
|
||||
} else {
|
||||
streamUrl = "https://" + edgeServer + "/cam/mp4:" + streamName + "_h264_aac_480p/playlist.m3u8";
|
||||
}
|
||||
}
|
||||
setOnlineStateByStatus(status);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue