Fixed VoD stream status resetting improperly.
This commit is contained in:
parent
48c296fc3c
commit
5612f83db6
2 changed files with 8 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
||||||
*.[oa]
|
*.[oa]
|
||||||
*.la
|
*.la
|
||||||
*.lo
|
*.lo
|
||||||
|
*.swp
|
||||||
*~
|
*~
|
||||||
.deps
|
.deps
|
||||||
Makefile
|
Makefile
|
||||||
|
|
|
@ -60,8 +60,13 @@ namespace Controller {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cmd1 = "cat " + URL;
|
cmd1 = "cat " + URL;
|
||||||
|
if (Util::epoch() - lastBuffer[name] > 5){
|
||||||
data["error"] = "Available";
|
data["error"] = "Available";
|
||||||
data["online"] = 2;
|
data["online"] = 2;
|
||||||
|
}else{
|
||||||
|
data["online"] = 1;
|
||||||
|
data.removeMember("error");
|
||||||
|
}
|
||||||
return; //MistPlayer handles VoD
|
return; //MistPlayer handles VoD
|
||||||
}else{
|
}else{
|
||||||
cmd1 = "ffmpeg -re -async 2 -i " + URL + " -f flv -";
|
cmd1 = "ffmpeg -re -async 2 -i " + URL + " -f flv -";
|
||||||
|
|
Loading…
Add table
Reference in a new issue