To write a camera can running on all the platform