Try if changing the JS to poll the Flash engine for status will improve ...

...playback smoothness.