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); }
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); }
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()); }