add media api and some examples. reorganize eclipse projects