Return video information in oEmbed for videos
-
Andre Torrez
- State changed from new to open
I'm hesitant to make MLKSHK a source for embeds that way. Would it be too odd to have /r/ simply return the JSON embed I have stored that came from the provider? We're actually storing videos as "link" objects, since in the backend all someone is doing it storing a link to a video, we're just showing the video inline.
Heck, I'd even like to have /r/ return the URL they gave us. Good? Bad?
-
Mark Paschal
That makes total sense. In that case it might be nice to expose that in the API, by calling it a link and providing no video specific data, like:
{ "author_name": "andre", "author_url": "http://mlkshk.com/user/andre", "provider_name": "MLKSHK", "provider_url": "http://mlkshk.com/", "title": "Minamisanriku footage", "type": "link", "url": "http://www.youtube.com/watch?v=6JVpy0L5z7s", "version": "1.0" } -
Andre Torrez
- State changed from open to resolved
This is done. I still return width and height, but they should be ignored. I leave them for people who might want to use them for the resulting video (I know, I said I didn't want to be a source for the oembed, I just figure someone might want it).
-
Andre Torrez
Done, in dev! Not live yet.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.