Example #1
0
void StatusWriter::writePublicationContent(const Publication& publication,AMFWriter& writer) {
	writer.writeObjectProperty("id",publication.publisherId());
	writer.writeObjectProperty("name",publication.name());
	writer.writeObjectProperty("listeners",publication.listeners.count());
	writer.writeObjectProperty("vLost",publication.videoQOS().lostRate);
	writer.writeObjectProperty("aLost",publication.audioQOS().lostRate);
	writer.writeObjectProperty("vLatency",publication.videoQOS().latency);
	writer.writeObjectProperty("aLatency",publication.audioQOS().latency);
	writer.writeObjectProperty("df",publication.videoQOS().droppedFrames);
}
Example #2
0
void StatusWriter::audioLostRate(const Publication& publication) {
	AMFWriter& writer = writeAMFMessage("status");
	writer.beginObject();
		writer.writeObjectProperty("type","aQOS");
		writer.beginSubObject("publication");
			writer.writeObjectProperty("id",publication.publisherId());
			writer.writeObjectProperty("aLost",publication.audioQOS().lostRate);
			writer.writeObjectProperty("aLatency",publication.audioQOS().latency);
		writer.endObject();
	writer.endObject();
	flush(true);
}
Example #3
0
void LUAPublication::Clear(lua_State* pState, Publication& publication) {
	Script::ClearObject<LUAQualityOfService>(pState, publication.dataQOS());
	Script::ClearObject<LUAQualityOfService>(pState, publication.audioQOS());
	Script::ClearObject<LUAQualityOfService>(pState, publication.videoQOS());
}