Page MenuHomePhabricator

Add support for video embedding
Closed, DeclinedPublic

Description

It would be nice to include the <iframe> embedcode for videos in PhotoCommons as well.

<iframe src="http://commons.wikimedia.org/wiki/File:Folgers.ogv?withJS=MediaWiki:MwEmbed.js&embedplayer=yes" width="240" height="180" frameborder="0"></iframe>

Needs some cross-browser testing and checking if videos are returned in the search results.


Version: unspecified
Severity: enhancement

Details

Reference
bz27820

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:30 PM
bzimport set Reference to bz27820.
bzimport added a subscriber: Unknown Object (MLST).

And for the same reason we use shortcodes for images, the iframe code should be generated indirectly via a shortcode so that the <iframe> code isn't hardcoded in the post.

Perhaps detect from the filename if it's a video or introduce a seperate shortcode

ie.
[photocommons file="Folgers.ogv" width="240" height="180"] (as for images, internally switched for iframe-vid or img-tag))

or a seperate shortcode:
[videocommons file="Folgers.ogv" ... ]

Krinkle

(see also bug 27821)

Aklapper lowered the priority of this task from Medium to Lowest.Jan 27 2015, 11:57 PM
Aklapper subscribed.

This project is not maintained anymore and not under active development (see https://phabricator.wikimedia.org/T87711 ). Hence closing this task as declined.