- 1 Minute to read
- Print
- DarkLight
Current Position of the Multimedia File (pos)
- 1 Minute to read
- Print
- DarkLight
The pos action should be sent regularly at 30-second intervals and is used to capture the sections viewed and the last position in the case that the user terminates the video by closing the browser window.
This action may only be transmitted when the media player is in play mode. When the video is paused or stopped, the timer for sending this action must also be paused.
Please note that sending the current position in multimedia files without a total playing time, for example, live streams, is only allowed in an interval of 60 seconds.
Examples of Media Tracking
On the website
wt_sendinfo_media("video_16889", "pos", "30", "600", "", "64000", "100", "0");
In the multimedia file
ExternalInterface.call("wt_sendinfo_media", "video_16889", "pos", "30", "600", "", "64000", "100", "0")
Example request for media tracking via Server-to-Server
http://track.wt-eu02.net/111111111111111/wt?p=414,st&mi=video_16889&mk=pos&mt1=30&mt2=600&bw=64000&vol=100&mut=0&x=125378669541
Notes on the request interval
The interval of pos
-requests depends on "mt2". The media pixel automatically calculates the interval in which the pos
-requests can be sent based on the total length of the multimedia file. The total length is given with each play
. In the calculation, the total length is always divided by 60.
10 seconds is the minimum size of the interval. After sending the pos
-request the timer restarts.
Since the calculation cannot be done without "mt2", the interval for live streams is 60 seconds by default.
Example
mt2 / 60 = pos
interval
600 / 60 = 10
1200 / 60 = 20
For example, if you want to send a pos
-request every 20 seconds, but the calculated interval is 30 seconds, only the second pos
-request is allowed and sent, since an interval of 20 seconds is not allowed. Instead, the pos
-request is measured after a total of 40 seconds.