The use-media reference page at site/src/content/docs/reference/use-media.mdx still says Player.useMedia "returns the current HTMLMediaElement". That hasn't been true since #1334 refactored the Media interface for the MediaHost architecture — the hook now returns a Media object, and the underlying DOM element is reached via media.target.
The Basic Usage demo was removed in #1109 because it accessed tagName, currentSrc, videoWidth, and videoHeight directly on the hook result, which no longer typecheck under the new Media shape.
Tasks
The
use-mediareference page atsite/src/content/docs/reference/use-media.mdxstill saysPlayer.useMedia"returns the currentHTMLMediaElement". That hasn't been true since #1334 refactored theMediainterface for the MediaHost architecture — the hook now returns aMediaobject, and the underlying DOM element is reached viamedia.target.The Basic Usage demo was removed in #1109 because it accessed
tagName,currentSrc,videoWidth, andvideoHeightdirectly on the hook result, which no longer typecheck under the newMediashape.Tasks
Mediareturn type and the role ofmedia.targetfor reaching the underlying DOM element.media.target).