SRGSSR / pillarbox-documentation

Technical cross-platform documentation for Pillarbox
https://srgssr.github.io/pillarbox-documentation
MIT License
3 stars 0 forks source link

Provide a way to selectively enable or disable some trackers? #38

Closed defagos closed 1 month ago

defagos commented 1 year ago

As an SRG SSR analyst I want to be able to take into account background video playback in my reports.

Context

For comScore background video playback must not be tracked, see #25 and associated task #28. It is impossible for all platforms to empirically determine when background video playback should not be tracked, though. On iOS, for example, we can detect the app status but we are not able to automatically determine if the player has no attached layer or is hidden (partially or entirely) by other views.

In cases where video is played while the app is in foreground and no view can be seen, we provide the isTracked Boolean so that apps can disable tracking manually. The issue is that this disables all tracker, even though some trackers should not be disabled because they remain legitimate in such cases. These include e.g.

Acceptance criteria

Tasks

defagos commented 1 month ago

A mechanism has been implemented for mandatory / optional tracking support on Apple platforms.

This mechanism should be sufficient for most needs (monitoring, playback position tracking). It is also much simpler than having ids associated with trackers.

Background video playback is currently not really a thing and, even if it was, the app would still be responsible of enabling / disabling tracking, as the app lifecycle will not be observed by Pillarbox itself.