Share via


Windows Media Player 11 SDK ClosedCaption.captioningID 

Windows Media Player SDK banner art

Previous Next

ClosedCaption.captioningID

The captioningID property specifies or retrieves the name of the element displaying the captioning.

Syntax

  player.closedCaption. 

Possible Values

This property is a read/write String.

Remarks

The element name specified can be any HTML element in the Web page as long as it supports the innerHTML attribute. If the Web page contains multiple frames, the element name can only refer to an element in the same frame as the Player control.

Windows Media Player 10 Mobile: This property is read only, and always returns an empty string.

Example Code

The following Microsoft JScript example uses ClosedCaption.captioningID to choose the area of a Web page used to display captions. Two HTML DIV elements were created, with ID = CC1 and ID = CC2, respectively. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next