--- title: "End (parameter: eof)" slug: "ending-a-multimedia-file-eof" updated: 2025-10-02T09:29:50Z published: 2025-10-02T09:29:50Z canonical: "docs.mapp.com/ending-a-multimedia-file-eof" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # End (parameter: eof) 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 BrowserServer-to-Server ```javascript 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 ); ``` ```bash 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 ```