Hi every one.

In our application we have a problem with video preview after recording. We have two variants of recording., first works fine, second doesn't work correctly.

1. Recording video via RTMP. After record is finished, video is available immediately. And we can play it.

2. Recording video via RTMPS. After record is finished, video is not available for preview for 1-2 minutes. On a storage directory we have two files: video.mp4 and video.mp4.tmp. After 1-2 minutes video.mp4.tmp disappeared and we can play video.

Can anybody explain:
- What is the delay when recording via RTMPS, and why delay is absent when recording via RTMP?
- Can we remove this delay?

Thanks for help!