Search code examples
androidiosvideoopentoktokbox

change video chat frame rate tokbox


I am working on cross platform video conference App (iOS & Android) as a first phase, but I have problem that the video is disconnected when the network is week or slow, I found that the video it self frame rate is high, Is there any possible solution to change the frame rate of the video streams in the tokbox client SDKs (iOS or Android)


Solution

  • You can use for iOS

    use custom video Capturer TBVideoCapture.h TBVideoCapture.h

    TBVideoRender.h TBVideoRender.m

    TBSubscriber.h TBSubscriber.m

    TBPublisher.h TBPublisher.m

    you can request them from Tokbox then set this flag when you after initialize publisher

    [_publisher.myVideoCapture setActiveFrameRate:5];
    

    and for android

    use CustomVideoCapturer.java from tokbox

    and call

    configureCaptureSize(75, 100, 30, 40, 5);