added flag to freeze video frame at playback end