Skip to content

Feature Request - set player size manually per video/audio. #18

@grahamarmfield

Description

@grahamarmfield

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions