This options block configures a clickable watermark that is overlayed on the video.
jwplayer("myElement").setup({
"file": "http://example.com/myVideo.mp4",
"logo": {
"file": "/assets/jw-logo-red-46px.png",
"link": "https://www.jwplayer.com",
"hide": "true",
"position": "top-left"
}
});
Property | Description | Default |
---|---|---|
file string | The URL of an external JPG, PNG or GIF image to be used as watermark (e.g. /assets/logo.png). We recommend using 24 bit PNG images with transparency | - |
hide boolean | When this option is set to true, the logo will automatically show and hide along with the other player controls | false |
link string | The URL to visit when the watermark image is clicked. Clicking a logo will have no affect unless this is configured | - |
margin number | The distance, in pixels, of the logo from the edges of the display | 8 |
position 8.0+ string | This sets the corner in which to display the watermark. "control-bar" adds the logo as the leftmost icon in the right grouping of buttons in the control bar. "top-left" "top-right" "bottom-left" "bottom-right" "control-bar" | "top-right" |
We highly recommend using low-resolution images for logos in the player, as Internet Explorer may not resize an image, especially if it is high-resolution.