add media phone gap support