MediaCenter.FindProgram Method

Finds TV programs that are currently being broadcast.

Note   This method has been deprecated.

Syntax

  MediaCenter.FindProgram(
  keyword, titleOnly
  )

Parameters

keyword

A String that contains the keyword for which to search. This method searches for words in the program metadata that start with this keyword.

titleOnly

A Boolean that indicates whether to find matching words only in the title field (true), or to find them in the title, episode title, description, directors, and actors fields (false).

Return Value

An Array object that contains a list of service IDs of the programs that match the keyword string. Note that this array does not use the JScript array syntax for accessing its elements (aMyArray[1]); the syntax is aMyArray.items(1).

Remarks

The service IDs represent the services that are currently broadcasting a matching program. A service ID can then be used in a call to the PlayMedia or PlayMediaEx methods.

Requirements

Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista

See Also