Audio-/Videostream. Mehr...
#include "config.h"
#include "connection.h"
| Typdefinitionen | |
| typedef struct otc_stream | otc_stream |
| Aufzählungen | |
| enum | otc_stream_video_type { OTC_STREAM_VIDEO_TYPE_CAMERA = 1 , OTC_STREAM_VIDEO_TYPE_SCREEN , OTC_STREAM_VIDEO_TYPE_CUSTOM = 3 } |
| Funktionen | |
| const char * | otc_stream_get_id (const otc_stream *Stream) |
| const char * | otc_stream_get_name (const otc_stream *Stream) |
| otc_bool | otc_stream_has_video_track (const otc_stream *Stream) |
| otc_bool | otc_stream_has_video (const otc_stream *Stream) |
| otc_bool | otc_stream_has_audio_track (const otc_stream *Stream) |
| otc_bool | otc_stream_has_audio (const otc_stream *Stream) |
| otc_bool | otc_stream_has_captions (const otc_stream *Stream) |
| otc_stream * | otc_stream_copy (const otc_stream *Stream) |
| otc_status | otc_stream_delete (otc_stream *Stream) |
| int | otc_stream_get_video_width (const otc_stream *Stream) |
| int | otc_stream_get_video_height (const otc_stream *Stream) |
| int64_t | otc_stream_get_creation_time (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) |
Ausführliche Beschreibung
Audio-/Videostream.
Diese Datei enthält die Typdefinition für einen Audio-Video-Stream sowie mehrere Funktionsdeklarationen, die bei dessen Verarbeitung nützlich sind.
Typedef-Dokumentation
otc_stream
| typedef struct otc_stream otc_stream |
Typdefinition für eine Struktur, die einen Audio-Video-Stream in einer OpenTok-Sitzung darstellt.
Dokumentation zu Aufzählungstypen
otc_stream_video_type
Auflistung der Videostream-Typen.
Diese Aufzählung enthält die verschiedenen unterstützten Video-Streaming-Typen.
| Zähler | |
|---|---|
| OTC_STREAM_VIDEO_TYPE_CAMERA | Videostream der Kamera. |
| OTC_STREAM_VIDEO_TYPE_SCREEN | Bildschirm-Videostream. Dies wird für die Bildschirmfreigabe verwendet. |
| OTC_STREAM_VIDEO_TYPE_CUSTOM | Benutzerdefinierter Videostream. |
Funktionsdokumentation
otc_stream_copy()
| otc_stream * otc_stream_copy | ( | const otc_stream * | Strom | ) |
Erstellt eine Kopie eines Streams.
Parameter : | | | | --- | --- | | stream | Der zu kopierende Stream. |
Rückgabewert : Eine Kopie des Streams. Bei einem Fehler kann dieser Wert null sein.
otc_stream_delete()
| otc_status otc_stream_delete | ( | otc_stream * | Strom | ) |
Gibt die mit dem Stream verbundenen Ressourcen frei.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewerte : Rückgabewert, der entweder einen Fehler oder einen Erfolg anzeigt.
otc_stream_get_connection()
| const otc_connection * otc_stream_get_connection | ( | const otc_stream * | Strom | ) |
Rufe die Verbindung ab, die dem Client zugeordnet ist, der den Stream veröffentlicht.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewerte : Die Verbindung, die dem Client zugeordnet ist, der den Stream veröffentlicht.
otc_stream_get_creation_time()
| int64_t otc_stream_get_creation_time | ( | const otc_stream * | Strom | ) |
Ruft den Erstellungszeitpunkt des Streams ab.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewerte : Der Zeitstempel für den Erstellungszeitpunkt des Streams.
otc_stream_get_id()
| const char * otc_stream_get_id | ( | const otc_stream * | Strom | ) |
Ruft die eindeutige Kennung für diesen Stream ab.
Parameter : | | | | --- | --- | | stream | Der Stream. |
Rückgabewerte : Die eindeutige Kennung für diesen Stream.
otc_stream_get_name()
| const char * otc_stream_get_name | ( | const otc_stream * | Strom | ) |
Ruft den Namen des Streams ab. Der Herausgeber des Streams kann diesen Namen festlegen, um den Stream zu identifizieren.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewert : Der Name des Streams.
otc_stream_get_video_height()
| int otc_stream_get_video_height | ( | const otc_stream * | Strom | ) |
Gibt die Höhe des Videostreams in Pixeln zurück.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Gibt Folgendes zurück : Die Höhe des Videostreams in Pixeln.
otc_stream_get_video_type()
| enum otc_stream_video_type otc_stream_get_video_type | ( | const otc_stream * | Strom | ) |
Gibt den Videotyp des Streams zurück.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewerte : Der Videotyp des Streams.
Siehe auch : otc_stream_video_type
otc_stream_get_video_width()
| int otc_stream_get_video_width | ( | const otc_stream * | Strom | ) |
Gibt die Breite des Videostreams in Pixeln zurück.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Gibt Folgendes zurück : Die Breite des Videostreams in Pixeln.
otc_stream_has_audio()
| otc_bool otc_stream_has_audio | ( | const otc_stream * | Strom | ) |
Prüft, ob dieser Stream derzeit Audio überträgt oder nicht.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewerte : Rückgabewert, der angibt, ob dieser Stream Audio überträgt oder nicht.
otc_stream_has_audio_track()
| otc_bool otc_stream_has_audio_track | ( | const otc_stream * | Strom | ) |
Prüft, ob dieser Stream eine Audiospur enthält oder nicht.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewert : Rückgabewert, der angibt, ob dieser Stream eine Audiospur enthält oder nicht.
otc_stream_has_captions()
| otc_bool otc_stream_has_captions | ( | const otc_stream * | Strom | ) |
Prüft, ob dieser Stream derzeit Untertitel veröffentlicht oder nicht.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewert : Rückgabewert, der angibt, ob dieser Stream Untertitel veröffentlicht oder nicht.
otc_stream_has_video()
| otc_bool otc_stream_has_video | ( | const otc_stream * | Strom | ) |
Prüft, ob dieser Stream derzeit Video überträgt oder nicht.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewert : Rückgabewert, der angibt, ob dieser Stream Video überträgt oder nicht.
otc_stream_has_video_track()
| otc_bool otc_stream_has_video_track | ( | const otc_stream * | Strom | ) |
Prüft, ob dieser Stream eine Videospur enthält oder nicht.
Parameter : | | | | --- | --- | | stream | Der abgefragte Stream. |
Rückgabewert : Rückgabewert, der angibt, ob dieser Stream eine Videospur enthält oder nicht.