if we stopped media player  and set the url again  then only this work fine . So i make a common function for this