End (parameter: eof)

Prev Next

The eof action marks that the end of a media file has been reached.

It closes the current media session.


When to send

  • Send once the media has played until the very end.

  • This can happen through user playback or automatic playback reaching the file’s last second.


Rules & Pitfalls

  • For eof, the current position (mt1) must always equal the total length (mt2).

  • A eof action automatically ends the current media session.

  • Any subsequent playback requires a new play action to start a fresh session.


Example request

wt_sendinfo_media(
  "video_16889",   // media_id
  "eof",           // player_action
  "600",           // mt1 / clip_position (end position)
  "600",           // mt2 / clip_length (total length)
  "",              // media_parameter
  "64000",         // bandwidth
  "100",           // volume
  "0"              // mute
);
http://track.wt-eu02.net/111111111111111/wt?p=414,st
&mi=video_16889
&mk=eof
&mt1=600
&mt2=600
&bw=64000
&vol=100
&mut=0
&x=125378669541