# Controls This is the markup that is rendered for the Plyr controls. You can use the default controls or provide a customized version of markup based on your needs. ## Internationalization using default controls You can provide an `i18n` object as one of your options when initialising the plugin which we be used when rendering the controls. ### Example ```javascript i18n: { restart: "Restart", rewind: "Rewind {seektime} secs", play: "Play", pause: "Pause", forward: "Forward {seektime} secs", played: "played", buffered: "buffered", currentTime: "Current time", duration: "Duration", volume: "Volume", toggleMute: "Toggle Mute", toggleCaptions: "Toggle Captions", toggleFullscreen: "Toggle Fullscreen" } ``` Note: `{seektime}` will be replaced with your configured seek time or the default. For example "Forward {seektime} secs" would render as "Forward 10 secs". ## Using custom HTML You can specify the HTML for the controls using the `html` option. The classes and data attributes used in your template should match the `selectors` option. You need to add several placeholders to your html template that are replaced when rendering: - `{id}` - the dynamically generated ID for the player (for form controls) - `{seektime}` - the seek time specified in options for fast forward and rewind You can include only the controls you need when specifying custom html. ### Example This is an example `html` option with all controls. ```javascript ["
", "
", "", "", "", "0% played", "", "", "0% buffered", "", "
", "", "", "", "", "", "", "", "Current time", "00:00", "", "", "Duration", "00:00", "", "", "", "", "", "", "", "", "", "
"].join("\n"); ```