Last modified: 2014-08-31 19:47:11 UTC
Testing prop=videoinfo for fetching derivative data: https://commons.wikimedia.org/w/api.php?action=query&titles=File:Folgers.ogv&prop=videoinfo&viprop=derivatives&format=jsonfm "derivatives": [ { "src": "https://upload.wikimedia.org/wikipedia/commons/9/94/Folgers.ogv", "type": "video/ogg; codecs=\"theora, vorbis\"", "title": "Original Ogg file, 352 \u00d7 264 (637 kbps)", "shorttitle": "Ogg source", "width": "352", "height": "264", "bandwidth": 636645, "framerate": 29.97002997003 }, { "src": "https://upload.wikimedia.org/wikipedia/commons/transcoded/9/94/Folgers.ogv/Folgers.ogv.360p.webm", "title": "Web streamable WebM (360P)", "type": "video/webm; codecs=\"vp8, vorbis\"", "shorttitle": "WebM 360P", "transcodekey": "360p.webm", "width": 352, "height": 264, "bandwidth": "574352", "framerate": 29.97002997003 } The 'width', 'height', and 'bandwidth' parameters variously appear as integers or strings... They should be consistently raw integers, so non-PHP clients don't have to explicitly coerce the type.
Change 89846 had a related patch set uploaded by Brion VIBBER: bug 55742: fix types in JSON videoinfo output https://gerrit.wikimedia.org/r/89846
Change 89846 had a related patch set uploaded by Brian Wolff: Fix types in JSON videoinfo output https://gerrit.wikimedia.org/r/89846
Change 89846 merged by jenkins-bot: Fix types in JSON videoinfo output https://gerrit.wikimedia.org/r/89846