Questions tagged [oembed]

oEmbed is an open format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

oEmbed is an open format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

Project homepage: oembed.com

246 questions
3
votes
1 answer

CORS error with window.fetch on YouTube resource

I'm using window.fetch to retrieve a YouTube resource with the following URL: http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=[id]&format=json Using Fiddler, I see that I am getting the expected reply from YouTube's servers…
Jonas Arcangel
  • 2,085
  • 11
  • 55
  • 85
3
votes
1 answer

oEmbed Field in SilverStripe 3

I'm trying to figure out if there's a possibility to use SilverStripe's oEmbed functionality without the WYSIWYG editor. Sadly I just could find this in the SS docs. So is there a way to enable that functionality for example for a TextField?
csy_dot_io
  • 1,199
  • 6
  • 19
3
votes
1 answer

WordPress oEmbed not working for get_the_content() stored in variable

In a custom WordPress theme, I am using WP_Query to pull custom post type info on the home page. I am storing some data in variables, ending the custom query and loop, resetting the query, and then calling the variables later in the page. oEmbed is…
pigstake
  • 33
  • 6
3
votes
2 answers

Does Spotify offer an oEmbed API endpoint for their Spotify "Play Button" embed?

Does Spotify offer an oembed API endpoint for their Spotify Playbutton? https://developer.spotify.com/technologies/spotify-play-button/
David Barratt
  • 546
  • 1
  • 6
  • 24
3
votes
2 answers

How to correctly use oembed to pull thumbs from youtube

I show a lot of thumbs on my homepage from youtube videos. I was using this function below to grab the thumb from a youtube url which works fast but it doesn't work for url's in the shortned form like youtu.be/JSHDLSKL. function…
Pollux Khafra
  • 862
  • 5
  • 17
  • 32
2
votes
0 answers

HTTP 401 Error while trying to read data from Vimeo's oEmbed endpoint

To embed videos provided from Vimeo/Youtube/Dailymotion.. I'm "grabbing" data using oEmbed standard. This works fine for Youtube, Dailymotion and Soundcloud but not with Vimeo. Should I get authenticated to get this data? Here is how I am managing…
Anas
  • 1,761
  • 1
  • 13
  • 22
2
votes
1 answer

Implementing own oembed provider - how to test?

I have created a video streaming site, so thought I'd try to implement my own oembed provider for this site. After reading the oembed specs and testing you tube and vimeo's own oembed endpoints I have implemented one for my site. Now as far as I…
2
votes
0 answers

Why Wordpress Gutenberg oEmbed return 404 or "oembed_invalid_url"

I have wordpress deployed on subdirectory, like this: example.com example.com/blog on number 2, when i tried to embed video from youtube (i already check that video could be embed) the oEmbed API give 404 when process it with message…
2
votes
1 answer

Custom oembed provider not getting added to Wordpress

What I want to achieve I want to add a custom oembed provider to my wordpress site. The custom oembed provider is my own web app. What I have implemented I have added the following code to the functions.php file of my theme, following the official…
2
votes
0 answers

Why does this Instagram oEmbed html not fit in Swift WKWebView?

I am having trouble getting the entire Instagram embed html to render inside this WKWebView. The following url is being use to query the api: /instagram_oembed?url=https://www.instagram.com/p/B4x4RtagRoH/?igshid=rmiahm71silp&maxwidth=658 The…
Weston Mitchell
  • 192
  • 1
  • 12
2
votes
1 answer

Size of Embedded Instagram Post

I followed these instructions (https://developers.facebook.com/docs/instagram/oembed/) to embed an instagram photo into my iOS Swift application. However, the instagram post does not fit the width of its container as promised in the…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
2
votes
2 answers

Why won't my Gutenberg Instagram embed block work on front end when it works in the editor?

I'm embedding Instagram posts into the Wordpress Gutenberg editor using the Instagram block. Works fine in the editor, and the post embeds without any issues. On the front end, however, the Instagram link just sits there as text with no sign of any…
2
votes
0 answers

SoundCloud SC.oEmbed returns html iframe with 404

I'm trying to stream a track from soundcloud using their Javascript API, but I keep getting a 404 when asking for the stream url: SC.oEmbed(track_url, { auto_play: false }).then(function(oEmbed) { var iframeContainer =…
2
votes
0 answers

Is there a way to know when a facebook embed is done loading?

Just trying to figure out if there's some type of javascript I can run that tells me exactly when the html is done being loaded. We use iframely to embed social media posts. The result is something like this
jdmdevdotnet
  • 1
  • 2
  • 19
  • 50
2
votes
5 answers

WP Oembed not passing through the “autoplay=1” variable

I'm having this problem. I am passing this through a custom field here (notice the "autoplay=1") But when I load the video on my theme using wp_oembed_get... it displays the video fine, but it does not listen to the autoplay=1 variable I am passing…
criticerz
  • 3,397
  • 3
  • 23
  • 24