The request mediaPosition should be sent regularly every 30 seconds. It is used for tracking the viewed chapters of a video and the last position of the video, in case the user ends the video by closing the browser tab/window.

This action should be sent when the media player is in play mode. Once the video is paused or stopped, the timer for sending these actions must be stopped.

Example

<amp-analytics type="mapp_intelligence">
    <script type="application/json">
	{
		"vars": {
			"trackDomain": "analytics.mapp.com",
			"trackId": "111111111111111" 
		},
		"triggers": { 
			...
			"trackMediaSecondsPlayed": {
				"on": "video-seconds-played", 
				"request": "mediaPosition", 
				"selector": "#video",
				"videoSpec": {
					"interval": 30
				}
			},
			... 
		}
	}
	</script>
</amp-analytics>
XML
Parameter or AttributeDescription
"request": "mediaPosition"

Specifies the request value to be sent. You need to set it to "mediaPosition" to send the correct event to Mapp Intelligence.

In the above example, the request "mediaPosition" is sent regularly at intervals of 30 seconds and is used to capture the sections viewed and the last position in case the user terminates the video by closing the browser window.

When the video is paused or stopped, the timer is also paused to send this action.


"videoSpec": {"interval": 30}

Specifies the interval the requests are sent to Mapp Intelligence.

Please note that the transmission of the current position in multimedia files without a total playing time (for example, live streams) is only permitted in the interval of 60 seconds.