fixing media API to work with cloudlet