Skip to content

Commit 19d5d0b

Browse files
authored
v0.3.1 (#53)
1 parent 42d1625 commit 19d5d0b

File tree

9 files changed

+54
-54
lines changed

9 files changed

+54
-54
lines changed

client-sdk-rust

examples/e2ee.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def main():
5050

5151
@room.listens_to("e2ee_state_changed")
5252
def on_e2ee_state_changed(participant: livekit.Participant,
53-
state: livekit.E2eeState) -> None:
53+
state: livekit.EncryptionState) -> None:
5454
logging.info("e2ee state changed: %s %s", participant.identity, state)
5555

5656
logging.info("connecting to %s", URL)

livekit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
DataPacketKind,
2323
TrackPublishOptions,
2424
)
25-
from ._proto.e2ee_pb2 import (EncryptionType, E2eeState)
25+
from ._proto.e2ee_pb2 import (EncryptionType, EncryptionState)
2626
from ._proto.track_pb2 import StreamState, TrackKind, TrackSource
2727
from ._proto.video_frame_pb2 import VideoFormatType, VideoFrameBufferType, VideoRotation
2828
from .audio_frame import AudioFrame

livekit/_proto/e2ee_pb2.py

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit/_proto/e2ee_pb2.pyi

+20-20
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,30 @@ GCM: EncryptionType.ValueType # 1
4949
CUSTOM: EncryptionType.ValueType # 2
5050
global___EncryptionType = EncryptionType
5151

52-
class _E2eeState:
52+
class _EncryptionState:
5353
ValueType = typing.NewType("ValueType", builtins.int)
5454
V: typing_extensions.TypeAlias = ValueType
5555

56-
class _E2eeStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_E2eeState.ValueType], builtins.type):
56+
class _EncryptionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], builtins.type):
5757
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
58-
NEW: _E2eeState.ValueType # 0
59-
OK: _E2eeState.ValueType # 1
60-
ENCRYPTION_FAILED: _E2eeState.ValueType # 2
61-
DECRYPTION_FAILED: _E2eeState.ValueType # 3
62-
MISSING_KEY: _E2eeState.ValueType # 4
63-
KEY_RATCHETED: _E2eeState.ValueType # 5
64-
INTERNAL_ERROR: _E2eeState.ValueType # 6
65-
66-
class E2eeState(_E2eeState, metaclass=_E2eeStateEnumTypeWrapper): ...
67-
68-
NEW: E2eeState.ValueType # 0
69-
OK: E2eeState.ValueType # 1
70-
ENCRYPTION_FAILED: E2eeState.ValueType # 2
71-
DECRYPTION_FAILED: E2eeState.ValueType # 3
72-
MISSING_KEY: E2eeState.ValueType # 4
73-
KEY_RATCHETED: E2eeState.ValueType # 5
74-
INTERNAL_ERROR: E2eeState.ValueType # 6
75-
global___E2eeState = E2eeState
58+
NEW: _EncryptionState.ValueType # 0
59+
OK: _EncryptionState.ValueType # 1
60+
ENCRYPTION_FAILED: _EncryptionState.ValueType # 2
61+
DECRYPTION_FAILED: _EncryptionState.ValueType # 3
62+
MISSING_KEY: _EncryptionState.ValueType # 4
63+
KEY_RATCHETED: _EncryptionState.ValueType # 5
64+
INTERNAL_ERROR: _EncryptionState.ValueType # 6
65+
66+
class EncryptionState(_EncryptionState, metaclass=_EncryptionStateEnumTypeWrapper): ...
67+
68+
NEW: EncryptionState.ValueType # 0
69+
OK: EncryptionState.ValueType # 1
70+
ENCRYPTION_FAILED: EncryptionState.ValueType # 2
71+
DECRYPTION_FAILED: EncryptionState.ValueType # 3
72+
MISSING_KEY: EncryptionState.ValueType # 4
73+
KEY_RATCHETED: EncryptionState.ValueType # 5
74+
INTERNAL_ERROR: EncryptionState.ValueType # 6
75+
global___EncryptionState = EncryptionState
7676

7777
@typing_extensions.final
7878
class FrameCryptor(google.protobuf.message.Message):

0 commit comments

Comments
 (0)