Fix handling of live/recorded in bootstrap generation.
This commit is contained in:
parent
3949f6282c
commit
622b3ca100
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ namespace Connector_HTTP{
|
||||||
abst.AddSegmentRunTable(&asrt);
|
abst.AddSegmentRunTable(&asrt);
|
||||||
abst.SetBootstrapVersion(1);
|
abst.SetBootstrapVersion(1);
|
||||||
abst.SetProfile(0);
|
abst.SetProfile(0);
|
||||||
if (metadata.isMember("length")){
|
if (metadata.isMember("length") && metadata["length"].asInt() > 0){
|
||||||
abst.SetLive(false);
|
abst.SetLive(false);
|
||||||
abst.SetMediaTime(1000*metadata["length"].asInt());
|
abst.SetMediaTime(1000*metadata["length"].asInt());
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Add table
Reference in a new issue