Last modified: 2012-11-06 18:37:32 UTC
The iframe code to share a video always embeds File:DuckandC1951.ogg, regardless of the video that's currently viewed. Also, the "copy code" button doesn't actually copy anything. I'm assuming these issues are related, so I'm grouping them into this report. == Steps to reproduce == * Go to https://en.wikipedia.org/wiki/User:RobLa-WMF/Video_testing * Click the "Share" icon on any video * Click "Copy code" == Actual results == 1. Nothing is copied to the clipboard 2. The iframe code that is displayed contains another video: <iframe src="//en.wikipedia.org/wiki/File:DuckandC1951.ogg?embedplayer=yes" width="1024" height="768" frameborder="0" ></iframe> == Expected results == 1. The iframe code is copied to the clipboard. 2. The iframe code contains the right video, not DuckandC1951.ogg. == Additional information == Firefox 16.0.2 on openSUSE 12.2
Was related to jQuery scope issue. Also added support to always use commons as the iframe embed host ( instead of the local wiki ) if the asset is coming from commons. https://gerrit.wikimedia.org/r/32056 The copy to clipboard is a browser limitation. Flash supports clipboard access. We can add in flash zeroclipboard: http://code.google.com/p/zeroclipboard/ to support copy ... or just update the button to say "select embed code".
marked resolved 32056 has been merged.