startMediaTracking method

Future<MediaTracking> startMediaTracking(
  1. MediaTrackingConfiguration configuration
)

Starts media tracking with the given configuration. Note: to track media events on Web, you will need to install the media JS plugin by configuration TrackerConfiguration.jsMediaPluginURL.

Implementation

Future<MediaTracking> startMediaTracking(
    MediaTrackingConfiguration configuration) async {
  return await Snowplow.startMediaTracking(
      configuration: configuration, tracker: namespace);
}