Skip to content

Docs: Update use-media Reference Page for MediaHost Architecture #1405

@decepulis

Description

@decepulis

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

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions