Added code for playing video