navigator.mediaSession.addEventListener is not correct for MacOS 12 beta?

Sample Code for develop in safari to shareplay with others, one step is adopting Coordinator. Source: https://developer.apple.com/videos/play/wwdc2021/10189/

Here is the sample code:

navigator.mediaSession.addEventListener(‘coordinatorchange’, coordinator =>{
	if (coordinator)
		coordinator.join();
	controls.inSessionIcon.style.hidden = !coordinator;
});

But navigator.mediaSession have no API addEventListener. I think it should be

navigator.mediaSession.coordinator.addEventListener

Any one agree with me?

navigator.mediaSession.addEventListener is not correct for MacOS 12 beta?
 
 
Q