Why does my Rich Media tag keep sending refresh hits after a pause or stop action?

Refresh hits are sent as soon as a Rich media content is reading. The beginning of a reading is materialized in the tag by the presence of a play hit. However, it can happen that the refresh hits continue to be sent despite a pause or stop action. This is due to the fact that several play hits have been sent for a single hit of type pause or stop; so we have several playbacks in progress simultaneously and only one is stopped by a pause or stop action on the video.

Let's take an example :

We are launching a video, which immediately starts buffering before launching a few seconds later, and then we pause it after a few seconds of reading.

We then have the following sequence of Rich Media hits:

Order Action Event
1 play Click on the play button
2 info&buf=1 Launch of the video and immediate buffering
3 info&buf=0 Buffering stops
4 play The video starts
5 refresh The video is playing
6 pause The user pauses the video
7 refresh  
8 refresh  
9 refresh  

 

Here we see that despite pausing the video, refresh hits continue to be sent. This is due to the fact that a second play hit was emitted after the buffering stopped, whereas no hit of type pause or stop had come to stop the first reading launched by the click on the play button of the player.

To avoid this behavior, it would be necessary to:

  • Delete the play event after the buffering stopped, which would result in the following sequence of hits:
Ordre Action Réel
1 play Click on the play button
2 info&buf=1 Launch of the video and immediate buffering
3 info&buf=0 The buffering stops and the video starts
4 refresh The video is playing
5 pause The user pauses the video
  • Add a pause event when the video starts buffering, which would result in the following sequence of hits:
Ordre Action Réel
1 play Click on the play button
2 pause Launching the video and immediate buffering
3 info&buf=1 Buffering in progress
4 info&buf=0 Buffering stops
5 play The video starts
6 refresh The video is playing
7 pause The user pauses the video
Have more questions? Submit a request