The request mediaEnded must be sent at the end of a video and serves to end the media session. The current time and the total play time are always identical with this action.

Example

<amp-analytics type="mapp_intelligence">
    <script type="application/json">
	{
		"vars": {
			"trackDomain": "analytics.mapp.com",
			"trackId": "111111111111111" 
		},
		"triggers": { 
			...
			"trackMediaEnded": {
				"on": "video-ended", 
				"request": "mediaEnded", 
				"selector": "#video"
			},
			... 
		}
	}
	</script>
</amp-analytics>
XML
Parameter or AttributeDescription
"request": "mediaEnded"The request "mediaEnded" is sent at the end of a multimedia file and is used to close a media session. The current time and the total playing time are always identical for this action.