This commit is contained in:
wangjiyu 2025-04-15 10:22:05 +08:00
parent f4563d5fb5
commit fb534bfe4f
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ def my_callback(npData, dataSize, dataCount, sampleRate, numChannels, channelInd
ret = rtc_plugins.sendCustomAudioData(srcChannelIndex, audioData, 48000, 1, len(audioData))
if ret != 0:
print(f"resend fail, ret:{ret}")
else:
print("resend succ")
ret = rtc_plugins.init(destUserId, destDisplayName, destRoomId, my_callback)
if ret != 0:
print(f"init fail, ret:{ret}")

View File

@ -31,4 +31,4 @@ for i in range(100):
ret = rtc_plugins.sendCustomAudioData(destChannelIndex, audioData, 48000, 1, len(audioData))
if ret != 0:
print(f"send fail, ret:{ret}")
time.sleep(3)
time.sleep(30)