onPlayerStateChanged property

Stream<PlayerState> get onPlayerStateChanged

A stream to get current state of the player. This stream will emit event whenever there is change in the playerState.

Implementation

Stream<PlayerState> get onPlayerStateChanged =>
    PlatformStreams.instance.onPlayerStateChanged.filter(playerKey);