Пример #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);
}
Пример #2
0
void StatusWriter::videoLostRate(const Publication& publication) {
	AMFWriter& writer = writeAMFMessage("status");
	writer.beginObject();
		writer.writeObjectProperty("type","vQOS");
		writer.beginSubObject("publication");
			writer.writeObjectProperty("id",publication.publisherId());
			writer.writeObjectProperty("vLost",publication.videoQOS().lostRate);
			writer.writeObjectProperty("vLatency",publication.videoQOS().latency);
		writer.endObject();
	writer.endObject();
	flush(true);
}
Пример #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());
}