Local parameters are specific to instances. When you set these parameters for an instance, you must ensure that the instance is running. That is, you must set these parameters when you call the open function or close function. The function that you call when you set local parameters allows you to call APIs and obtain parameters.
/** * handler: the handler that is returned when the open function is called. * cmd: the command. * arg: the parameters required in the command. */ long long (* ioctl)(void *handle, const char *cmd, void *arg);
|get_stream_info||Obtains stream parameters.||None.||The pointer rts_worker_demux_info*.|
|reload||Reconnects streams to the server.||None.||If 0 is returned, the call is successful. If 0 is returned, the call fails.|
|get_state||Queries key-value pairs.||ARTC_VIDEO_CACHE_SIZE, that is, the duration of loading videos. Type: int*.||The duration of loading videos. Unit: milliseconds.|
|set_aes_key||Configures a decryption key.||keyinfo. Type: char*.||If 0 is returned, the call is successful. If 0 is returned, the call fails.|
|unsubscribe||Stops subscribing to streams.||None.||If 0 is returned, the call is successful. If 0 is returned, the call fails.|
|subscribe||Subscribes to streams.||The URL. Type: char*.||If 0 is returned, the call is successful. If 0 is returned, the call fails.|