PlaybackController will end the stream if it's unfinished
Created by: aescarcha
Ending the stream from PlaybackController when it's supposed to be ended but native element didn't trigger the ended event.
Sometimes the video element stops a few milliseconds before the stream end and the end
event is never fired, but we do fire PLAYBACK_ENDED.
Now we listen for that event in order to pause the player and stop the wallclock interval
Fixes #2593 (closed)