# How to find out when the write to the streamed video file ends in the vi application?

**URL:** <https://community.wowza.com/t/how-to-find-out-when-the-write-to-the-streamed-video-file-ends-in-the-vi-application/49017>\
**Category:** Wowza Streaming Engine\
**Created:** [June 20, 2017, 11:54am UTC](https://community.wowza.com/t/how-to-find-out-when-the-write-to-the-streamed-video-file-ends-in-the-vi-application/49017 "2017-06-20T11:54:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aleksander\_Maiorov](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Aleksander\_Maiorov](https://community.wowza.com/u/Aleksander_Maiorov)\
**Post date:** [June 20, 2017, 11:54am UTC](https://community.wowza.com/t/how-to-find-out-when-the-write-to-the-streamed-video-file-ends-in-the-vi-application/49017/1 "2017-06-20T11:54:02Z")

</div>

```auto
I am writing streaming video to the video.flv file. Then I need to make a copy of this file. But sometimes a copy is created before the video recording ends. How to find out when the write to the streamed video file ends in the vi application? I am writing asp.net app on c# language

```

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [June 21, 2017, 1:41pm UTC](https://community.wowza.com/t/how-to-find-out-when-the-write-to-the-streamed-video-file-ends-in-the-vi-application/49017/2 "2017-06-21T13:41:26Z")

</div>

If you are familiar with the Wowza Java API, you can implement the onWriteComplete method; see [https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams](https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams)
