AVideo icon indicating copy to clipboard operation
AVideo copied to clipboard

AVideo API - Oembed

Open GreenDragonTavern opened this issue 2 years ago • 3 comments

Does AVideo have an API or oembed mechanism to facilitate grabbing information for a video to store locally in another application? That would include the video cover image. Just like YouTube, Vimeo, Twitch, Dailomotion etc. where only the URL is necessary on a social media post. This way you get a YouTube quality post on social media with an AVideo URL...https://avideo.site.com/v/10 as example would be no different than posting this: https://youtu.be/E_eCOG8vQYg

Thank you...

GreenDragonTavern avatar Sep 05 '22 20:09 GreenDragonTavern

Check this https://github.com/WWBN/AVideo/wiki/AVideo-Platform-API

DanielnetoDotCom avatar Sep 06 '22 12:09 DanielnetoDotCom

Thanks for link. Did not see anything related to getting embed information based on video url. Was thinking more in line with what YouTube gives you...example below:

curl 'https://www.youtube.com/oembed?format=json&url=https://www.youtube.com/watch?v=uXBDgLglFig'

with YouTube returning this:

{"title":"BUILDING A DIY BASS GUITAR SYNTHESIZER WITH A SID CHIP","author_name":"LOOK MUM NO COMPUTER","author_url":"https://www.youtube.com/c/LOOKMUMNOCOMPUTER","type":"video","height":113,"width":200,"version":"1.0","provider_name":"YouTube","provider_url":"https://www.youtube.com/","thumbnail_height":360,"thumbnail_width":480,"thumbnail_url":"https://i.ytimg.com/vi/uXBDgLglFig/hqdefault.jpg","html":"\u003ciframe width=\u0022200\u0022 height=\u0022113\u0022 src=\u0022https://www.youtube.com/embed/uXBDgLglFig?feature=oembed\u0022 frameborder=\u00220\u0022 allow=\u0022accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\u0022 allowfullscreen title=\u0022BUILDING A DIY BASS GUITAR SYNTHESIZER WITH A SID CHIP\u0022\u003e\u003c/iframe\u003e"}

GreenDragonTavern avatar Sep 06 '22 18:09 GreenDragonTavern

What about this?

https://demoavideocom.cdn.ypt.me/oembed/?format=json&url=https%3A%2F%2Fdemo.avideo.com%2Fview%2F%3Fv%3D55

https://demoavideocom.cdn.ypt.me/oembed/?format=xml&url=https%3A%2F%2Fdemo.avideo.com%2Fview%2F%3Fv%3D55

<link href="https://demoavideocom.cdn.ypt.me/oembed/?format=json&url=https%3A%2F%2Fdemo.avideo.com%2Fview%2F%3Fv%3D55" rel="alternate" type="application/json+oembed" />

<link href="https://demoavideocom.cdn.ypt.me/oembed/?format=xml&url=https%3A%2F%2Fdemo.avideo.com%2Fview%2F%3Fv%3D55" rel="alternate" type="application/xml+oembed" />


DanielnetoDotCom avatar Sep 07 '22 10:09 DanielnetoDotCom

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 15 '22 21:10 stale[bot]

Having issues embedding AVideo videos in WordPress.

Your elements looks like this:

Shouldn't ombed look like this (per specification at oembed.com - Discovery:

  1. Discovery

oEmbed providers can choose to make their oEmbed support discoverable by adding elements to the head of their existing (X)HTML documents or by setting Link headers.

Your same elements per their documentation:

Tried curl using your format:

https://demoavideocom.cdn.ypt.me/oembed/?format=json&url=https%3A%2F%2Fdemo.avideo.com%2Fview%2F%3Fv%3D55

and got nothing, below is modified version that did give back

curl https://demo.avideo.com/oembed/?url=https%3A%2F%2Fdemo.avideo.com%2Fview%2F%3Fv%3D55&format=json

1.0 rich 480 360 I Will Love | Hillsong (Featuring Miriam Webster) https://demo.avideo.com/video/55/i-will-love-hillsong-featuring-miriam-webster- AVideo Platform Demo https://demo.avideo.com/ <div class="embed-responsive embed-responsive-16by9"><iframe width="640" height="360" style="max-width: 100%;max-height: 100%; border:none;" src="https://demo.avideo.com/videoEmbed/55/i-will-love-hillsong-featuring-miriam-webster-?modestbranding=1&showinfo=1&autoplay=&controls=1&loop=&mute=&t=0&objectFit=" frameborder="0" allowfullscreen="allowfullscreen" allow="autoplay" scrolling="no">iFrame is not supported!</iframe></div>

You have as rich versus video, is there a specific reason? It shows as a link to an AVideo video where it should be playable within the embed itself.

Many thanks again for all...

GreenDragonTavern avatar Nov 06 '22 23:11 GreenDragonTavern

I am not sure what is the issue you are referring to

DanielnetoDotCom avatar Nov 07 '22 12:11 DanielnetoDotCom