After much research I was able to solve the problem by using this object in windows phone 8
MediaPlayerLauncher mediaPlayerLauncher = new MediaPlayerLauncher();
This object solves the problem for playing videos with all the controls you need in your media player