Closed amtins closed 7 months ago
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 98.39% | 489/497 |
π’ | Branches | 93.44% | 228/244 |
π’ | Functions | 100% | 136/136 |
π’ | Lines | 99.16% | 473/477 |
153 tests passing in 9 suites.
Report generated by π§ͺjest coverage report action from 9a4a9edbcc5296f93b834b304ec643fa9e902f26
Description
Video.js in version 8.11.1 offers the possibility of providing more detail when an error occurs. To this end, the
metadata
property, which is an object, has been added. This object also has anerrorType
property, giving more context on the error that has occurred. Finally, themetadata
object can host any othercustom property
.Pillarbox has a similar mechanism, except that instead of naming the
metadata
property, it's calledcause
and has atype
property. The termcause
has been borrowed directly from theError
object, so as not to introduce a new term.However, to remain consistent with video.js, the term
cause
has been dropped in favor ofmetadata
.Changes made