changed videoplay function

previous function does not work on mobile. trying to fix