Dash-Industry-Forum/dash.js — pull request #308 by bbcrddave (2014-11-24 13:57:55+00:00)
Title: getVideoPlaybackQuality method is not available on HTMLAudioElement

When using instead of , no video playback quality information is available so VideoModelExtensions.getPlaybackQuality would return null. The return value was always assumed to be good which would cause MetricsModel.addDroppedFrames to throw Uncaught TypeError: Cannot read property 'creationTime' of null.

This pr checks that getPlaybackQuality returns something useful and only calls addDroppedFrames if that is the case.