Package 

Class LiveKitOverrides


  • 
    public final class LiveKitOverrides
    
                        

    Overrides to replace LiveKit internally used components with custom implementations.

    • Constructor Summary

      Constructors 
      Constructor Description
      LiveKitOverrides(OkHttpClient okHttpClient, VideoEncoderFactory videoEncoderFactory, VideoDecoderFactory videoDecoderFactory, AudioOptions audioOptions, EglBase eglBase, PeerConnectionFactory.Options peerConnectionFactoryOptions)
    • Method Summary

      Modifier and Type Method Description
      final OkHttpClient getOkHttpClient() Override the OkHttpClient used by the library.
      final VideoEncoderFactory getVideoEncoderFactory() Override the VideoEncoderFactory used by the library.
      final VideoDecoderFactory getVideoDecoderFactory() Override the VideoDecoderFactory used by the library.
      final AudioOptions getAudioOptions() Override various audio options used by the library.
      final EglBase getEglBase() Override the EglBase used by the library.
      final PeerConnectionFactory.Options getPeerConnectionFactoryOptions() Override the options passed into the PeerConnectionFactory when building it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LiveKitOverrides

        LiveKitOverrides(OkHttpClient okHttpClient, VideoEncoderFactory videoEncoderFactory, VideoDecoderFactory videoDecoderFactory, AudioOptions audioOptions, EglBase eglBase, PeerConnectionFactory.Options peerConnectionFactoryOptions)
    • Method Detail

      • getOkHttpClient

         final OkHttpClient getOkHttpClient()

        Override the OkHttpClient used by the library.

      • getVideoEncoderFactory

         final VideoEncoderFactory getVideoEncoderFactory()

        Override the VideoEncoderFactory used by the library.

      • getVideoDecoderFactory

         final VideoDecoderFactory getVideoDecoderFactory()

        Override the VideoDecoderFactory used by the library.

      • getEglBase

         final EglBase getEglBase()

        Override the EglBase used by the library.

        If a non-null value is passed, the library does not take ownership of the object and will not release it upon Room.release. It is the responsibility of the owner to call EglBase.release when finished with it to prevent memory leaks.

      • getPeerConnectionFactoryOptions

         final PeerConnectionFactory.Options getPeerConnectionFactoryOptions()

        Override the options passed into the PeerConnectionFactory when building it.