This commit is contained in:
wangjiyu 2025-04-11 09:21:24 +08:00
parent 7bb8108410
commit 22f01bdc64
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ srcRoomId = "srcRoom1"
destRoomId = "destRoomId1"
srcChannelIndex = 42
destChannelIndex = 43
def my_callback(npData, dataCount, sampleRate, numChannels, channelIndex):
print(f"dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}")
def my_callback(npData, dataSize, dataCount, sampleRate, numChannels, channelIndex):
print(f"dataSize:{dataSize}, dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}")
ret = rtc_plugins.init(destUserId, destDisplayName, destRoomId, my_callback)
if ret != 0:
print(f"init fail, ret:{ret}")