lib: export mediaMaxPorts