Interface Stream
-
- All Known Subinterfaces:
CameraLive
,FileReplay
,MediaReplay
,Replay
public interface Stream
Base stream interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Stream.Sink
Base sink interface.static class
Stream.State
Stream state.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream.Sink
openSink(Stream.Sink.Config config)
Opens a sink from this stream.Stream.State
state()
Informs about current stream state.
-
-
-
Method Detail
-
state
@NonNull Stream.State state()
Informs about current stream state.- Returns:
- current stream state
-
openSink
@NonNull Stream.Sink openSink(@NonNull Stream.Sink.Config config)
Opens a sink from this stream.- Parameters:
config
- configuration of the sink to be opened- Returns:
- a new sink instance, configured as specified
-
-