This is called when reaching end of the file of the media. The duration of the media is updated. Fixes #340. Change-Id: I446f2d341b02125d4a7d8c958bda269b5403cb9c