added try/catch for when there is no media playing