These two lines should be wrapped in an `if` statement to prevent them being called when the timeline is not scrolling.  Scrolling the timeline is a major performance hit, and is likely the cause of autoplay not working.