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 };
28 
36 OTC_DECL(const char *) otc_stream_get_id(const otc_stream *stream);
37 
45 OTC_DECL(const char *) otc_stream_get_name(const otc_stream *stream);
46 
53 OTC_DECL(otc_bool) otc_stream_has_video_track(const otc_stream *stream);
54 
61 OTC_DECL(otc_bool) otc_stream_has_video(const otc_stream *stream);
62 
69 OTC_DECL(otc_bool) otc_stream_has_audio_track(const otc_stream *stream);
70 
77 OTC_DECL(otc_bool) otc_stream_has_audio(const otc_stream *stream);
78 
85 OTC_DECL(otc_stream *) otc_stream_copy(const otc_stream *stream);
86 
93 OTC_DECL(otc_status) otc_stream_delete(otc_stream *stream);
94 
101 OTC_DECL(int) otc_stream_get_video_width(const otc_stream *stream);
102 
109 OTC_DECL(int) otc_stream_get_video_height(const otc_stream *stream);
110 
117 OTC_DECL(int64_t) otc_stream_get_creation_time(const otc_stream *stream);
118 
126 OTC_DECL(enum otc_stream_video_type) otc_stream_get_video_type(const otc_stream *stream);
127 
134 OTC_DECL(const otc_connection *) otc_stream_get_connection(const otc_stream * stream);
135 
136 OTC_END_DECL
137 
138 #endif // STREAM_H
int otc_status
Definition: base.h:114
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)
int otc_bool
Definition: base.h:100
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