Play/Pause button play-pause-button

The play/pause button causes the video player to play or pause the video content when a user clicks it.

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

The following CSS class selector controls the appearance of the button:

.s7interactivevideoviewer .s7playpausebutton

CSS properties of the play/pause button css-properties-of-the-play-pause-button

top
Position from the top border, including padding.
right
Position from the right border, including padding.
left
Position from the left border, including padding.
bottom
Position from the bottom border, including padding.
width
Width of the button.
height
Height of the button.
background-image
The image that is displayed 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, selected, and replay attribute selectors, which can be used to apply different skins to different button states. In particular, selected='true' corresponds to the “play” state and selected='false' corresponds to the “pause” state;
Attribute replay='true' is set when the video has reached the end and selecting the button restarts playback from the beginning.

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

Example section-e8caea0a303c425a8a637c2a47c06355

To set up a play/pause button that is 32 x 32 pixels and is positioned six pixels from the top and left edge of the control bar. And finally, it displays a different image for each of the four different button states when selected or not selected.

.s7interactivevideoviewer .s7playpausebutton {
top:6px;
left:6px;
width:32px;
height:32px;
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][state='up'] {
background-image:url(images/playBtn_up.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][state='over'] {
background-image:url(images/playBtn_over.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][state='down'] {
background-image:url(images/playBtn_down.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][state='disabled'] {
background-image:url(images/playBtn_disabled.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='false'][state='up'] {
background-image:url(images/pauseBtn_up.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='false'][state='over'] {
background-image:url(images/pauseBtn_over.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='false'][state='down'] {
background-image:url(images/pauseBtn_down.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='false'][state='disabled'] {
background-image:url(images/pauseBtn_disabled.png); }
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][replay='true'][state='up'] {
background-image:url(images/replayBtn_up.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][replay='true'][state='over'] {
background-image:url(images/replayBtn_over.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][replay='true'][state='down'] {
background-image:url(images/replayBtn_down.png);
}
.s7interactivevideoviewer .s7playpausebutton[selected='true'][replay='true'][state='disabled'] {
background-image:url(images/replayBtn_disabled.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8