Create some new functions for media player and need debug