# BasePlayerStateSubscriber Class

    open class BasePlayerStateSubscriber : InternalStateSubscriberProtocol

Cross-component communication move outside factory

### Lifecycle

- `init(_:)`

  #### Declaration

  Swift

      public init(_ player: AnyPlayer)

  #### Parameters

  `player` | player

### Internal

- `newState(state:)`

  New state incoming

  #### Declaration

  Swift

      public func newState(state: InternalState)

  #### Parameters

  `state` | new state