Extra details on media errors from a Tech component are lost when propagated to the Player instance. For example, custom error messages are lost and always use the default message based on the error's code.
This example on JSBin registers a dummy MyTech tech. In its play() function, it immediately calls error() with a custom error object:
message: 'Custom error message'
The player shows an error with the message: "Custom error message"
The player shows an error with the default message for this media error code: "The media could not be loaded, either because the server or network failed or because the format is not supported."
Player.handleTechError_ is changed to pass the whole error object to Player.error, instead of only passing error.code. This ensures that additional details (such as error messages) are retained.
Retain details from tech error.
Makes sense to me. LGTM.
LGTM as well
@MattiasBuelens Retain details from tech error. closes #3313