FreeRDP
Loading...
Searching...
No Matches
tsmf_media.h
1
28#ifndef FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H
29#define FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H
30
31#include <freerdp/freerdp.h>
32
33typedef struct S_TSMF_PRESENTATION TSMF_PRESENTATION;
34
35typedef struct S_TSMF_STREAM TSMF_STREAM;
36
37typedef struct S_TSMF_SAMPLE TSMF_SAMPLE;
38
39TSMF_PRESENTATION* tsmf_presentation_new(const BYTE* guid,
40 IWTSVirtualChannelCallback* pChannelCallback);
41TSMF_PRESENTATION* tsmf_presentation_find_by_id(const BYTE* guid);
42BOOL tsmf_presentation_start(TSMF_PRESENTATION* presentation);
43BOOL tsmf_presentation_stop(TSMF_PRESENTATION* presentation);
44UINT tsmf_presentation_sync(TSMF_PRESENTATION* presentation);
45BOOL tsmf_presentation_paused(TSMF_PRESENTATION* presentation);
46BOOL tsmf_presentation_restarted(TSMF_PRESENTATION* presentation);
47BOOL tsmf_presentation_volume_changed(TSMF_PRESENTATION* presentation, UINT32 newVolume,
48 UINT32 muted);
49BOOL tsmf_presentation_set_geometry_info(TSMF_PRESENTATION* presentation, UINT32 x, UINT32 y,
50 UINT32 width, UINT32 height, UINT32 num_rects,
51 const RECTANGLE_32* rects);
52void tsmf_presentation_set_audio_device(TSMF_PRESENTATION* presentation, const char* name,
53 const char* device);
54void tsmf_presentation_free(TSMF_PRESENTATION* presentation);
55
56TSMF_STREAM* tsmf_stream_new(TSMF_PRESENTATION* presentation, UINT32 stream_id,
57 rdpContext* rdpcontext);
58TSMF_STREAM* tsmf_stream_find_by_id(TSMF_PRESENTATION* presentation, UINT32 stream_id);
59BOOL tsmf_stream_set_format(TSMF_STREAM* stream, const char* name, wStream* s);
60void tsmf_stream_end(TSMF_STREAM* stream, UINT32 message_id,
61 IWTSVirtualChannelCallback* pChannelCallback);
62void tsmf_stream_free(TSMF_STREAM* stream);
63BOOL tsmf_stream_flush(TSMF_STREAM* stream);
64
65BOOL tsmf_stream_push_sample(TSMF_STREAM* stream, IWTSVirtualChannelCallback* pChannelCallback,
66 UINT32 sample_id, UINT64 start_time, UINT64 end_time, UINT64 duration,
67 UINT32 extensions, UINT32 data_size, BYTE* data);
68
69BOOL tsmf_media_init(void);
70void tsmf_stream_start_threads(TSMF_STREAM* stream);
71
72#endif /* FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H */