|
OpenTok C SDK
|
OpenTok Subscriber. More...
#include "audio_data.h"#include "base.h"#include "config.h"#include "error.h"#include "media_utils.h"#include "stream.h"#include "video_frame.h"Go to the source code of this file.
Data Structures | |
| struct | otc_subscriber_audio_stats |
| struct | otc_subscriber_video_stats |
| struct | otc_subscriber_media_link_stats |
| struct | otc_subscriber_rtc_stats_report_cb |
| struct | otc_subscriber_callbacks |
Typedefs | |
| typedef struct otc_subscriber | otc_subscriber |
OpenTok Subscriber.
This file includes the type definition for an OpenTok subscriber along with several function declarations.
| typedef struct otc_subscriber otc_subscriber |
OpenTok subscriber type definition.
A type representing the consumer of audio and video from a stream in the OpenTok session.
Error code enumeration for OpenTok subscribers. This enumeration represents several error codes associated with a subscriber.
|
extern |
Returns whether the subscriber is subscribed to the stream's video or not.
| subscriber | The subscriber instance. |
|
extern |
Releases a subscriber instance, including all hardware and UI resources bound to it. No callbacks in otc_subscriber_callbacks will be invoked as a result of invoking this method (or afterwards).
| subscriber | The subcriber to be deleted. |
|
extern |
Returns the audio volume, between 0 and 100, of the subscriber.
The default value is 100.
| subscriber | The subscriber instance. |
| volume | The volume of the subscriber. |
|
extern |
Gets the configured caption translation language for a given subscriber.
| subscriber | The subscriber instance. |
|
extern |
Returns the preferred frame rate for the subscriber's stream.
| subscriber | The subscriber instance. |
| preferred_framerate | The preferred framerate associated with the subscriber. |
|
extern |
Returns the preferred resolution for the subscriber's stream.
| subscriber | The subscriber instance. |
| preferred_width | The preferred width of the subscriber. |
| preferred_height | The preferred height of the subscriber. |
|
extern |
Gets the RTC stats report for the subscriber. This is an asynchronous operation. create an otc_subscriber_rtc_stats_report_cb struct and pass it into the otc_subscriber_set_rtc_stats_report_cb function prior to calling this function. When the stats are available, the otc_subscriber_set_rtc_stats_report_cb callback function is called.
Also see otc_subscriber_callbacks.on_audio_stats, otc_subscriber_callbacks.on_video_stats, and otc_publisher_get_rtc_stats_report.
| subscriber | The subscriber. |
|
extern |
Returns the otc_session associated this instance.
| subscriber | The subscriber instance. |
otc_session associated this instance. This can be null if there is an error.
|
extern |
Returns the stream associated with the subscriber.
| subscriber | The subscriber instance to get the stream from. |
|
extern |
Returns whether the subscriber is subscribed to the stream's audio or not.
| subscriber | The subscriber instance. |
|
extern |
Returns whether the subscriber is subscribed to the stream's captions or not.
| subscriber | The subscriber instance. |
otc_publisher_get_publish_captions
|
extern |
Gets a unique identifier for a given subscriber.
| subscriber | The subscriber instance. |
|
extern |
Gets user data for a given subscriber.
| subscriber | The subscriber instance. |
|
extern |
Creates a new Subscriber for a given Stream.
| stream | The Stream object corresponding to the stream you will subscribe to. |
| callbacks | Struct with function pointers of the subscriber's callbacks. |
|
extern |
Sets the audio volume, between 0 and 100, of the subscriber. If the value is not in this range, it will be clamped to it.
| subscriber | The subscriber instance. |
| volume | The volume of the subscriber. |
|
extern |
Sets the preferred caption translation language for a given subscriber.
| subscriber | The subscriber instance which will be affected. |
| language | A supported language code or null to disable translation. |
|
extern |
Sets the preferred frame rate for the subscriber's stream.
The default value is 100.
| subscriber | The subscriber instance which will be affected. |
| preferred_framerate | The preferred framerate of the subscriber. |
|
extern |
Sets the preferred resolution for the subscriber's stream.
| subscriber | The subscriber instance which will be affected. |
| preferred_width | The preferred width of the subscriber. |
| preferred_height | The preferred height of the subscriber. |
|
extern |
Sets the RTC stats report callback the subscriber. See otc_subscriber_get_rtc_stats_report.
| subscriber | The subscriber instance. |
| cb | The otc_subscriber_rtc_stats_report_cb struct that includes the callback function for the RTC stats report. |
|
extern |
Subscribes to the stream's audio.
| subscriber | The subscriber instance which will be affected. |
| subscribe_to_audio | Whether to subscribe to audio or not. |
|
extern |
Subscribes to captions for the stream.
| subscriber | The subscriber instance which will be affected. |
| subscribe_to_captions | Whether to subscribe to captions or not. |
|
extern |
Subscribes to the stream's video.
| subscriber | The subscriber instance which will be affected. |
| subscribe_to_video | Whether to subscribe to video or not. |