-
Notifications
You must be signed in to change notification settings - Fork 22
Description
The default dimensions for the player are width to be 100% of available space and for video the height at 300px. This works well in certain situations but is not flexible enough to suit all implementations.
It is possible to constrain the width of the player by placing the link to the media within a div with a set width, however that does not help with the height.
Can I suggest the javascript functionality that scans content for the media links also looks for width and height settings that may be placed there by content authors and developers.
How about using the HTML5 facility for attaching data attributes to the link? Example: data-media-width and data-media-height. So the link to a video would now look like:
href="http://www.youtube.com/watch?v=kXiGXcq4pqY" data-media-height="350px" data-media-width="50%"
The javascript functions could then pass these values to the flash params. Functionality could stick with your current defaults if one or both of the attributes are absent.
This is just an idea - if there's a better way to do it, the requirement is still a useful one I believe.