Package buzz.getcoco.media
Interface MediaSession.StreamHandler
-
- All Known Implementing Classes:
CameraStreamHandler
,DefaultStreamHandler
,MicStreamHandler
- Enclosing class:
- MediaSession
public static interface MediaSession.StreamHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description 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 void
onSinkUpdated(MediaSession.MediaSink sink)
boolean
shouldClosePreviousStream(MediaSession.StreamHandler handler)
Determine if the handler should be closed.void
start()
void
stop()
-
-
-
Method Detail
-
start
void start()
-
stop
void stop()
-
onSinkUpdated
void onSinkUpdated(@NonNull MediaSession.MediaSink sink)
-
shouldClosePreviousStream
boolean shouldClosePreviousStream(MediaSession.StreamHandler handler)
Determine if the handler should be closed.- Parameters:
handler
- The other stream in the same channel as this- Returns:
- true if it has to be
stop()
ed
-
-