Oembed
class Oembed
Format of the Oembed config. Autodiscover allows discovery of all URLs.
Endpoint set to true means autodiscovery for this specific provider is allowed (even if autodiscovery in general has been disabled).
name: Oembed
Oembed:
providers:
'http://.youtube.com/watch':
'http://www.youtube.com/oembed/'
autodiscover:
true
Methods
No description
Gets the autodiscover setting from the config.
Gets providers from config.
Given a response body, determine if there is an autodiscover url
Takes the human-readable URL of an embeddable resource and converts it into an Oembed_Result descriptor (which contains a full Oembed resource URL).
No description
Details
at line 26
static
is_enabled()
at line 33
static
get_autodiscover()
Gets the autodiscover setting from the config.
at line 40
static
get_providers()
Gets providers from config.
at line 122
static bool|string
autodiscover_from_body(string $body)
Given a response body, determine if there is an autodiscover url
at line 149
static
get_oembed_from_url($url, $type = false, array $options = array())
Takes the human-readable URL of an embeddable resource and converts it into an Oembed_Result descriptor (which contains a full Oembed resource URL).