Steps to replicate the issue (include links if applicable):
- Visit a video media file on Commons (example)
- Click/tap the "Use this file" link next to the globe icon.
- A dialog/modal appears with easy to copy-and-paste bits, including iframe code to embed the video file.
- Copy the HTML code to your site and preview the output.
- Video has a with of "null" and a height of "20" regardless of actual dimensions.
What happens?:
For whatever reason the video dimensions (or a scaled approximation) are not passed to the generated HTML code.
What should have happened instead?:
The HTML code should contain a useful width and height.
Other information (browser name/version, screenshots, etc.):
- I recall this working in the past, and only noticed the issue post-switch to video.js. It could be coincidental, but perhaps there was a change related to video.js passing this information to the dialog?
- It appears this attribution and reuse feature of Commons is handled by MediaWiki:Gadget-Stockphoto.js. Since I do not know where the issue lies, I'm creating this ticket. :) I have mentioned this issue on the talk page of that gadget as well..