Cache oembed response or document getting title from media.

Created on 31 October 2023, about 1 year ago

Problem/Motivation

For accessibility purposes "an embedded video from youtube" isn't cutting it anymore. I've looked into ways that I could either do the following:

  • - Cache the title from the youtube oEmbed API so on each render (when CDN doesn't have it cached) I get a cached oembed response rather than having to call the API each time.
  • - Is there a way to get the associated title of the media? for example `media/40981` has a page name / title of "Hello world" however I'm unsure how to access it from the custom provider I've created (extends ProviderPluginBase)

Proposed resolution

  • Document how I can retrieve the medias title from ProviderPluginBase.
  • Provide a method of caching the oEmbed response (relying on Youtubes / any third party oEmbed) endpoint to always be working scares me.
📌 Task
Status

Active

Version

2.0

Component

Documentation

Created by

ian-dev Sheffield, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024