public static class

SessionConfig.Builder

extends Object
java.lang.Object
   ↳ io.kickflip.sdk.av.SessionConfig.Builder

Summary

Public Constructors
SessionConfig.Builder(String outputLocation)
Configure a SessionConfig quickly with intelligent path interpretation.
SessionConfig.Builder(Muxer muxer)
Use this builder to manage file hierarchy manually or to provide your own Muxer
Public Methods
SessionConfig build()
SessionConfig.Builder withAdaptiveStreaming(boolean adaptiveStreaming)
SessionConfig.Builder withAudioBitrate(int bitrate)
SessionConfig.Builder withAudioChannels(int numChannels)
SessionConfig.Builder withAudioSamplerate(int samplerate)
SessionConfig.Builder withDescription(String description)
SessionConfig.Builder withExtraInfo(Map extraInfo)
SessionConfig.Builder withHlsSegmentDuration(int segmentDuration)
SessionConfig.Builder withLocation(boolean attachLocation)
SessionConfig.Builder withMuxer(Muxer muxer)
SessionConfig.Builder withPrivateVisibility(boolean isPrivate)
SessionConfig.Builder withTitle(String title)
SessionConfig.Builder withVerticalVideoCorrection(boolean convertVerticalVideo)
SessionConfig.Builder withVideoBitrate(int bitrate)
SessionConfig.Builder withVideoResolution(int width, int height)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SessionConfig.Builder (String outputLocation)

Configure a SessionConfig quickly with intelligent path interpretation. Valid inputs are "/path/to/name.m3u8", "/path/to/name.mp4", "rtmp://path/to/endpoint"

For file-based outputs (.m3u8, .mp4) the file structure is managed by a recording UUID.

Given an absolute file-based outputLocation like:

/sdcard/test.m3u8

the output will be available in:

/sdcard//test.m3u8 /sdcard//test0.ts /sdcard//test1.ts ...

You can query the final outputLocation after building with SessionConfig.getOutputPath()

Parameters
outputLocation desired output location. For file based recording, recordings will be stored at //

public SessionConfig.Builder (Muxer muxer)

Use this builder to manage file hierarchy manually or to provide your own Muxer

Public Methods

public SessionConfig build ()

public SessionConfig.Builder withAdaptiveStreaming (boolean adaptiveStreaming)

public SessionConfig.Builder withAudioBitrate (int bitrate)

public SessionConfig.Builder withAudioChannels (int numChannels)

public SessionConfig.Builder withAudioSamplerate (int samplerate)

public SessionConfig.Builder withDescription (String description)

public SessionConfig.Builder withExtraInfo (Map extraInfo)

public SessionConfig.Builder withHlsSegmentDuration (int segmentDuration)

public SessionConfig.Builder withLocation (boolean attachLocation)

public SessionConfig.Builder withMuxer (Muxer muxer)

public SessionConfig.Builder withPrivateVisibility (boolean isPrivate)

public SessionConfig.Builder withTitle (String title)

public SessionConfig.Builder withVerticalVideoCorrection (boolean convertVerticalVideo)

public SessionConfig.Builder withVideoBitrate (int bitrate)

public SessionConfig.Builder withVideoResolution (int width, int height)