Added Content-Duration header to livepeer process
This commit is contained in:
parent
160ced3eac
commit
3cc258834c
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ namespace Mist{
|
||||||
retry = false;
|
retry = false;
|
||||||
HTTP::URL target(currBroadAddr+"/live/"+lpID+"/"+JSON::Value(keyCount).asString()+".ts");
|
HTTP::URL target(currBroadAddr+"/live/"+lpID+"/"+JSON::Value(keyCount).asString()+".ts");
|
||||||
upper.setHeader("Accept", "multipart/mixed");
|
upper.setHeader("Accept", "multipart/mixed");
|
||||||
|
uint64_t segDuration = thisPacket.getTime() - segTime;
|
||||||
|
upper.setHeader("Content-Duration", JSON::Value(segDuration).asString());
|
||||||
if (upper.post(target, tsPck, tsPck.size())){
|
if (upper.post(target, tsPck, tsPck.size())){
|
||||||
if (upper.getStatusCode() == 200){
|
if (upper.getStatusCode() == 200){
|
||||||
HIGH_MSG("Uploaded %zu bytes to %s", tsPck.size(), target.getUrl().c_str());
|
HIGH_MSG("Uploaded %zu bytes to %s", tsPck.size(), target.getUrl().c_str());
|
||||||
|
|
Loading…
Add table
Reference in a new issue