Up to Version code 4
Added to catch nullpointerexception when create media player