Show Menu
TOPICS×

Caption button

This button toggles closed caption display on and off. It is not visible if the caption parameter is not specified.
You can size, skin, and position this button, relative to the control bar that contains it, by using CSS.
The appearance of this button is controlled with the following CSS class selector:
.s7videoviewer .s7closedcaptionbutton

CSS properties of the caption 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
The width of the full screen button.
height
The height of the full screen button.
background-image
The displayed image for a given button state.
background-position
Position inside artwork sprite, if CSS sprites are used.
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 state when captions are visible and selected='false' is used when captions are hidden.
The button tool tip can be localized. See Localization of user interface elements for more information.

Example

To set up a closed caption button that is 28 x 28 pixels, positioned four pixels from the top and 68 pixels from the right edge of the control bar, and displays a different image for each of the four different button states when selected or not selected.
.s7videoviewer .s7closedcaptionbutton { 
 position:absolute; 
 top:4px; 
 right:68px; 
 width:28px; 
 height:28px; 
} 
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='up'] { 
background-image:url(images/v2/ClosedCaptionButton_up.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='over'] { 
background-image:url(images/v2/ClosedCaptionButton_over.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='down'] { 
background-image:url(images/v2/ClosedCaptionButton_down.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='disabled'] { 
background-image:url(images/v2/ClosedCaptionButton_disabled.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='up'] { 
background-image:url(images/v2/ClosedCaptionButton_disabled.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='over'] { 
background-image:url(images/v2/ClosedCaptionButton_over.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='down'] { 
background-image:url(images/v2/ClosedCaptionButton_down.png); 
} 
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='disabled'] { 
background-image:url(images/v2/ClosedCaptionButton_disabled.png);  
}