Understanding embed links - html

In HTML we have tag to make an embed for your page in other pages, but I was wondering for how when you share a Youtube link on whatsapp or Spotify song link on telegram, you get a small player like you embedded that site in the message.
How is that possible?
How can I implement this feature into my site.
I searched google and MDN for this but no result.

Related

Discord Plays Embedded Videos That Don't Allow Embedding, How?

I'm trying to create a website using angularJS and I want to show youtube videos. So I have setup the means to do that, but some videos don't allow embedding and say "Video Unavailable" only when you press Play. However, when I post the exact same links into discord through Chrome, they do play. Looking through the DOM tree, I can see Discord embeds those same videos using an iframe and Discord CAN play them. I've had a look at the YouTube API and can't seem to see anything on it, anyone know how Discord does this?
This video allows embedding: https://www.youtube.com/embed/zoSJ3bNGPp0.
While this one doesn't: https://www.youtube.com/embed/JfJYHfrOGgQ

How can I embed a youtube feed?

I want to embed the youtube upload page of my channel on my website.
I would like to know how I could do this. iframe doesn't seem to work.
There are two options available for you: (1) embed the webpage as a blockquote using Embedly, or (2) make a playlist of your uploaded videos and embed the playlist.
Use Embedly: The website Embedly uses a script to embed any webpage, including the uploads page of your YouTube channel, into a block quote. You'll be using their script in your HTML, so no guarantees on quality.
Make a playlist of your uploaded videos, then embed the playlist into your website by following the instructions on this page.
Good luck!
Looking at Youtube's API ... https://developers.google.com/youtube/player_parameters
They do have a user uploads feed.
https://www.youtube.com/embed?listType=user_uploads&list=USERNAME
IE for focuspullin channel
https://www.youtube.com/embed?listType=user_uploads&list=focuspullin
It provides a video as a and with a playlists that could be used in a iframe
But I would consider this subject to change. Google's knowledge graph shows completely different, older information, about an RSS feed. Unable to find that and it may no longer exist, [but there are several stackoverflow Q and A that reference it from a few years back.]

Embed vimeo videos where token is required

I'd like to know whether there's a way to directly embed a vimeo video into a website or whether there's a way to get a stable link to the MP4 file.
E.g. this page: http://www.landfunker.de/ktv/detail.php?rubric=93&nr=86411. The video is only launched when accessing it from that page. In the source code, I see links like
fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/3026/7/190133161/631209312.mp4?token=587a20e2_0xece9d9d127813f2b792edb30032d4d9b0a7c484f
However, the tokens expire, right. Any tips? Any workarounds.thx
Use the Vimeo iframe embed code to embed videos on your site:
https://help.vimeo.com/hc/en-us/sections/203874347-Embedding-Videos
https://developer.vimeo.com/apis/oembed
To get the MP4 links for video files, you'll need to be a Vimeo PRO or Business member. Video file links are returned in the individual video's response from the API.
GET https://api.vimeo.com/videos/[video_id]
You can use the API's JSON fields filter to only return the video file links:
GET https://api.vimeo.com/videos/[video_id]?fields=files
Finally, note that you can only retrieve the video file links for videos on your own PRO or Business account. Vimeo does not provide a way to retrieve the video file links for videos on other user accounts.
API documentation can be found here: https://developer.vimeo.com/api/start
You can definitely embed a Vimeo video into a website - Vimeo provides instructions on their website:
To get your video's embed code, go to its video page and click the Share button. Then click the +Show options link that appears above the embed code field to reveal a preview of your embedded video with the Basic customization options. Once you've made your adjustments, you can copy the embed code and paste it wherever you'd like to embed your video.
They also provide an API based embed approach using oEmbed. There is a JavaSCript example using this here:
https://github.com/vimeo/vimeo-oembed-examples/blob/master/oembed/js-example.html
This basically calls the API with the URL of the video to embed and the response includes HTML which you append to your page.

Embed html5 video player in facebook

I know this question has been asked many times.
I read everything on the topic.
It's exactly the same problem here
I have a custom html5 video player that I'd like to use inside a facebook post, like youtube or vimeo does.
I added the correct meta tags but when I post the link of the player and click on play, I get a white screen with a "Download file" anchor.
It was suggested that this feature is on trial with youtube (and maybe vimeo or other partners)
Is it still the case or am I missing something ?
Do I need an app approval from facebook ?

How to link to external sites through youtube videos through annotations

Is there a way of linking to an external website through YouTube Videos, by creating annotations links?
That is, the link is embedded in the video. An example of what I want is given in this video. When viewed, there's a link in the bottom left corner.
It can be done with 'LinkedTube' but it is not 'annotations' style.
I searched the Youtube API also but didn't find anything related to annotations control.
Any help is greatly appreciated.
Youtube prohibits external links by default, but it is still possible to insert the external link. To do so you have two options:
Have a paid account
Buy some amount of ad
I think you have to contact youtube sales to discuss the details.
P.S.: We used external links here, check out the top right corner of the video.
You can do it if you uploaded the video to your YouTube account.
In settings, you'll enter the link and text to be displayed when your video plays.
There are a few tutorials on YouTube that show exactly what steps to do, like this one.