Bug fix for calculating total number of segments. Added events for SourceBufferDataQueue.