Commit 54f7793
authored
feat: player disable tracking and cookies reactive (muxinc#1214)
Resolves [1193](muxinc#1193) by
adding two new cases in the `attributeChangedCallback` of the base of
the player:
1. **DISABLE_TRACKING**: Reloads the player when this attribute changes,
since tracking must be disabled on initialization (keeping the
currentTime and playbackState).
2. **DISABLE_COOKIES**: Deletes the tracking cookie if the attribute is
changed after initialization.
These changes allow the user disable this tracking props on the run
without breaking he experience of playing the video.1 parent 78f7154 commit 54f7793
1 file changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
860 | 889 | | |
861 | 890 | | |
862 | 891 | | |
| |||
0 commit comments