The audios through the mixer is out of sync (the gap gets progressively larger).

ett

Member
I'll explain the situation first.

- WCS 5.2.996, iOS SDK 2.6.48, Android SDK 1.1.0.32
- Using RoomApi, mixer without MCU. Everything AUDIO only, VIDEO is off.
- PublisherA publish stream which is added to OriginMixer, and play PublisherB using participant.play()
- PublisherB publish stream which is added to OriginMixer, and play PublisherA using participant.play()
- ListenerC play OriginMixer through the CDN Edge
This results in a situation where PublisherA and PublisherB are talking to each other,
and ListenerC is listening to the audio through the OriginMixer of PublisherA and PublisherB mixed.

Immediately after mixing starts, there is no problem.
But after about 15 minutes, there were times when it was off by about 4 seconds.
On the other hand, there are cases where there is almost no gap even after an hour.
My guess is that the gap accumulates every time the broadcaster's network is temporarily sluggish often.

In all cases, however, the broadcasters are able to talk to each other at normal timing.
In other words, I believe that the mixing could have been synchronized (because mixing the current audio instead of using the past audio is all that is needed).
Therefore, I think that some kind of problem occurred in the mixer.

Is there any configuration or related configuration that can solve this problem?

Code:
# flashphoner.properties
client_mode=false
rtc_ice_add_local_component=true
ip=xxx.xxx.xxx.xxx
ip_local=yyy.yyy.yyy.yyy
cdn_ip=yyy.yyy.yyy.yyy

# https://forum.flashphoner.com/threads/abstractstunsocket-fscheduling-pool-44-thread-2-can-not-find-local-candidate.13082/#post-25582
rtc_ice_add_local_interface=true

cli_enabled=false
hls_enabled=false
manager_http_ports_enabled=false
mixer_video_enabled=false
transcoding_disabled=true

http_enable_paths=rest,action,health-check
enable_extended_logging=false
media_port_from=10000
media_port_to=19999

cdn_enabled=true
cdn_nodes_resolve_ip=false

# environment dependent
cdn_role=origin
cdn_point_of_entry=

# only for origin
record_mixer_streams=true
file_recorder_thread_pool_max_size=4
record_audio_codec_channels=1
 

Max

Administrator
Staff member
Good day.
First, mixer cannot synchronize two separate incoming streams from a differents sources.
You're describing a latency. This latency can occur due to mixer incoming stream buffering. You can decrease the latency by decreasing mixer incoming buffer size
Code:
mixer_in_buffering_ms = 10
 
Top