fixed a bug with setting the live flag in the metadata (embed)
This commit is contained in:
parent
fa727cdffe
commit
31b981dc1c
2 changed files with 14 additions and 11 deletions
|
@ -63,14 +63,17 @@ namespace Buffer {
|
||||||
Storage["totals"]["count"] = tot_count;
|
Storage["totals"]["count"] = tot_count;
|
||||||
Storage["totals"]["now"] = now;
|
Storage["totals"]["now"] = now;
|
||||||
Storage["buffer"] = name;
|
Storage["buffer"] = name;
|
||||||
///\todo Fixme
|
|
||||||
// Storage["meta"] = Strm->metadata;
|
Storage["meta"] = Strm->metadata;
|
||||||
if (Storage["meta"].isMember("audio")){
|
|
||||||
Storage["meta"]["audio"].removeMember("init");
|
if(Storage["meta"].isMember("tracks") && Storage["meta"]["tracks"].size() > 0){
|
||||||
}
|
for(JSON::ObjIter it = Storage["meta"]["tracks"].ObjBegin(); it != Storage["meta"]["tracks"].ObjEnd(); it++){
|
||||||
if (Storage["meta"].isMember("video")){
|
it->second.removeMember("init");
|
||||||
Storage["meta"]["video"].removeMember("init");
|
it->second.removeMember("keys");
|
||||||
|
it->second.removeMember("frags");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = Storage.toString();
|
ret = Storage.toString();
|
||||||
Storage["log"].null();
|
Storage["log"].null();
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -139,10 +139,10 @@ function mistembed(streamname)
|
||||||
}else{
|
}else{
|
||||||
// no error, and sources found. Check the video types and output the best
|
// no error, and sources found. Check the video types and output the best
|
||||||
// available video player.
|
// available video player.
|
||||||
var i, video,
|
var i,
|
||||||
vtype = video.type ? video.type : 'unknown';
|
vtype = (video.type ? video.type : 'unknown'),
|
||||||
foundPlayer = false,
|
foundPlayer = false,
|
||||||
len = video.source.length;
|
len = video.source.length;
|
||||||
|
|
||||||
for(i = 0; i < len; i++)
|
for(i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue