Package buzz.getcoco.media
Class MicStreamHandler.Builder
- java.lang.Object
-
- buzz.getcoco.media.MicStreamHandler.Builder
-
- All Implemented Interfaces:
MediaSession.StreamHandler.Builder<MicStreamHandler>
- Enclosing class:
- MicStreamHandler
public static final class MicStreamHandler.Builder extends java.lang.Object implements MediaSession.StreamHandler.Builder<MicStreamHandler>
A builder forMicStreamHandler
.
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String channelName)
Constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicStreamHandler
build()
Builds the StreamHandler which will be responsible to send data into the stream.java.lang.String
getChannelName()
Get the channel name in which the builtMediaSession.StreamHandler
will be added.java.lang.String
getSdp()
Get the SDP containing the Frame rate, resolution, bitrate, etc.., of this stream.MicStreamHandler.Builder
shouldEndPreviousStream(boolean endPreviousStream)
java.lang.String
toString()
-
-
-
Method Detail
-
shouldEndPreviousStream
public MicStreamHandler.Builder shouldEndPreviousStream(boolean endPreviousStream)
-
getSdp
@NonNull public java.lang.String getSdp()
Description copied from interface:MediaSession.StreamHandler.Builder
Get the SDP containing the Frame rate, resolution, bitrate, etc.., of this stream.- Specified by:
getSdp
in interfaceMediaSession.StreamHandler.Builder<MicStreamHandler>
- Returns:
- Session description of this stream
-
getChannelName
@NonNull public java.lang.String getChannelName()
Description copied from interface:MediaSession.StreamHandler.Builder
Get the channel name in which the builtMediaSession.StreamHandler
will be added. NOTE: If the channel name is invalid [not created]. Then This will never be added.- Specified by:
getChannelName
in interfaceMediaSession.StreamHandler.Builder<MicStreamHandler>
- Returns:
- channel name
-
build
@NonNull @RestrictTo(LIBRARY_GROUP) public MicStreamHandler build()
Description copied from interface:MediaSession.StreamHandler.Builder
Builds the StreamHandler which will be responsible to send data into the stream.- Specified by:
build
in interfaceMediaSession.StreamHandler.Builder<MicStreamHandler>
- Returns:
- stream handler
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-