Metadata with oEmbed
Playback does not require oEmbed, but UI often benefits from it.
useYoutubeOEmbed fetches metadata for a YouTube URL and returns:
oEmbedisLoadingerror
Common fields in oEmbed
titlethumbnail_urlauthor_nameauthor_urlprovider_namewidthheight
Good use cases
- show a video title above the player
- render a thumbnail or preview list
- build richer media cards around the player
Keep it optional
Use it as a UI enhancement, not as a requirement for playback.
