Skip to content

Commit e8e3265

Browse files
committed
Update attributes set in trailer
1 parent c95d3ce commit e8e3265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

livekit-rtc/livekit/rtc/data_stream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async def _on_chunk_update(self, chunk: proto_DataStream.Chunk):
7070
await self._queue.put(chunk)
7171

7272
async def _on_stream_close(self, trailer: proto_DataStream.Trailer):
73+
self.info.attributes.update(trailer.attributes)
7374
await self._queue.put(None)
7475

7576
def __aiter__(self) -> AsyncIterator[str]:

0 commit comments

Comments
 (0)