Share via


Internal Script Command Renderer Filter

 
Microsoft DirectShow 9.0

Internal Script Command Renderer Filter

Receives script commands and dispatches them to the application.

This filter accepts script commands in one of two formats:

  • MEDIATYPE_Text: Each media sample contains an ANSI text string.

  • MEDIATYPE_ScriptCommand: Each media sample contains two NULL-terminated Unicode strings, concatenated together. The first string describes the command type and the second string is the script command.

    When the filter receives a sample, it sends an EC_OLE_EVENT event notification. The first event parameter is a BSTR with the command type, or Text if the format is MEDIATYPE_Text. The second event parameter is a BSTR with the script command. The application can retrieve the event and respond to the script command.

For an example of how to use this filter, see SAMI (CC) Parser.

Filter Interfaces IBaseFilter, IMediaPosition, IMediaSeeking
Input Pin Media Types
  • MEDIATYPE_ScriptCommand, MEDIASUBTYPE_NULL
  • MEDIATYPE_Text, MEDIASUBTYPE_NULL
Input Pin Interfaces IMemInputPin, IPin, IQualityControl
Output Pin Media Types Not applicable
Output Pin Interfaces Not applicable
Filter CLSID {48025243-2D39-11CE-875D-00608CB78066}
Property Page CLSID No property page
Executable Quartz.dll
Merit MERIT_PREFERRED + 1
Filter Category CLSID_LegacyAmFilterCategory

See Also