Help Center/ Live/ Best Practices/ One Second of TTFF
Updated on 2024-07-29 GMT+08:00

One Second of TTFF

One second of time to first frame (TTFF) means you can watch the image one second later after you initiate playback. Technically, TTFF refers to the time required for the player to decode the first frame.

  • App

    HTTP-FLV is recommended for app players, which is the most widely used protocol in the live broadcast scenario. HTTP does not involve complex status interactions. Using RTMP delivers longer TTFF than using HTTP-FLV because several handshakes are involved in the initial phase of an RTMP connection. Therefore, from the perspective of latency, HTTP-FLV is better than RTMP.

  • PC Browser

    A PC browser usually uses Flash Player. Chrome also supports MSE, but MSE does not have obvious advantages over Flash Player, which adopts forced buffering. Therefore, videos load longer (greater than 1s) on a PC browser than on an app (using HTTP-FLV).

  • Mobile Browser

    Safari supports HLS (m3u8) and even uses the hardware decoding chip of iPhone to facilitate video playback. Therefore, if DNS has cache, videos load fast, but only on the iOS platform.

    Android browsers are highly random. Due to severe fragmentation, the implementation of system browsers varies with versions and models.

In conclusion, using HTTP-FLV on apps can help achieve one second of TTFF.