bug 889164 updating slider position when streaming  player is ended

HI David,

I have moved a slider updating code into a separate function (updateSlider()). This function will be called from timeUpdated event and player ended event.

Please review.