Skip to main content

Tech Forum

Source Connection Status

Source Connection Status

by Erkan Altan - Number of replies: 0

Hi All,

I need to detect the status of my connection to a sender.  I am only subscribing to metadata_frames for tally monitoring, so no video and audio is received.

I tried two ways of doing this: 

1. Called NDIlib_recv_get_no_connections()  and when connected, it returns status as (1), good.  But then I disconnect the ethernet cable, it stays as (1) and only after 3 mins it turns to (0).   This is too long to detect a connection failure.

2.  I was hoping that recv_capture would return frame_type_none only when there is a disconnect, however, it returns frame_type_none when there is connection and no frames are received.   So, I couldn't use this for connection status detection, either.

At this point, I wanted to ask if there are other ways of detecting connection status.  Any help is greatly appreciated.

Thanks,

Erkan