playbackTimeInfo

Time information of the media currently being played, such as the current position. Is null if nothing is being played.

The service does not periodically send updates, but only on specific occasions:

  • Change of activeMediaItem.

  • Change of activeSource.

  • When a seeking action has completed.

  • When the playback state has changed.

  • When the playback speed has changed.

  • When buffering state has changed.

It is up to the client to decide how to use this information. See MediaPlaybackTimeInfo for more details.

Note: This can not be perfectly precise as the current position refers to the moment the remote media source had advertised it, but the Android media framework does not offer information on when that happened.