OpenTok C SDK
stream.h
Go to the documentation of this file.
1 
7 #ifndef STREAM_H
8 #define STREAM_H
9 
10 #include "config.h"
11 #include "connection.h"
12 
13 OTC_BEGIN_DECL
14 
18 typedef struct otc_stream otc_stream;
19 
27  2,
29 };
30 
38 OTC_DECL(const char*) otc_stream_get_id(const otc_stream* stream);
39 
47 OTC_DECL(const char*) otc_stream_get_name(const otc_stream* stream);
48 
56 OTC_DECL(otc_bool) otc_stream_has_video_track(const otc_stream* stream);
57 
65 OTC_DECL(otc_bool) otc_stream_has_video(const otc_stream* stream);
66 
74 OTC_DECL(otc_bool) otc_stream_has_audio_track(const otc_stream* stream);
75 
83 OTC_DECL(otc_bool) otc_stream_has_audio(const otc_stream* stream);
84 
91 OTC_DECL(otc_stream*) otc_stream_copy(const otc_stream* stream);
92 
99 OTC_DECL(otc_status) otc_stream_delete(otc_stream* stream);
100 
107 OTC_DECL(int) otc_stream_get_video_width(const otc_stream* stream);
108 
115 OTC_DECL(int) otc_stream_get_video_height(const otc_stream* stream);
116 
123 OTC_DECL(int64_t) otc_stream_get_creation_time(const otc_stream* stream);
124 
132 OTC_DECL(enum otc_stream_video_type)
134 
141 OTC_DECL(const otc_connection*)
143 
144 OTC_END_DECL
145 
146 #endif // STREAM_H
int otc_status
Definition: base.h:133
Client connection.
otc_bool otc_stream_has_video_track(const otc_stream *stream)
enum otc_stream_video_type otc_stream_get_video_type(const otc_stream *stream)
const otc_connection * otc_stream_get_connection(const otc_stream *stream)
const char * otc_stream_get_id(const otc_stream *stream)
int64_t otc_stream_get_creation_time(const otc_stream *stream)
otc_bool otc_stream_has_audio(const otc_stream *stream)
otc_bool otc_stream_has_video(const otc_stream *stream)
int otc_stream_get_video_height(const otc_stream *stream)
otc_stream * otc_stream_copy(const otc_stream *stream)
struct otc_stream otc_stream
Definition: stream.h:18
int otc_stream_get_video_width(const otc_stream *stream)
otc_stream_video_type
Definition: stream.h:24
struct otc_connection otc_connection
Definition: connection.h:19
otc_bool otc_stream_has_audio_track(const otc_stream *stream)
Definition: stream.h:28
int otc_bool
Definition: base.h:107
const char * otc_stream_get_name(const otc_stream *stream)
otc_status otc_stream_delete(otc_stream *stream)
Definition: stream.h:25
Definition: stream.h:26