DocumentationDynamic Media Viewers Reference Guide

full-screen button

Last update: November 3, 2023
  • Topics:
  • Dynamic Media Classic,Viewers,SDK/API,Interactive Videos

CREATED FOR:

  • Developer
  • User

The full-screen button causes the video player to enter or exit full-screen mode when a user clicks it.

You can size, skin, and position the full-screen button, relative to the control bar that contains it, by CSS.

The appearance of the full-screen button is controlled with the CSS class selector:

.s7interactivevideoviewer .s7fullscreenbutton

CSS properties of the full-screen button

topPosition from the top border, including padding.
rightPosition from the right border, including padding.
leftPosition from the left border, including padding.
bottomPosition from the bottom border, including padding.
widthThe width of the full-screen button.
heightThe height of the full-screen button.
background-imageThe displayed image for a given button state.
background-position

Position inside artwork sprite, if CSS sprites are used.

See CSS Sprites.

NOTE
This button supports both the state and selected attribute selectors, which can be used to apply different skins to different button states. In particular, selected='true' corresponds to the “full-screen” state and selected='false' corresponds to the “normal” state.

The button tool tip can be localized. See Localization of user interface elements for more information.

Example

To set up a full-screen button that is 32 x 32 pixels, and positioned 6 pixels from the top and right edge of the control bar. Also, display a different image for each of the four different button states when selected or not selected.

.s7interactivevideoviewer . s7fullscreenbutton {
top:6px;
right:6px;
width:32px;
height:32px;
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='false'][state='up'] {
background-image:url(images/enterFullBtn_up.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='false'][state='over'] {
background-image:url(images/enterFullBtn_over.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='false'][state='down'] {
background-image:url(images/enterFullBtn_down.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='false'][state='disabled'] {
background-image:url(images/enterFullBtn_disabled.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='true'][state='up'] {
background-image:url(images/exitFullBtn_up.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='true'][state='over'] {
background-image:url(images/exitFullBtn_over.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='true'][state='down'] {
background-image:url(images/exitFullBtn_down.png);
}
.s7interactivevideoviewer .s7fullscreenbutton [selected='true'][state='disabled'] {
background-image:url(images/exitFullBtn_disabled.png); }
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8