Package buzz.getcoco.media
Interface MediaSession.StreamHandler.Builder<T extends MediaSession.StreamHandler>
-
- All Known Implementing Classes:
CameraStreamHandler.Builder
,MicStreamHandler.Builder
- Enclosing interface:
- MediaSession.StreamHandler
public static interface MediaSession.StreamHandler.Builder<T extends MediaSession.StreamHandler>
A builder class for theMediaSession.StreamHandler
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
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.
-
-
-
Method Detail
-
getSdp
@NonNull java.lang.String getSdp()
Get the SDP containing the Frame rate, resolution, bitrate, etc.., of this stream.- Returns:
- Session description of this stream
-
getChannelName
@NonNull java.lang.String getChannelName()
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.- Returns:
- channel name
-
build
@NonNull @RestrictTo(LIBRARY_GROUP) T build()
Builds the StreamHandler which will be responsible to send data into the stream.- Returns:
- stream handler
-
-