I'm developing a mobile application which implements peer to peer video chat using twilio (we are allowing only 2 participants in a given room)
The project is written in c# using Xamarin, so a binding is needed for the twilio sdk. I'm using this one as a base: https://github.com/dkornev/TwilioXamarinBindings , but I've built my own binding using the last version of the twilio sdk available now, which is the v4.2.0 (from here: https://bintray.com/twilio/releases/video-android/4.2.0)
Then, I've used the quickstart project provided by twilio: https://github.com/twilio/video-quickstart-android as the base for our project. I've added some animations to the VideoViews-translation and/or scaling, but that´s all.
The problem is that we've tested the video chat and there is a very noticeable delay in the remote video. The video is like 10 seconds behind, at all times, and even worse, it appears to be played in slow-motion (with time jumps every now and then).
The application is working fine when tested in android 5/5.1 though.
Any clue on how to resolve this will be greatly appreciated!
UPDATE: -This delay can be observed using previous versions of twilio (even with v3.x.x)
-I've took off verything from the logic and the view and left only the connection logic + the VideoView for the remote video alone No change so far.
Could it be related to the video codecs somehow?
UPDATE2 This video delay is happening in emulator with android 9 and in a physical phone with android 9 (which has hw support for H.264). The video can be seen nice, without any delay in emulator with android 5, and physical phones with android 5.1 and 7