-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy path__init__.py
166 lines (163 loc) · 4.08 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Copyright 2023 LiveKit, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""LiveKit RTC SDK"""
from ._proto import stats_pb2 as stats
from ._proto.e2ee_pb2 import EncryptionState, EncryptionType
from ._proto.participant_pb2 import ParticipantKind, DisconnectReason
from ._proto.room_pb2 import (
ConnectionQuality,
ConnectionState,
ContinualGatheringPolicy,
DataPacketKind,
IceServer,
IceTransportType,
TrackPublishOptions,
VideoEncoding,
)
from ._proto.track_pb2 import (
StreamState,
TrackKind,
TrackSource,
ParticipantTrackPermission,
)
from ._proto.video_frame_pb2 import VideoBufferType, VideoCodec, VideoRotation
from .audio_frame import AudioFrame
from .audio_source import AudioSource
from .audio_stream import AudioFrameEvent, AudioStream
from .chat import ChatManager, ChatMessage
from .e2ee import (
E2EEManager,
E2EEOptions,
FrameCryptor,
KeyProvider,
KeyProviderOptions,
)
from .participant import (
LocalParticipant,
Participant,
RemoteParticipant,
)
from .room import ConnectError, DataPacket, Room, RoomOptions, RtcConfiguration, SipDTMF
from .track import (
AudioTrack,
LocalAudioTrack,
LocalTrack,
LocalVideoTrack,
RemoteAudioTrack,
RemoteTrack,
RemoteVideoTrack,
Track,
VideoTrack,
)
from .event_emitter import EventEmitter
from .track_publication import (
LocalTrackPublication,
RemoteTrackPublication,
TrackPublication,
)
from .transcription import Transcription, TranscriptionSegment
from .version import __version__
from .video_frame import (
VideoFrame,
)
from .video_source import VideoSource
from .video_stream import VideoFrameEvent, VideoStream
from .audio_resampler import AudioResampler, AudioResamplerQuality
from .utils import combine_audio_frames
from .rpc import RpcError, RpcInvocationData
from .synchronizer import AVSynchronizer
from .data_stream import (
TextStreamInfo,
TextStreamUpdate,
ByteStreamInfo,
TextStreamReader,
TextStreamWriter,
ByteStreamWriter,
ByteStreamReader,
)
__all__ = [
"ConnectionQuality",
"ConnectionState",
"DataPacketKind",
"TrackPublishOptions",
"IceTransportType",
"ContinualGatheringPolicy",
"IceServer",
"EncryptionType",
"EncryptionState",
"StreamState",
"TrackKind",
"TrackSource",
"ParticipantTrackPermission",
"VideoBufferType",
"VideoRotation",
"stats",
"AudioFrame",
"AudioSource",
"AudioStream",
"AudioFrameEvent",
"LocalParticipant",
"Participant",
"ParticipantKind",
"DisconnectReason",
"RemoteParticipant",
"ConnectError",
"Room",
"RoomOptions",
"RtcConfiguration",
"SipDTMF",
"DataPacket",
"LocalAudioTrack",
"LocalVideoTrack",
"RemoteAudioTrack",
"RemoteVideoTrack",
"Track",
"LocalTrack",
"RemoteTrack",
"AudioTrack",
"VideoTrack",
"E2EEManager",
"E2EEOptions",
"KeyProviderOptions",
"KeyProvider",
"FrameCryptor",
"LocalTrackPublication",
"RemoteTrackPublication",
"TrackPublication",
"Transcription",
"TranscriptionSegment",
"VideoCodec",
"VideoEncoding",
"VideoFrame",
"VideoFrameEvent",
"VideoSource",
"VideoStream",
"ChatManager",
"ChatMessage",
"AudioResampler",
"AudioResamplerQuality",
"RpcError",
"RpcInvocationData",
"EventEmitter",
"combine_audio_frames",
"AVSynchronizer",
"TextStreamUpdate",
"TextStreamInfo",
"ByteStreamInfo",
"TextStreamReader",
"TextStreamWriter",
"ByteStreamReader",
"ByteStreamWriter",
"__version__",
]