Exposes the simulcast part of COLIBRI through the JSON API.

fix-message-formatting 5278
George Politis 11 years ago
parent 8f63f26ae3
commit 8f95ad61d6

@ -54,6 +54,14 @@ public String getSemantics()
return getAttributeAsString(SEMANTICS_ATTR_NAME); return getAttributeAsString(SEMANTICS_ATTR_NAME);
} }
/**
* Sets the semantics of this source group.
*/
public void setSemantics(String semantics)
{
this.setAttribute(SEMANTICS_ATTR_NAME, semantics);
}
/** /**
* Gets the sources of this source group. * Gets the sources of this source group.
* *
@ -63,4 +71,19 @@ public List<SourcePacketExtension> getSources()
{ {
return getChildExtensionsOfType(SourcePacketExtension.class); return getChildExtensionsOfType(SourcePacketExtension.class);
} }
/**
* Sets the sources of this source group.
*
* @param sources the sources of this source group.
*/
public void addSources(List<SourcePacketExtension> sources)
{
if (sources != null && sources.size() != 0)
{
for (SourcePacketExtension source : sources)
this.addChildExtension(source);
}
}
} }

Loading…
Cancel
Save