23#include <freerdp/config.h>
32#include <winpr/stream.h>
34#include "tsmf_types.h"
35#include "tsmf_constants.h"
36#include "tsmf_media.h"
37#include "tsmf_codec.h"
39#include "tsmf_ifman.h"
47UINT tsmf_ifman_rim_exchange_capability_request(
TSMF_IFMAN* ifman)
49 UINT32 CapabilityValue = 0;
51 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 4))
52 return ERROR_INVALID_DATA;
54 Stream_Read_UINT32(ifman->input, CapabilityValue);
55 DEBUG_TSMF(
"server CapabilityValue %" PRIu32
"", CapabilityValue);
57 if (!Stream_EnsureRemainingCapacity(ifman->output, 8))
58 return ERROR_INVALID_DATA;
60 Stream_Write_UINT32(ifman->output, 1);
61 Stream_Write_UINT32(ifman->output, 0);
70UINT tsmf_ifman_exchange_capability_request(
TSMF_IFMAN* ifman)
72 UINT32 CapabilityType = 0;
73 UINT32 cbCapabilityLength = 0;
74 UINT32 numHostCapabilities = 0;
77 if (!Stream_EnsureRemainingCapacity(ifman->output, ifman->input_size + 4))
78 return ERROR_OUTOFMEMORY;
80 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, ifman->input_size))
81 return ERROR_INVALID_DATA;
83 const size_t xpos = Stream_GetPosition(ifman->output);
84 Stream_Copy(ifman->input, ifman->output, ifman->input_size);
85 if (!Stream_SetPosition(ifman->output, xpos))
86 return ERROR_INVALID_DATA;
88 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->output, 4))
89 return ERROR_INVALID_DATA;
91 Stream_Read_UINT32(ifman->output, numHostCapabilities);
93 for (UINT32 i = 0; i < numHostCapabilities; i++)
95 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->output, 8))
96 return ERROR_INVALID_DATA;
98 Stream_Read_UINT32(ifman->output, CapabilityType);
99 Stream_Read_UINT32(ifman->output, cbCapabilityLength);
101 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->output, cbCapabilityLength))
102 return ERROR_INVALID_DATA;
104 const size_t pos = Stream_GetPosition(ifman->output);
106 switch (CapabilityType)
110 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->output, 4))
111 return ERROR_INVALID_DATA;
113 const UINT32 v = Stream_Get_UINT32(ifman->output);
115 DEBUG_TSMF(
"server protocol version %" PRIu32
"", v);
121 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->output, 4))
122 return ERROR_INVALID_DATA;
124 const UINT32 v = Stream_Get_UINT32(ifman->output);
126 DEBUG_TSMF(
"server supported platform %" PRIu32
"", v);
128 Stream_Write_UINT32(ifman->output, MMREDIR_CAPABILITY_PLATFORM_MF |
129 MMREDIR_CAPABILITY_PLATFORM_DSHOW);
134 WLog_ERR(TAG,
"skipping unknown capability type %" PRIu32
"", CapabilityType);
138 if (!Stream_SetPosition(ifman->output, pos + cbCapabilityLength))
139 return ERROR_INVALID_DATA;
142 Stream_Write_UINT32(ifman->output, 0);
143 ifman->output_interface_id = TSMF_INTERFACE_DEFAULT | STREAM_ID_STUB;
144 return CHANNEL_RC_OK;
152UINT tsmf_ifman_check_format_support_request(
TSMF_IFMAN* ifman)
154 UINT32 numMediaType = 0;
155 UINT32 PlatformCookie = 0;
156 UINT32 FormatSupported = 1;
158 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 12))
159 return ERROR_INVALID_DATA;
161 Stream_Read_UINT32(ifman->input, PlatformCookie);
162 Stream_Seek_UINT32(ifman->input);
163 Stream_Read_UINT32(ifman->input, numMediaType);
164 DEBUG_TSMF(
"PlatformCookie %" PRIu32
" numMediaType %" PRIu32
"", PlatformCookie, numMediaType);
166 if (!tsmf_codec_check_media_type(ifman->decoder_name, ifman->input))
170 DEBUG_TSMF(
"format ok.");
172 if (!Stream_EnsureRemainingCapacity(ifman->output, 12))
175 Stream_Write_UINT32(ifman->output, FormatSupported);
176 Stream_Write_UINT32(ifman->output, PlatformCookie);
177 Stream_Write_UINT32(ifman->output, 0);
178 ifman->output_interface_id = TSMF_INTERFACE_DEFAULT | STREAM_ID_STUB;
179 return CHANNEL_RC_OK;
187UINT tsmf_ifman_on_new_presentation(
TSMF_IFMAN* ifman)
189 UINT status = CHANNEL_RC_OK;
190 TSMF_PRESENTATION* presentation =
nullptr;
193 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, GUID_SIZE))
194 return ERROR_INVALID_DATA;
196 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
200 DEBUG_TSMF(
"Presentation already exists");
201 ifman->output_pending = FALSE;
202 return CHANNEL_RC_OK;
205 presentation = tsmf_presentation_new(Stream_Pointer(ifman->input), ifman->channel_callback);
208 status = ERROR_OUTOFMEMORY;
210 tsmf_presentation_set_audio_device(presentation, ifman->audio_name, ifman->audio_device);
212 ifman->output_pending = TRUE;
221UINT tsmf_ifman_add_stream(
TSMF_IFMAN* ifman, rdpContext* rdpcontext)
224 UINT status = CHANNEL_RC_OK;
228 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, GUID_SIZE + 8))
229 return ERROR_INVALID_DATA;
231 TSMF_PRESENTATION* presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
232 Stream_Seek(ifman->input, GUID_SIZE);
236 WLog_ERR(TAG,
"unknown presentation id");
237 status = ERROR_NOT_FOUND;
241 const IWTSVirtualChannelCallback* pcb = tsmf_presentation_get_callback(presentation);
244 if (!pcb || (ifman->channel_callback != pcb))
246 WLog_ERR(TAG,
"Presentation not set up for this callback.");
247 return ERROR_INVALID_DATA;
249 Stream_Read_UINT32(ifman->input, StreamId);
250 Stream_Seek_UINT32(ifman->input);
251 if (cb->stream_id != StreamId)
254 "StreamId=0x%08" PRIx32
255 " does not match callback configuration for StreamId=0x%08" PRIx32,
256 StreamId, cb->stream_id);
257 return ERROR_INVALID_DATA;
260 TSMF_STREAM* stream = tsmf_stream_new(presentation, StreamId, rdpcontext);
264 WLog_ERR(TAG,
"failed to create stream");
265 return ERROR_OUTOFMEMORY;
268 if (!tsmf_stream_set_format(stream, ifman->decoder_name, ifman->input))
270 WLog_ERR(TAG,
"failed to set stream format");
271 return ERROR_OUTOFMEMORY;
274 tsmf_stream_start_threads(stream);
277 ifman->output_pending = TRUE;
286UINT tsmf_ifman_set_topology_request(
TSMF_IFMAN* ifman)
290 if (!Stream_EnsureRemainingCapacity(ifman->output, 8))
291 return ERROR_OUTOFMEMORY;
293 Stream_Write_UINT32(ifman->output, 1);
294 Stream_Write_UINT32(ifman->output, 0);
295 ifman->output_interface_id = TSMF_INTERFACE_DEFAULT | STREAM_ID_STUB;
296 return CHANNEL_RC_OK;
304UINT tsmf_ifman_remove_stream(
TSMF_IFMAN* ifman)
306 int status = CHANNEL_RC_OK;
308 TSMF_STREAM* stream =
nullptr;
309 TSMF_PRESENTATION* presentation =
nullptr;
312 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 20))
313 return ERROR_INVALID_DATA;
315 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
316 Stream_Seek(ifman->input, GUID_SIZE);
320 status = ERROR_NOT_FOUND;
324 Stream_Read_UINT32(ifman->input, StreamId);
325 stream = tsmf_stream_find_by_id(presentation, StreamId);
328 tsmf_stream_free(stream);
330 status = ERROR_NOT_FOUND;
333 ifman->output_pending = TRUE;
337static float tsmf_stream_read_float(
wStream* s)
341 Stream_Read_UINT32(s, iValue);
342 CopyMemory(&fValue, &iValue, 4);
351UINT tsmf_ifman_set_source_video_rect(
TSMF_IFMAN* ifman)
353 UINT status = CHANNEL_RC_OK;
354 TSMF_PRESENTATION* presentation =
nullptr;
357 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 32))
358 return ERROR_INVALID_DATA;
360 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
361 Stream_Seek(ifman->input, GUID_SIZE);
365 status = ERROR_NOT_FOUND;
369#ifdef WITH_DEBUG_TSMF
370 const float Left = tsmf_stream_read_float(ifman->input);
371 const float Top = tsmf_stream_read_float(ifman->input);
372 const float Right = tsmf_stream_read_float(ifman->input);
373 const float Bottom = tsmf_stream_read_float(ifman->input);
374 DEBUG_TSMF(
"SetSourceVideoRect: Left: %f Top: %f Right: %f Bottom: %f", Left, Top, Right,
379 ifman->output_pending = TRUE;
388UINT tsmf_ifman_shutdown_presentation(
TSMF_IFMAN* ifman)
390 TSMF_PRESENTATION* presentation =
nullptr;
393 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, GUID_SIZE))
394 return ERROR_INVALID_DATA;
396 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
399 tsmf_presentation_free(presentation);
402 WLog_ERR(TAG,
"unknown presentation id");
403 return ERROR_NOT_FOUND;
406 if (!Stream_EnsureRemainingCapacity(ifman->output, 4))
407 return ERROR_OUTOFMEMORY;
409 Stream_Write_UINT32(ifman->output, 0);
410 ifman->output_interface_id = TSMF_INTERFACE_DEFAULT | STREAM_ID_STUB;
411 return CHANNEL_RC_OK;
419UINT tsmf_ifman_on_stream_volume(
TSMF_IFMAN* ifman)
421 TSMF_PRESENTATION* presentation =
nullptr;
422 UINT32 newVolume = 0;
424 DEBUG_TSMF(
"on stream volume");
426 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, GUID_SIZE + 8))
427 return ERROR_INVALID_DATA;
429 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
433 WLog_ERR(TAG,
"unknown presentation id");
434 return ERROR_NOT_FOUND;
437 Stream_Seek(ifman->input, 16);
438 Stream_Read_UINT32(ifman->input, newVolume);
439 DEBUG_TSMF(
"on stream volume: new volume=[%" PRIu32
"]", newVolume);
440 Stream_Read_UINT32(ifman->input, muted);
441 DEBUG_TSMF(
"on stream volume: muted=[%" PRIu32
"]", muted);
443 if (!tsmf_presentation_volume_changed(presentation, newVolume, muted))
444 return ERROR_INVALID_OPERATION;
446 ifman->output_pending = TRUE;
455UINT tsmf_ifman_on_channel_volume(
TSMF_IFMAN* ifman)
457 TSMF_PRESENTATION* presentation =
nullptr;
458 DEBUG_TSMF(
"on channel volume");
460 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, GUID_SIZE + 8))
461 return ERROR_INVALID_DATA;
463 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
467 UINT32 channelVolume = 0;
468 UINT32 changedChannel = 0;
469 Stream_Seek(ifman->input, 16);
470 Stream_Read_UINT32(ifman->input, channelVolume);
471 DEBUG_TSMF(
"on channel volume: channel volume=[%" PRIu32
"]", channelVolume);
472 Stream_Read_UINT32(ifman->input, changedChannel);
473 DEBUG_TSMF(
"on stream volume: changed channel=[%" PRIu32
"]", changedChannel);
476 ifman->output_pending = TRUE;
477 return CHANNEL_RC_OK;
485UINT tsmf_ifman_set_video_window(
TSMF_IFMAN* ifman)
488 ifman->output_pending = TRUE;
489 return CHANNEL_RC_OK;
497UINT tsmf_ifman_update_geometry_info(
TSMF_IFMAN* ifman)
499 TSMF_PRESENTATION* presentation =
nullptr;
500 UINT32 numGeometryInfo = 0;
505 UINT32 cbVisibleRect = 0;
507 UINT error = CHANNEL_RC_OK;
510 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, GUID_SIZE + 32))
511 return ERROR_INVALID_DATA;
513 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
516 return ERROR_NOT_FOUND;
518 Stream_Seek(ifman->input, 16);
519 Stream_Read_UINT32(ifman->input, numGeometryInfo);
520 pos = Stream_GetPosition(ifman->input);
521 Stream_Seek(ifman->input, 12);
522 Stream_Read_UINT32(ifman->input, Width);
523 Stream_Read_UINT32(ifman->input, Height);
524 Stream_Read_UINT32(ifman->input, Left);
525 Stream_Read_UINT32(ifman->input, Top);
526 if (!Stream_SetPosition(ifman->input, pos + numGeometryInfo))
527 return ERROR_INVALID_DATA;
528 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 4))
529 return ERROR_INVALID_DATA;
530 Stream_Read_UINT32(ifman->input, cbVisibleRect);
531 const UINT32 num_rects = cbVisibleRect / 16;
532 DEBUG_TSMF(
"numGeometryInfo %" PRIu32
" Width %" PRIu32
" Height %" PRIu32
" Left %" PRIu32
533 " Top %" PRIu32
" cbVisibleRect %" PRIu32
" num_rects %d",
534 numGeometryInfo, Width, Height, Left, Top, cbVisibleRect, num_rects);
538 if (!Stream_CheckAndLogRequiredLengthOfSize(TAG, ifman->input, num_rects, 16ull))
539 return ERROR_INVALID_DATA;
543 return ERROR_OUTOFMEMORY;
545 for (
size_t i = 0; i < num_rects; i++)
547 Stream_Read_UINT32(ifman->input, rects[i].top);
548 Stream_Read_UINT32(ifman->input, rects[i].left);
549 Stream_Read_UINT32(ifman->input, rects[i].height);
550 Stream_Read_UINT32(ifman->input, rects[i].width);
551 rects[i].width -= rects[i].left;
552 rects[i].height -= rects[i].top;
553 DEBUG_TSMF(
"rect %d: %" PRId16
" %" PRId16
" %" PRId16
" %" PRId16
"", i, rects[i].x,
554 rects[i].y, rects[i].width, rects[i].height);
558 const BOOL rc = tsmf_presentation_set_geometry_info(presentation, Left, Top, Width, Height,
562 return ERROR_INVALID_OPERATION;
564 ifman->output_pending = TRUE;
573UINT tsmf_ifman_set_allocator(
TSMF_IFMAN* ifman)
576 ifman->output_pending = TRUE;
577 return CHANNEL_RC_OK;
585UINT tsmf_ifman_notify_preroll(
TSMF_IFMAN* ifman)
588 tsmf_ifman_on_playback_paused(ifman);
589 ifman->output_pending = TRUE;
590 return CHANNEL_RC_OK;
600 TSMF_PRESENTATION* presentation =
nullptr;
601 TSMF_STREAM* stream =
nullptr;
603 UINT64 SampleStartTime = 0;
604 UINT64 SampleEndTime = 0;
605 UINT64 ThrottleDuration = 0;
606 UINT32 SampleExtensions = 0;
610 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 60))
611 return ERROR_INVALID_DATA;
613 Stream_Seek(ifman->input, 16);
614 Stream_Read_UINT32(ifman->input, StreamId);
615 Stream_Seek_UINT32(ifman->input);
616 Stream_Read_UINT64(ifman->input, SampleStartTime);
617 Stream_Read_UINT64(ifman->input, SampleEndTime);
618 Stream_Read_UINT64(ifman->input, ThrottleDuration);
619 Stream_Seek_UINT32(ifman->input);
620 Stream_Read_UINT32(ifman->input, SampleExtensions);
621 Stream_Read_UINT32(ifman->input, cbData);
623 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, cbData))
624 return ERROR_INVALID_DATA;
626 DEBUG_TSMF(
"MessageId %" PRIu32
" StreamId %" PRIu32
" SampleStartTime %" PRIu64
627 " SampleEndTime %" PRIu64
" "
628 "ThrottleDuration %" PRIu64
" SampleExtensions %" PRIu32
" cbData %" PRIu32
"",
629 ifman->message_id, StreamId, SampleStartTime, SampleEndTime, ThrottleDuration,
630 SampleExtensions, cbData);
631 presentation = tsmf_presentation_find_by_id(ifman->presentation_id);
633 if (!presentation || (tsmf_presentation_get_callback(presentation) != ifman->channel_callback))
635 WLog_ERR(TAG,
"unknown presentation id");
636 return ERROR_NOT_FOUND;
639 stream = tsmf_stream_find_by_id(presentation, StreamId);
643 WLog_ERR(TAG,
"unknown stream id");
644 return ERROR_NOT_FOUND;
647 if (!tsmf_stream_push_sample(stream, ifman->message_id, SampleStartTime, SampleEndTime,
648 ThrottleDuration, SampleExtensions, cbData,
649 Stream_Pointer(ifman->input)))
651 WLog_ERR(TAG,
"unable to push sample");
652 return ERROR_OUTOFMEMORY;
655 if ((error = tsmf_presentation_sync(presentation)))
657 WLog_ERR(TAG,
"tsmf_presentation_sync failed with error %" PRIu32
"", error);
661 ifman->output_pending = TRUE;
662 return CHANNEL_RC_OK;
673 TSMF_PRESENTATION* presentation =
nullptr;
674 TSMF_STREAM* stream =
nullptr;
676 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 20))
677 return ERROR_INVALID_DATA;
679 Stream_Seek(ifman->input, 16);
680 Stream_Read_UINT32(ifman->input, StreamId);
681 DEBUG_TSMF(
"StreamId %" PRIu32
"", StreamId);
682 presentation = tsmf_presentation_find_by_id(ifman->presentation_id);
686 WLog_ERR(TAG,
"unknown presentation id");
687 return ERROR_NOT_FOUND;
693 stream = tsmf_stream_find_by_id(presentation, StreamId);
697 if (!tsmf_stream_flush(stream))
698 return ERROR_INVALID_OPERATION;
701 WLog_ERR(TAG,
"unknown stream id");
703 ifman->output_pending = TRUE;
704 return CHANNEL_RC_OK;
712UINT tsmf_ifman_on_end_of_stream(
TSMF_IFMAN* ifman)
716 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 20))
717 return ERROR_INVALID_DATA;
719 TSMF_PRESENTATION* presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
721 return ERROR_INVALID_DATA;
723 Stream_Seek(ifman->input, 16);
724 Stream_Read_UINT32(ifman->input, StreamId);
726 if (presentation && (ifman->channel_callback == tsmf_presentation_get_callback(presentation)))
728 TSMF_STREAM* stream = tsmf_stream_find_by_id(presentation, StreamId);
731 tsmf_stream_end(stream, ifman->message_id);
734 DEBUG_TSMF(
"StreamId %" PRIu32
"", StreamId);
735 ifman->output_pending = TRUE;
736 ifman->output_interface_id = TSMF_INTERFACE_CLIENT_NOTIFICATIONS | STREAM_ID_PROXY;
737 return CHANNEL_RC_OK;
745UINT tsmf_ifman_on_playback_started(
TSMF_IFMAN* ifman)
747 TSMF_PRESENTATION* presentation =
nullptr;
750 if (!Stream_CheckAndLogRequiredLength(TAG, ifman->input, 16))
751 return ERROR_INVALID_DATA;
753 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
756 tsmf_presentation_start(presentation);
758 WLog_ERR(TAG,
"unknown presentation id");
760 if (!Stream_EnsureRemainingCapacity(ifman->output, 16))
761 return ERROR_OUTOFMEMORY;
763 Stream_Write_UINT32(ifman->output, CLIENT_EVENT_NOTIFICATION);
764 Stream_Write_UINT32(ifman->output, 0);
765 Stream_Write_UINT32(ifman->output, TSMM_CLIENT_EVENT_START_COMPLETED);
766 Stream_Write_UINT32(ifman->output, 0);
767 ifman->output_interface_id = TSMF_INTERFACE_CLIENT_NOTIFICATIONS | STREAM_ID_PROXY;
768 return CHANNEL_RC_OK;
776UINT tsmf_ifman_on_playback_paused(
TSMF_IFMAN* ifman)
778 TSMF_PRESENTATION* presentation =
nullptr;
780 ifman->output_pending = TRUE;
782 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
786 if (!tsmf_presentation_paused(presentation))
787 return ERROR_INVALID_OPERATION;
790 WLog_ERR(TAG,
"unknown presentation id");
792 return CHANNEL_RC_OK;
800UINT tsmf_ifman_on_playback_restarted(
TSMF_IFMAN* ifman)
802 TSMF_PRESENTATION* presentation =
nullptr;
804 ifman->output_pending = TRUE;
806 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
810 if (!tsmf_presentation_restarted(presentation))
811 return ERROR_INVALID_OPERATION;
814 WLog_ERR(TAG,
"unknown presentation id");
816 return CHANNEL_RC_OK;
824UINT tsmf_ifman_on_playback_stopped(
TSMF_IFMAN* ifman)
826 TSMF_PRESENTATION* presentation =
nullptr;
828 presentation = tsmf_presentation_find_by_id(Stream_Pointer(ifman->input));
832 if (!tsmf_presentation_stop(presentation))
833 return ERROR_INVALID_OPERATION;
836 WLog_ERR(TAG,
"unknown presentation id");
838 if (!Stream_EnsureRemainingCapacity(ifman->output, 16))
839 return ERROR_OUTOFMEMORY;
841 Stream_Write_UINT32(ifman->output, CLIENT_EVENT_NOTIFICATION);
842 Stream_Write_UINT32(ifman->output, 0);
843 Stream_Write_UINT32(ifman->output, TSMM_CLIENT_EVENT_STOP_COMPLETED);
844 Stream_Write_UINT32(ifman->output, 0);
845 ifman->output_interface_id = TSMF_INTERFACE_CLIENT_NOTIFICATIONS | STREAM_ID_PROXY;
846 return CHANNEL_RC_OK;
854UINT tsmf_ifman_on_playback_rate_changed(
TSMF_IFMAN* ifman)
858 if (!Stream_EnsureRemainingCapacity(ifman->output, 16))
859 return ERROR_OUTOFMEMORY;
861 Stream_Write_UINT32(ifman->output, CLIENT_EVENT_NOTIFICATION);
862 Stream_Write_UINT32(ifman->output, 0);
863 Stream_Write_UINT32(ifman->output, TSMM_CLIENT_EVENT_MONITORCHANGED);
864 Stream_Write_UINT32(ifman->output, 0);
865 ifman->output_interface_id = TSMF_INTERFACE_CLIENT_NOTIFICATIONS | STREAM_ID_PROXY;
866 return CHANNEL_RC_OK;