setMedia() and ResourcePool