Package 

Class ExoMedia


  • 
    public class ExoMedia
    
                        

    A standard entry point for registering additional com.google.android.exoplayer2.Renderers and com.google.android.exoplayer2.source.MediaSources

    • Method Detail

      • registerRenderer

         static void registerRenderer(ExoMedia.RendererType type, Class<out Renderer> clazz)

        Registers additional customized com.google.android.exoplayer2.Renderers that will be used by the com.google.android.exoplayer2.source.MediaSources to correctly play media.

        Parameters:
        type - The type for the renderer
        clazz - The class of the customized Renderer
      • registerMediaSourceBuilder

         static void registerMediaSourceBuilder(MediaSourceProvider.SourceTypeBuilder builder)

        Registers additional com.google.android.exoplayer2.source.MediaSources for the specified file extensions (and regexes). com.google.android.exoplayer2.source.MediaSources registered here will take precedence to the pre-configured ones.

        Parameters:
        builder - The builder for additional or customized media sources
      • setLoadControl

         static void setLoadControl(LoadControl loadControl)

        Specifies the LoadControl to use when building the com.google.android.exoplayer2.ExoPlayer instance used in the com.getstream.sdk.chat.utils.exomedia.ui.widget.VideoView and AudioPlayer. This allows the buffering amounts to be modified to better suit your needs which can be easily specified by using an instance of com.google.android.exoplayer2.DefaultLoadControl. When the loadControl is null the default instance of the com.google.android.exoplayer2.DefaultLoadControl will be used. This will only take effect for any instances created after this was set.

        Parameters:
        loadControl - The to use for any new instances