Skip to content

Commit d941554

Browse files
committed
rename to userdata
1 parent 07560d5 commit d941554

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

livekit-rtc/livekit/rtc/audio_frame.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
self._sample_rate = sample_rate
6565
self._num_channels = num_channels
6666
self._samples_per_channel = samples_per_channel
67-
self._user_data: dict[str, Any] = {}
67+
self._userdata: dict[str, Any] = {}
6868

6969
@staticmethod
7070
def create(sample_rate: int, num_channels: int, samples_per_channel: int) -> "AudioFrame":
@@ -102,11 +102,11 @@ def _proto_info(self) -> proto_audio.AudioFrameBufferInfo:
102102
return audio_info
103103

104104
@property
105-
def user_data(self) -> dict[str, Any]:
105+
def userdata(self) -> dict[str, Any]:
106106
"""
107107
Returns the user data associated with the audio frame.
108108
"""
109-
return self._user_data
109+
return self._userdata
110110

111111
@property
112112
def data(self) -> memoryview:

0 commit comments

Comments
 (0)