added support for handling audio data after the video is finished.