From 00da359e3ea240c7f33a42cc215e68f34e391994 Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Wed, 18 Oct 2023 19:27:20 +0200 Subject: [PATCH] Update MediaPositionState WebIDL We add default values for position and playbackRate. duration is now unrestricted to allow Infinity and we add a special check for NaN. We do not make duration required so that MediaSession.setPositionState can still take an optional state argument. Fixes https://github.com/w3c/mediasession/issues/303 and https://github.com/w3c/mediasession/issues/252. --- index.bs | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/index.bs b/index.bs index 469078d..c9babdd 100644 --- a/index.bs +++ b/index.bs @@ -879,32 +879,24 @@ interface MediaSession {