Skip to content

asciinema oembed doesn't provide the player #328

@damageboy

Description

@damageboy

The asciinema oEmbed support provides the following json, as an example:

{
  "type": "rich",
  "version": 1,
  "title": "DevStats async loading, interactive mode and caching",
  "author_name": "shroudedcode",
  "author_url": "https://asciinema.org/~shroudedcode",
  "provider_name": "asciinema",
  "provider_url": "https://asciinema.org/",
  "thumbnail_url": "https://asciinema.org/a/170671.png",
  "thumbnail_width": 644,
  "thumbnail_height": 632,
  "html": "<a href=\"https://asciinema.org/a/170671\" target=\"_blank\"><img alt=\"DevStats async loading, interactive mode and caching\" src=\"https://asciinema.org/a/170671.png\" width=\"644\" /></a>",
  "width": 644,
  "height": 632
}

As it can be easily seen the html portion of the oEmbed doesn't actually embed a player, but rather embeds a link to the asciinema site...

Is there a reason no to embed the player through an iframe as, for example youtube does?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions