Skip to main content
Version: v5.9.0

Thread Management and Keep Alive

Note that each opened NetInt transcoding session maintains a keep-alive thread. This thread sends a regular heartbeat from the libxcoder int the host application, to the firmware running on the transcoding card. When integrating the libxcoder into any third party frameworks, care should be taken to ensure that the transcoding sessions opening thread (and the keep-alive thread spawn by it), shall have the fairness of thread scheduling (e.g. a round-robin scheduling policy). This will allow the heartbeat to be sent within the specified time interval, thus keeping the channel open. For Linux macos and Android platforms, change the name of this thread to KAT+hw_id+session_ id, such as hw_id=0, session_id=0x3ef, thread name is KAT0003ef.

If a session heartbeat is not been received by the firmware within the dedicated timeframe, then the session will be terminated.