loop and autoplay bugfix
Merge pull request #608 from hiroqn/master

loop and autoplay bugfix