adding play pause state change

when the video is auto played on load, change the button state to playing