update method
Updates stored attributes of the media player such as the current playback. Use this function to continually update the player attributes so that they can be sent in the background ping events.
Implementation
Future<void> update(
{MediaPlayerEntity? player,
MediaAdEntity? ad,
MediaAdBreakEntity? adBreak}) async {
await Snowplow.updateMediaTracking(
tracker: tracker, id: id, player: player, ad: ad, adBreak: adBreak);
}