You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of the expiration attribute currently says:
The time, in milliseconds since 01 January, 1970 UTC, after which the key(s) in the session will no longer be usable to decrypt media data, or NaN if no such time exists, as determined by the CDM.
We should clarify that "no such time exists" includes licenses that (explicitly) never expire. Also, Infinity should never be used.
Note: NaN can be difficult to deal with in JavaScript, but I still think it is the best option. Date(0) and Date(null) both result in the Unix Epoch. Date(undefined) results in an invalid time like Date(NaN), but I don't think Web IDL allows attributes to have the value undefined.
The text was updated successfully, but these errors were encountered:
Fix the definition of expiration to be consistent with the details in
w3c/encrypted-media#58 . In particular, never use infinity.
This means using key status to check if a session is new, rather than
comparing the expiration time to NaN.
Change-Id: Ib1917a34d4dfd0fd29b1c578c6ce60fd996c2698
joeyparrish
added a commit
to shaka-project/shaka-player
that referenced
this issue
May 22, 2015
Fix the definition of expiration to be consistent with the details in
w3c/encrypted-media#58 . In particular, never use infinity.
This means using key status to check if a session is new, rather than
comparing the expiration time to NaN.
Change-Id: Ib1917a34d4dfd0fd29b1c578c6ce60fd996c2698
The definition of the
expiration
attribute currently says:We should clarify that "no such time exists" includes licenses that (explicitly) never expire. Also,
Infinity
should never be used.Note:
NaN
can be difficult to deal with in JavaScript, but I still think it is the best option.Date(0)
andDate(null)
both result in the Unix Epoch.Date(undefined)
results in an invalid time likeDate(NaN)
, but I don't think Web IDL allows attributes to have the valueundefined
.The text was updated successfully, but these errors were encountered: