3.1.5.2 CloseMedia

When the extender device receives this event, it closes the media session by clearing the downstream rendering pipeline and decoders. It releases the connection to the media server. If the extender device is using RTSP streaming, then send an RTSP:TEARDOWN command to the data server.

If the extender device successfully closes the media session, it returns S_OK; else it returns an error code.