Transmits a data frame from RTS SDK. This function is displayed as a function pointer in rts_glue_funcs.

int (* write)(
    struct  **frame,
    void *handle


Parameter Description
frame The audio or video frame to be transmitted.
handle The handle that is returned when the open function is called.

Response parameters

  • If 1 is returned, the call is successful.
  • If 0 is returned, the system tries again later.
  • If -1 is returned, end-of-file (EOF) occurs. That is, no more data can be read.
  • If negative numbers except -1 are returned, severe errors occur.

Subsequent operations

If 1 is returned, the ownership of the returned frame is transferred to and removed by RTS SDK.