https://bugzilla.wikimedia.org/show_bug.cgi?id=31338
Web browser: ---
Bug #: 31338
Summary: Export file thumbnail, video preview via Open Graph
meta elements as Facebook posting helper
Product: MediaWiki extensions
Version: any
Platform: All
URL: https://developers.facebook.com/docs/opengraph/#types
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Extensions requests
AssignedTo: [email protected]
ReportedBy: [email protected]
Depends on: 25862
Classification: Unclassified
Similar to bug 25854 (oEmbed export/discovery), it should be useful to expose
images and video files via Open Graph meta tags, which tools like Facebook can
pick up when someone posts a link.
For images and video, exposing a thumbnail at some defaultish default
width/height should help:
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
We'll have to pick a default size, I suppose; per docs should be bigger than
50x50, with maximum aspect ratio of 3:1 (???)
For video, there are some examples of multi-format info:
<html xmlns:og="http://ogp.me/ns#">
<head>
...
[REQUIRED TAGS]
<meta property="og:video" content="http://example.com/awesome.swf" />
<meta property="og:video:height" content="640" />
<meta property="og:video:width" content="385" />
<meta property="og:video:type" content="application/x-shockwave-flash"
/>
<meta property="og:video" content="http://example.com/html5.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video" content="http://example.com/fallback.vid" />
<meta property="og:video:type" content="text/html" />
...
</head>
however if we're not generating H.264 .mp4 output for videos, we might be stuck
with just a link if it doesn't happen to accept WebM/ogg; it kinda looks like
that fallback is for linking not iframe embedding.
Audio files seem to be handled similar to videos; depending on what clients
claim to support they may or may not actually take an ogg vorbis file, but mp3
is specifically called out as supported.
Some additional file metadata such as location could probably also be extracted
and exposed, if necessary/desired.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l