Skip to main content

video_type

Function video_type 

Source
fn video_type(kind: Option<&str>) -> Option<&'static str>
Expand description

Translate an oEmbed video document into the type a preview can carry.

oEmbed hands back an HTML player rather than a media file, so the player type is all a preview can report. Clients read that type on its own to mark the preview playable at the origin.