createPlayerStateStream method
Creates a convenience stream that combines the most important state information
Implementation
Stream<PlayerState> createPlayerStateStream() {
return Rx.combineLatest2<ProcessingState, bool, PlayerState>(
processingStateStream,
playingStream,
(processingState, playing) => PlayerState(processingState, playing),
);
}