added seek and getframeposition functions for playback